Umesh Kumar on "[Plugin: WP Smush - Image Optimization] Error after update"

ساخت وبلاگ

Hi, I tries to update your plugin from version 2.3.1. to version 2.4.1. but when the update is done I am getting this message on the screen:

Parse error: syntax error, unexpected T_FUNCTION in /home/cromet/public_html/test/wp-content/plugins/wp-smushit/lib/class-wp-smush-png_jpg.php on line 481

So I treid to download the previous version 2.4. but I get the message again:
Parse error: syntax error, unexpected T_FUNCTION in /home/cromet/public_html/test/wp-content/plugins/wp-smushit/lib/class-wp-smush-png_jpg.php on line 481

Can you please help me?
Thanks in advance Gabi

https://wordpress.org/plugins/wp-smushit/

Umesh Kumar
Member
Plugin Author

Posted 50 minutes ago #

Hi @gabihrv,

What is your PHP version? Is it below PHP 5, the error points at the function array_walk_recursive which is well supported by PHP 5+ and PHP 7.

So unless you have PHP version below 5, it should be working fine for you.

Cheers

Denysedd
Member
Posted 34 minutes ago #

Hi Umesh, I have a similar problem.
The line in the error message is the same but a different link:Parse error: syntax error, unexpected T_FUNCTION in /home/www/4cecec400380a6bb800c4c9a841ff09d/web/newblog/wp-content/plugins/wp-smushit/lib/class-wp-smush-png_jpg.php on line 481

First time an update has created a problem and now my whole site is down!!!

Denysedd
Member
Posted 29 minutes ago #

Sorry, submitted too quickly!
Not only is my website down but I can't get into it as admin to make any changes!

When I click on my dashboard I get the same error message:

Parse error: syntax error, unexpected T_FUNCTION in /home/www/4cecec400380a6bb800c4c9a841ff09d/web/newblog/wp-content/plugins/wp-smushit/lib/class-wp-smush-png_jpg.php on line 481

This is really serious guys, I'm losing money by the second.
How can I revert to previous version if I can't get in as admin?

Umesh Kumar
Member
Plugin Author

Posted 8 minutes ago #

@Denysedd, Can you login to your FTP and go to wp-content/plugins/ folder and delete
"wp-smushit" folder from there. That way your site will be back.

If you are not aware of that, can you contact us via: https://premium.wpmudev.org/contact
Select "I've a different question" from drop down
In Subject add "Attn. Umesh Kumar"

Add a link to this thread in the message field and send it over, I'll take it further from there.

Thanks

Umesh Kumar
Member
Plugin Author

Posted 7 minutes ago #

@gabihrv, Sorry, the issue might be if you are using PHP 5.2 as well.

Can you quickly check and post the PHP version you're on?

Is it PHP 5.2 or below that?

Thanks

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 311 تاريخ : سه شنبه 5 مرداد 1395 ساعت: 21:38