$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>installation - Workaround for: PHP syntax error, unexpected T_STRING in load.php on line 1104 (when installing)|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin8PV0评论

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.

Post a comment

comment list (0)

  1. No comments so far