Thread:Extension talk:DynamicPageList (Wikimedia)/Use of undefined constant DIR - assumed -- ERROR/reply

Your version of PHP is too old. Update PHP (or use an older version of DynamicPageList, although you may have to go quite far back).