- Posts: 2
- Home
- Forum
- Community Forum
- General discussions
- Age of children into search
- Forum
- Community Forum
- Questions
- Installation/Upgrade
- Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in D:\Hosting\2250242\html\wp-content\plugins\solidres\libraries\asset\asset.php on line 243
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in D:\Hosting\2250242\html\wp-content\plugins\solidres\libraries\asset\asset.php on line 243
- dxs1929
- Topic Author
- Offline
Less
More
7 years 11 months ago #7378
by dxs1929
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in D:\Hosting\2250242\html\wp-content\plugins\solidres\libraries\asset\asset.php on line 243 was created 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
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.
- vietvh
- Offline
Less
More
- Posts: 1553
7 years 11 months ago #7380
by vietvh
Replied by vietvh on topic Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in D:\Hosting\2250242\html\wp-content\plugins\solidres\libraries\asset\asset.php on line 243
Hi,
It is a bug, you can apply this patch:
dl.dropboxusercontent.com/u/22968902/asset.php
Copy it to:
libraries/asset/asset.php
Cheers,
It is a bug, you can apply this patch:
dl.dropboxusercontent.com/u/22968902/asset.php
Copy it to:
libraries/asset/asset.php
Cheers,
Please Log in or Create an account to join the conversation.
- dxs1929
- Topic Author
- Offline
Less
More
- Posts: 2
7 years 11 months ago #7381
by dxs1929
Replied by dxs1929 on topic Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in D:\Hosting\2250242\html\wp-content\plugins\solidres\libraries\asset\asset.php on line 243
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
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.
- vietvh
- Offline
Less
More
- Posts: 1553
7 years 11 months ago #7385
by vietvh
Replied by vietvh on topic Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in D:\Hosting\2250242\html\wp-content\plugins\solidres\libraries\asset\asset.php on line 243
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.
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