Title: Getting parse error when installing
Last modified: April 16, 2018

---

# Getting parse error when installing

 *  Resolved [succinctideas](https://wordpress.org/support/users/succinctideas/)
 * (@succinctideas)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/getting-parse-error-when-installing/)
 * Im getting this error when trying to activate the plugin
 * Parse error: syntax error, unexpected ‘*’, expecting ‘,’ or ‘;’ in <path to server
   root>/wp-content/plugins/post-to-google-my-business/mbp-api.php on line 5

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

 *  Plugin Author [Koen Reus](https://wordpress.org/support/users/koen12344/)
 * (@koen12344)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/getting-parse-error-when-installing/#post-10194146)
 * Hi [@succinctideas](https://wordpress.org/support/users/succinctideas/),
 * Thanks for notifying us of the issue. I think this might be a version compatibility
   problem with PHP. Do you know what version of PHP you are running?
 * As a temporary fix you could try replacing lines 5 and 6 in post-to-google-my-
   business/mbp-api.php:
 *     ```
       const CACHE_DURATION = 60*60*24;
       const ERROR_DURATION = 60*60*24;
       ```
   
 * with the following:
 *     ```
       const CACHE_DURATION = 86400;
       const ERROR_DURATION = 86400;
       ```
   
 * I will add this fix to the next version, which should be rolled out in the next
   few days.
 *  [zackmckracken](https://wordpress.org/support/users/zackmckracken/)
 * (@zackmckracken)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/getting-parse-error-when-installing/#post-10216282)
 * I had the same problem but with your fix everything was all right
    I’ve got PHP
   ver. 5.4 for [https://www.giannip.com/](https://www.giannip.com/)
 *  Plugin Author [Koen Reus](https://wordpress.org/support/users/koen12344/)
 * (@koen12344)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/getting-parse-error-when-installing/#post-10218315)
 * Hi [@zackmckracken](https://wordpress.org/support/users/zackmckracken/)
 * Thanks for the feedback and sorry for the inconvenience this issue may have caused.
 * [@succinctideas](https://wordpress.org/support/users/succinctideas/) Did you 
   manage to resolve this issue?
 *  Plugin Author [Koen Reus](https://wordpress.org/support/users/koen12344/)
 * (@koen12344)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/getting-parse-error-when-installing/#post-10218361)
 * I have just pushed version 1.1.1 of the plugin to the repository to fix this 
   issue. If you are experiencing any problems, update the plugin through the WordPress
   admin panel or download the latest version from here.
 *  [zackmckracken](https://wordpress.org/support/users/zackmckracken/)
 * (@zackmckracken)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/getting-parse-error-when-installing/#post-10218436)
 * Thanks a lot, everything is allright.
 *  [tyCoon Media](https://wordpress.org/support/users/tycoon12344/)
 * (@tycoon12344)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/getting-parse-error-when-installing/#post-10227704)
 * Good, I’m assuming I can mark this as resolved then.

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

The topic ‘Getting parse error when installing’ is closed to new replies.

 * ![](https://ps.w.org/post-to-google-my-business/assets/icon-256x256.png?rev=1904100)
 * [Post to Google My Business (Google Business Profile)](https://wordpress.org/plugins/post-to-google-my-business/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-to-google-my-business/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-to-google-my-business/)
 * [Active Topics](https://wordpress.org/support/plugin/post-to-google-my-business/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-to-google-my-business/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-to-google-my-business/reviews/)

## Tags

 * [install error](https://wordpress.org/support/topic-tag/install-error/)

 * 6 replies
 * 4 participants
 * Last reply from: [tyCoon Media](https://wordpress.org/support/users/tycoon12344/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/getting-parse-error-when-installing/#post-10227704)
 * Status: resolved