Website opening prompt
Cannot acquire reference to $GLOBALS
What is the reason why the website cannot be opened?
Website opening prompt
What is the reason why the website cannot be opened?
No idea. What is the website?
I’m not familiar with that exact error message, but a quick Google search suggests that this error happens if you have PHP code that’s not compatible with PHP 8.1. Our hosting uses PHP 8.2, so if your code is not compatible with that PHP version, it will not work.
This page lists the changes in PHP regarding $GLOBALS
in PHP 8.1: `$GLOBALS` variable restrictions - PHP 8.1 • PHP.Watch
If you built this website, please update the code to work with PHP 8.2. If you are using existing website software, please see if there is an update available to fix this, or consider using alternative software that is still being updated to work with newer PHP versions.
Finally, please note that premium hosting has a PHP version selector that lets you run your account using an older PHP version that can run your code. But please understand that using outdated, unmaintained software brings a lot of risk, especially for security, so please do consider alternatives.
It’s a navigation website. Can friends help solve it?
Sure, you can enlist the help of your friends to help solve it.
Please note that while we are happy to explain the basics and help you setup your website, we are not here to debug your code, or code anything for you.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.