Both my ocP online installations inaccessible
Posted
#7475
(In Topic #1874)
As of a few days ago, both of my online ocP installations (ocPortal 9.0.9 and Composr 10.0.3) have become inaccessible. ocPortal returns the following:
Critical error – bailing out
Uncaught Error: Call to a member function db_query() on null in /home2/under283/public_html/ocportal/sources/database.php:1134 Stack trace: #0 /home2/under283/public_html/ocportal/sources/database.php(927): database_driver->_query('SELECT c.the_na…', NULL, NULL, true, false, NULL, '') #1 /home2/under283/public_html/ocportal/sources/config.php(147): database_driver->query_select('config c LEFT J…', Array, Array, '', NULL, NULL, true) #2 /home2/under283/public_html/ocportal/sources/config.php(29): load_options() #3 /home2/under283/public_html/ocportal/sources/global.php(315): init__config() #4 /home2/under283/public_html/ocportal/sources/global2.php(320): require_code('config') #5 /home2/under283/public_html/ocportal/sources/global.php(315): init__global2() #6 /home2/under283/public_html/ocportal/sources/global.php(573): require_code('global2') #7 /home2/under283/public_html/ocportal/index.php(94): require('/home2/under283…') #8 {main} thrown
URL to the Composr installation merely returns a bog-standard http 500 error page.
I suspect the cause to be host-related (i.e. Arvixe). I discovered on accessing my cPanel that my account's home directory has changed from /home/ to /home2/ (as the above stack-trace indicates) - the original /home/ directory containing my installations (within separate folders under public_html) is now entirely empty. However, I've no idea how recently this occurred. I'm uncertain as to whether this change has resulted in a mismatch with the installations' configuration particulars, say, in INFO.PHP or PHP.INI (not-obvious to me on inspecting them, though) or perhaps in certain files deeper in their file-architecture. Is the problem rectifiable by altering or adding a line or two therein?
Both installations' MySQL databases appear to be intact and healthy on inspecting briefly with PHPMyAdmin.
I haven't yet tried restoring my personal backups for either of the installation's public_ html folders - and frankly I'm unsure if doing so would remove the cause of this particular problem, since the content of their files seems unaffected. I'm wondering if upgrading or clean-reinstalling might not be the only solution.
Any help anyone can offer, please, would be so, so appreciated!
Many thanks for reading!
Posted
PHP removed the 'mysql' extension many releases back now (PHP 7 ended it), and 'mysqli' is needed.
If you're lucky it would be as simple as changing 'mysql' to 'mysqli' in the config file.
If PHP has been upgraded beyond what your ocPortal/Composr installs support though then upgrading will be required, which is often not easy in these cases because the upgrader itself may not run. You'd need expert help.
(I now need to bow out of this topic, for the reasons I've discussed in
0 guests and 0 members have recently viewed this.
