Support » Plugin: Ultimate Ads Manager » Parse Error using PHP7 ultimate-ads-manager

  • I was updating the plugin and it crash the backend of the site and certain things are not working on the frontend, I believe a DB issue.

    I updated WP, then I updated plugins in batches checking for errors, and this was the last one. I tried renaming main plugin folder, renaming and/or moving the plugin folder itself, still the same issue. I’m basically locked out of the admin section.

    Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in /…/…/public_html/wp-content/plugins/ultimate-ads-manager/DBUpdater.php on line 24

    It affected a another crucial plugin that is need for the site. Clients can’t book their appointments.

    Line 24 is empty btw.

    • This topic was modified 3 years, 3 months ago by TheOnyxGuy.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author M.Sc. Denis Golovin


    Hi, and thanks for reaching out!

    Are you sure PHP7 is running on the server? I have seen this issue on a server which ran an old PHP version ( < 5.5). We used the special PHP constant ‘::class’ at line 24.

    As described here:
    it should work for PHP version 5.5 or later.

    Also it is very weird that you cannot deactivate the plugin by renaming the folder and that line 24 appears to be empty, since it is not in our release ( Please make absolutely sure that you are working on the correct server.

    We will implement a graceful failure for unsupported PHP version in the next release.

    Thread Starter TheOnyxGuy


    I was able to disable the plugin itself. Long story, but it’s an issue on my end. And there is something on line 24 now that things are straightened out on my end.

    We received noticed from the Hosting company that they would be updating the php so I figured since the site hasn’t update in a while I should make sure that it was up to date too. Looking in the Cpanel under Server Information it says PHP 7.2.10. In the backend of WP I see it says the it’s running on an unstable version of PHP. I’m not sure what to do at this point.

    This evening I will try and reinstall a fresh version of the plugin. Everything is back to normal except for this plugin now.

    Thanks for the response.

    • This reply was modified 3 years, 3 months ago by TheOnyxGuy.
    Plugin Author M.Sc. Denis Golovin


    Ok, let us know if you still experience any issues. Otherwise please mark this thread as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parse Error using PHP7 ultimate-ads-manager’ is closed to new replies.