Both my ocP online installations inaccessible

Post

Posted
Rating:
#8991 (In Topic #3052)
Avatar
Standard member
RichT is in the usergroup ‘Well-settled’
Greetings,

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!
 
Online now: No Back to the top

Post

Posted
Rating:
#8996
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
I wonder if the PHP environment no longer has the database extension Composr is configured to use. i.e. the db_type setting in info.php (ocPortal) /_config.php (Composr).
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 Update on Composr, myself, and the future - Composr - I just wanted to get a reply out quickly)


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,051 topics, 7,194 posts, 10,824 members
  • Our newest member is gracenayjanjoh
Birthdays:
Back to Top