Site won’t open
-
I self-host seven sites on rented server space. 5 work fine, 2 have begun returning a “500” error or the “Browser is unable to open this page.” I suspect these two have a very outdated version of WordPress that needs to be updated. I cannot access the admin login.
Server environment:
Apache Version 2.4.43
PHP Version 7.2.29
MySQL Version 10.2.31-MariaDB
Architecture x86_64
Operating System linuxTech support for the server returned this evaluation of the problem in the wp-settings.php file in the root folder:
Parse error: syntax error, unexpected ‘new’ (T_NEW) in /home/jaspriv0/public_html/italy/wp-settings.php on line 646
The identified problem is the same for both sites (different lines, of course.)
The offending line is: $wp_the_query =& new WP_Query(); (same in both sites.)
As near as I can tell, here is a bit more context from a site that is working. In the wp-settings.php file the line looks like this:
From https://…./daggershaw, a site that is working:
/** * WordPress Query object * @global WP_Query $wp_the_query * @since 2.0.0 */ $GLOBALS['wp_the_query'] = new WP_Query(); From the non-working site https://....Italy: /** * WordPress Query object * @global object $wp_the_query * @since 2.0.0 */ $wp_the_query =& new WP_Query();
Can anyone suggest an edit?
Thanks,
Peter RivardThe page I need help with: [log in to see the link]
- The topic ‘Site won’t open’ is closed to new replies.