• Resolved Isara

    (@isara)


    Parse error: syntax error, unexpected T_STRING in /home1/*/*/*/wp-content/plugins/image-regenerate-select-crop/image-regenerate-select-crop.php on line 2723

    I’m setting up a new installation and got this error when I tried to activate the plugin. Any ideas about how to fix it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Iulia Cazan

    (@iulia-cazan)

    Hi Isara,

    I will take a look and get back to you about this. What PHP version do you have and on which WP core version are you making the new setup?

    Regards,
    Iulia

    Thread Starter Isara

    (@isara)

    Hi Iulia. Thanks so much for getting back to me. I’m running WP version 4.9.8 and PHP 5.6.30

    • This reply was modified 5 years, 7 months ago by Isara.
    Plugin Author Iulia Cazan

    (@iulia-cazan)

    Hi Isara,

    The PHP version is quite old. I could test with a 5.6.33 and cannot replicate the issue.
    Perhaps try to replace \WP_CLI\Utils\ with WP_CLI\Utils\ and if you do not need to run the WP-CLI commands at all, you can remove all the lines starting with 2615.

    Let me know how it goes.

    Regards,
    Iulia

    Thread Starter Isara

    (@isara)

    Good call on the PHP version. Did an update and the plugin is working now. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error – unexpected T_STRING’ is closed to new replies.