Title: Parse Error: syntax error
Last modified: August 16, 2018

---

# Parse Error: syntax error

 *  [Shar](https://wordpress.org/support/users/sswainson/)
 * (@sswainson)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-161/)
 * I updated the cloudinary plugin and now my site is down only showing the following
   text:
 * Parse error: syntax error, unexpected ‘[‘ in /home1/ss/public_html/wp-content/
   plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/cloudinary.
   php on line 624
 * How do I fix this?
 * Thank you, Sharon
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-syntax-error-161%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Shar](https://wordpress.org/support/users/sswainson/)
 * (@sswainson)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-161/#post-10594855)
 * I resolved it by getting my host to up my PHP version to 7!
 *  Thread Starter [Shar](https://wordpress.org/support/users/sswainson/)
 * (@sswainson)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-161/#post-10594998)
 * Ugh, after my host up my PHP, it worked immediately and then stopped working 
   again.
 * I have this message again:
    Parse error: syntax error, unexpected ‘[‘ in /home1/
   ss/public_html/wp-content/plugins/cloudinary-image-management-and-manipulation-
   in-the-cloud-cdn/cloudinary.php on line 624
 * The page I need help with: [http://mysupportpal.com/](http://mysupportpal.com/)
 *  Plugin Author [Cloudinary](https://wordpress.org/support/users/cloudinary/)
 * (@cloudinary)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-161/#post-10595710)
 * Hi [@sswainson](https://wordpress.org/support/users/sswainson/),
 * In order to better understand the issue, I need some more information. Can you
   please share with me the following?
 * Whats your WP version?
    What version of the WordPress plugin did you add? What
   other plugin’s do you have on your WordPress?
 * Also since it might be related to the specific environment you are using would
   it be possible to open a request at [support@cloudinary.com](https://wordpress.org/support/topic/parse-error-syntax-error-161/support@cloudinary.com?output_format=md)
   so we could take a closer look?
 *  [Jordanairwave](https://wordpress.org/support/users/jordanairwave/)
 * (@jordanairwave)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-161/#post-10618195)
 * Did this every get resolved please?
 *  Thread Starter [Shar](https://wordpress.org/support/users/sswainson/)
 * (@sswainson)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-161/#post-10624930)
 * No. I have deactivated cloudinary as it crashes my site even after having my 
   host up the PHP to 7
 *  Plugin Author [Cloudinary](https://wordpress.org/support/users/cloudinary/)
 * (@cloudinary)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-161/#post-10662482)
 * Hi [@sswainson](https://wordpress.org/support/users/sswainson/),
 * Thanks for your patience in this.
 * Checking the plugin on our end it works as expected with php 7.
 * Note that we performed a small refactoring so when we check the plugin with PHP
   5.3 we indeed get that error on line 688
 * could you make sure that both the WP site and the environment were upgraded to
   php7 and not just one of them?
 * In any case, you could work around that by doing the following:
 * The line:
 * $full_path = wp_upload_dir()[‘basedir’].DIRECTORY_SEPARATOR.$md[‘file’];
 * should be changed to:
 * $wp_upload_dir = wp_upload_dir();
    $full_path = $wp_upload_dir[‘basedir’] . DIRECTORY_SEPARATOR.
   $md[‘file’];
 * Let us know the result?

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

The topic ‘Parse Error: syntax error’ is closed to new replies.

 * ![](https://ps.w.org/cloudinary-image-management-and-manipulation-in-the-cloud-
   cdn/assets/icon-256x256.png?rev=2377259)
 * [Cloudinary - Deliver Images and Videos at Scale](https://wordpress.org/plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/)
 * [Active Topics](https://wordpress.org/support/plugin/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/reviews/)

## Tags

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

 * 6 replies
 * 3 participants
 * Last reply from: [Cloudinary](https://wordpress.org/support/users/cloudinary/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-161/#post-10662482)
 * Status: not a support question