installation - Workaround for: PHP syntax error, unexpected T_STRING in load.php on line 1104 (when installing)

admin2025-06-03  3

I’ve received the error:

PHP Parse error: syntax error, unexpected T_STRING in /web/www/html/xxx/wordpress/wp-includes/load.php on line 1104

trying to install wordpress on a linux server.

Googling the problem I’ve found that the error depends on a older version of PHP and it is solved in PHP version 5.6 (at least). See for instance this support issue.

My question is: there is a workaround to solve this problem without updating PHP? (I do not control the server) Current version of PHP is 4.4.8.

Many thanks in advance.

I’ve received the error:

PHP Parse error: syntax error, unexpected T_STRING in /web/www/html/xxx/wordpress/wp-includes/load.php on line 1104

trying to install wordpress on a linux server.

Googling the problem I’ve found that the error depends on a older version of PHP and it is solved in PHP version 5.6 (at least). See for instance this support issue.

My question is: there is a workaround to solve this problem without updating PHP? (I do not control the server) Current version of PHP is 4.4.8.

Many thanks in advance.

Share Improve this question edited Jan 30, 2019 at 9:15 fuxia 107k39 gold badges255 silver badges461 bronze badges asked Jan 30, 2019 at 9:11 RenzoRenzo 1135 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 5

WordPress doesn't run on PHP 4. This version is 10 years old and completely broken by any current standards. You have to use a newer PHP version, there is no workaround.

You can always look up the current requirements on wordpress.

Right now, PHP 7.3 is recommended, but 5.6 might still work.

If you can't change the PHP version, find a better host.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748963138a315198.html

最新回复(0)