• Resolved Andrea

    (@ancan)


    I’ve just updated to the latest version (3.6.0) and I get this error as soon as I try to get into the wordpress administration menu:
    Parse error: syntax error, unexpected ‘[‘ in /web/htdocs/mydomain/home/wp-content/plugins/simple-download-monitor/includes/sdm-admin-menu-handler.php on line 23
    To be able to reacquire the admin wordpress function, I had to edit the sdm-admin-menu-handler.php file, comment the lines 29 (add_filter….) and from the line 45 to 58 (function sdm_admin_menu_function_hook….).
    Now I regained access again, but surely something will not work as it should, given my change.
    For info I have PHP 5.2.17

    Andrea.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi Andrea, PHP 5.2.17 is very old. You should ask your host to upgrade your servers PHP version. Please view the following documentation.

    Thank you

    Thread Starter Andrea

    (@ancan)

    I know it’s very old, but they are not going to upgrade. Previously everything worked smoothly and now this error has appeared. Is it related to the PHP version, or is it for other reasons?

    Andrea.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, if your host is not going to upgrade the PHP version then if I where you I would start looking for a new host.

    I have submitted a message to the developers to investigate further this issue.

    Kind regards

    • This reply was modified 8 years, 1 month ago by mbrsolution.

    Yes, that error you are seeing is because of the old PHP version. I have tweaked that function and released a new version. That should make it compatible with the older PHP version.

    The version of PHP you are using is just too old so you will likely face various issues with plugins in the future. So it is worth moving to a new hosting that will provide you a server with a more recent PHP version (and will keep current in the future).

    Thread Starter Andrea

    (@ancan)

    If in the future I still have similar problems, after an upgrade, can I downgrade to the previous version (compatible with my PHP)?
    How could I do this?

    Thanks
    Andrea

    EDIT: After upgrading to 3.6.1 I get the same error again. I had to do the same previous procedure to regain control….

    • This reply was modified 8 years, 1 month ago by Andrea. Reason: Still an error

    You can download a zip copy of the older version from this link and use it:
    https://downloads.wp.xz.cn/plugin/simple-download-monitor.3.5.9.zip

    Can you copy and paste the current error?

    Thread Starter Andrea

    (@ancan)

    With 3.6.1 version the error is:

    Parse error: syntax error, unexpected ‘[‘ in /web/htdocs/mydomain/home/wp-content/plugins/simple-download-monitor/includes/sdm-admin-menu-handler.php on line 25

    In order to access the administration pages I had to comment on the lines as I wrote above.

    That error is on a different line. I have pushed another commit that should address it. If you delete the currently installed copy of the plugin then install it again, you shouldn’t see the issue anymore.

    Thread Starter Andrea

    (@ancan)

    Yes, I confirm. I uninstalled the plugin, then I installed it again and the problem is no longer present. The file that I had to edit was restored as originally and everything works regularly. What’s happened?

    Regards,
    Andrea.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Parse error: syntax error, unexpected […sdm-admin-menu-handler.php on line 23]’ is closed to new replies.