• G’day Tyler,
    Thank you for a great plugin that works beautifully!!

    Earlier versions of PHP do not support __DIR__.

    To fix this I changed lines 37 and 98 of page-specific-stylesheets.php to use dirname(__FILE__) instead of __DIR__ as follows:

    Line 37
    include __DIR__ . ‘/templates/settings.php’;
    include dirname(__FILE__) . ‘/templates/settings.php’;

    Line 98
    include __DIR__ . ‘/templates/meta-box.php’;
    include dirname(__FILE__) . ‘/templates/meta-box.php’;

    Maybe you could make this change to your plugin so it is compatible with earlier versions of PHP.

    Cheers, John

  • The topic ‘__DIR__ not supported in old PHP version’ is closed to new replies.