• 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 to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Shar

    (@sswainson)

    I resolved it by getting my host to up my PHP version to 7!

    Thread Starter Shar

    (@sswainson)

    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/

    Plugin Author Cloudinary

    (@cloudinary)

    Hi @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 so we could take a closer look?

    Did this every get resolved please?

    Thread Starter Shar

    (@sswainson)

    No. I have deactivated cloudinary as it crashes my site even after having my host up the PHP to 7

    Plugin Author Cloudinary

    (@cloudinary)

    Hi @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.