Title: Parse Error using PHP7 ultimate-ads-manager
Last modified: April 25, 2019

---

# Parse Error using PHP7 ultimate-ads-manager

 *  [TheOnyxGuy](https://wordpress.org/support/users/theonyxguy/)
 * (@theonyxguy)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/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 7 years, 1 month ago by [TheOnyxGuy](https://wordpress.org/support/users/theonyxguy/).

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

 *  Plugin Author [Denis Golovin](https://wordpress.org/support/users/denis_golovin/)
 * (@denis_golovin)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/parse-error-using-php7-ultimate-ads-manager/#post-11467440)
 * 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: [https://www.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.class](https://www.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.class)
   
   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 ([https://plugins.trac.wordpress.org/browser/ultimate-ads-manager/tags/2.2.4/DBUpdater.php#L24](https://plugins.trac.wordpress.org/browser/ultimate-ads-manager/tags/2.2.4/DBUpdater.php#L24)).
   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](https://wordpress.org/support/users/theonyxguy/)
 * (@theonyxguy)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/parse-error-using-php7-ultimate-ads-manager/#post-11467511)
 * 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 7 years, 1 month ago by [TheOnyxGuy](https://wordpress.org/support/users/theonyxguy/).
 *  Plugin Author [Denis Golovin](https://wordpress.org/support/users/denis_golovin/)
 * (@denis_golovin)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/parse-error-using-php7-ultimate-ads-manager/#post-11468971)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/ultimate-ads-manager_5a9ebc.svg)
 * [Ultimate Ads Manager](https://wordpress.org/plugins/ultimate-ads-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-ads-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-ads-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-ads-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-ads-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-ads-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Denis Golovin](https://wordpress.org/support/users/denis_golovin/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/parse-error-using-php7-ultimate-ads-manager/#post-11468971)
 * Status: not resolved