Viewing 4 replies - 1 through 4 (of 4 total)
  • This is an oversight in the plugin – it uses PHP short tags which aren’t enabled on every server.

    You can either get these enabled through use of php.ini or (maybe) .htaccess, or you can manually edit the plugin file, replacing every instance of <?= with <?php echo and every instance of <? with <?php `.

    That’s not the only issue though – line 33 is calling a constant (UPLOADS) that doesn’t exist – it might need to use wp_upload_dir instead (https://developer.www.ads-software.com/reference/functions/wp_upload_dir/). And, line 44 is calling a non-existent function – register_dlthumbs_custom_options_settings should probably be dlthumbs_custom_options_page.

    Hopefully the plugin developer can fix these up ??

    Thread Starter Anon M. Verte

    (@mverte)

    This can be done by enabling short_open_tag in php.ini:

    short_open_tag = on

    If you don’t have access to the php.ini you can try to enable them trough the .htaccess file but it’s possible the hosting company disabled this if you are on shared hosting:

    php_value short_open_tag 1

    Plugin Author David Sword

    (@davidsword)

    Thank you for contributing resolves for the issue.

    Sorry about this, it was a rushed-and-forgetten project >3 years ago. I understand your frustration with plugins you need that don’t work, I’ve been there myself.

    Please note I’ve overhauled the plugin, completely rewrote it, and properly this time. It shouldn’t cause any headaches with shorttags or the upload path – as well the user interface is better, detection of an image has improved, option to exempt items added, and so on.

    ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Parse error: syntax error, unexpected $end’ is closed to new replies.