Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in D:\Hosting\2250242\html\wp-content\plugins\solidres\libraries\asset\asset.php on line 243

More
7 years 11 months ago #7378 by dxs1929
any help i get this error when i try to activate

php 5.3
wp 4.5
goddady hosting

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in D:\Hosting\2250242\html\wp-content\plugins\solidres\libraries\asset\asset.php on line 243

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #7380 by vietvh

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #7381 by dxs1929
didn't work
Fatal error: Can't use function return value in write context in D:\Hosting\2250242\html\wp-content\plugins\solidres\libraries\asset\asset.php on line 242

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #7385 by vietvh
Hi,

This is because of older PHP versions like PHP 5.3 and 5.4 only support variables in empty() function.

Just change this line

$dateFormat = empty( get_option( 'date_format' ) ) ? 'd-m-Y' : get_option( 'date_format' );

To

$dateFormat = get_option( 'date_format', 'd-m-Y' );

It should work fine.

Please Log in or Create an account to join the conversation.

Moderators: solidres
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?