Broken website (Parse Error)
Posted: Wed Jan 24, 2024 1:57 pm
I have a WordPress.org site (http://weekenddelsol.com) that I haven’t touched in 7 years, yet have always been able to access. A few days ago, I received an email alerting me that someone—not me—was trying to reset my password, and when I tried to log-in to investigate, I received the following error:
Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in [host file names]/[user name]/weekenddelsol.com/wp-content/plugins/stagtools/includes/class-stagtools-themes.php on line 19
I guessed that my 4.7 WP site was no longer compatible with Sonic's PHP 4, so I added an .htaccess file with the code lines Sonic suggested to my main directory. That caused the entire site to go down (and throw up some version of the parse error above). I edited the doc to various PHP versions between 5.2 and 5.6, but the site remains broken. Even removing the .htaccess doc did nothing. I also tried renaming the plugin and theme directories to see if that was the issue, but it didn't appear to change anything: still a blank page with a parse error. Any suggestions before I look at migrating to another host?
Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in [host file names]/[user name]/weekenddelsol.com/wp-content/plugins/stagtools/includes/class-stagtools-themes.php on line 19
I guessed that my 4.7 WP site was no longer compatible with Sonic's PHP 4, so I added an .htaccess file with the code lines Sonic suggested to my main directory. That caused the entire site to go down (and throw up some version of the parse error above). I edited the doc to various PHP versions between 5.2 and 5.6, but the site remains broken. Even removing the .htaccess doc did nothing. I also tried renaming the plugin and theme directories to see if that was the issue, but it didn't appear to change anything: still a blank page with a parse error. Any suggestions before I look at migrating to another host?