HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[Resolved] Critical Error - source-code (database) file is missing

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#110903 (In Topic #22279)

Fan in action

Hi
My server upgraded its php today to 7 from 5.4 and when I checked my website, it was displaying this error page:

Critical error – bailing out

A source-code (database) file is missing.


That doesn't give me much information, and I'm not sure how to fix this.

I tried running the upgrader.php but ran into more critical errors.
I tried manually upgrading from 9.0.20 to 9.0.22.
Still errors.

Nothing else has changed other than the php upgrade.

I have the option to downgrade the php to 5.6 and I have access to phpmyadmin.

Please guide me to a fix! 


Last edit: by wicked
Back to the top
 
Posted
Rating:
#110904
Avatar

Oh dear. It looks like with the focus on our v10, we have been caught off guard here.

I did test on an earlier PHP7 pre-release build, but it looks like an additional deprecation came in later on.

Please try these 2 files:
Attachment
sources/global2.php
» Download: global2.php (81 Kb, 44 downloads so far)
Attachment
sources/developer_tools.php
» Download: developer_tools.php (6 Kb, 49 downloads so far)


Last edit: by Chris Graham


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
 
Posted
Rating:
#110905
Avatar

Additionally, the 'mysql' database driver no longer exists, so you may need to edit info.php and change it to 'mysqli'.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
 
Posted
Rating:
#110906

Fan in action

Thank you for your quick replies.

I tried the attachments and changing the mysql in info.php, but still same error.

Although it does let me into the upgrader.php now, it won't let me launch into safe mode because of the critical error.
Back to the top
 
Posted
Rating:
#110907
Avatar

I'm currently downloading and compiling the latest PHP, will get back to you soon.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
 
Posted
Rating:
#110908
Avatar

My earlier post is edited. It's now working for me.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
 
Posted
Rating:
#110909

Fan in action

Thanks for the quick fix!
Back to the top
 
Posted
Item has a rating of 5 (Liked by Chris Graham)  
Rating:
#111171
Avatar

Community saint

Just had exactly the same issue with a php7 upgrade on infomaniak.
Applied the 3 fixes, everything works.

The world changes, Chris doesn't…  :P
Thx  :thumbs:

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: