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. ocPortal 9 is 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, 64 downloads so far)
Attachment
sources/developer_tools.php
» Download: developer_tools.php (6 Kb, 68 downloads so far)


Last edit: by Chris Graham


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

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


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. 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.
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
 
Posted
Rating:
#112131
Avatar

Well-settled

I have the same problem
http://ocportal.com/forum/topicview/misc/developing/what-hapenned-with-my.htm?post_id=-2#first_unread

changed mysql into mysqli

What to do with those two files? Should I them upload to root or what

My trial to learn ocPortal
~~~~~~~~~~~~~~~~~
http://audrone.serveriai.lt/straipsniai/
Back to the top
 
Posted
Rating:
#112132
Avatar

Well-settled

I uploaded them to sources and got aditional erros:

 Fatal error: Uncaught Error: Call to undefined function safe_ini_set() in /home/audrone/domains/audrone.serveriai.lt/public_html/strai
psniai/sources/global2.php:212 Stack trace: #0 /home/audrone/domains/audrone.serveriai.lt/public_html/strai
psniai/sources/global.php(311): init__global2() #1 /home/audrone/domains/audrone.serveriai.lt/public_html/strai
psniai/sources/global.php(532): require_code('global2') #2 /home/audrone/domains/audrone.serveriai.lt/public_html/strai
psniai/adminzone/index.php(36): require('/home/audrone/d…') #3 {main} thrown in /home/audrone/domains/audrone.serveriai.lt/public_html/strai
psniai/sources/global2.php on line 212
Critical error - bailing out
Uncaught Error: Call to undefined function safe_ini_set() in /home/audrone/domains/audrone.serveriai.lt/public_html/strai
psniai/sources/global2.php:212 Stack trace: #0 /home/audrone/domains/audrone.serveriai.lt/public_html/strai
psniai/sources/global.php(311): init__global2() #1 /home/audrone/domains/audrone.serveriai.lt/public_html/strai
psniai/sources/global.php(532): require_code('global2') #2 /home/audrone/domains/audrone.serveriai.lt/public_html/strai
psniai/adminzone/index.php(36): require('/home/audrone/d…') #3 {main} thrown

My trial to learn ocPortal
~~~~~~~~~~~~~~~~~
http://audrone.serveriai.lt/straipsniai/
Back to the top
 
Posted
Rating:
#112133
Avatar

These patches would have been posted with a particular rough version in mind. For them to work you'd need a matching version.

You need to:
  1. Put back the original versions of the files you replaced
  2. Roll back to a version of PHP before version 7 (some webhosts do allow you to select which PHP Version you use)
  3. Upgrade ocPortal to the latest patch release
  4. Put PHP back to version 7

If you're not able to control that, you may be able to do it on your own test machine running an older PHP version. You'd need to clone your files and database to the test machine, do step 3 there, and then copy them back again to the server.

This is going to be quite complicated, you might need someone with expertise to assist.

It's important to keep ocPortal updated as compatibility between things can break. It's a good idea to make sure the ocPortal installation is a few months ahead of the PHP version being installed on a server, so that you know we've had a few months to make sure any issues were fixed and the fixes officially released. Hopefully the web host communicated they were going to do the upgrade, they really should have.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. 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.
Back to the top
 
Posted
Rating:
#112134
Avatar

Well-settled

Thank you for answer
I already don't have replaced files
My website is damaged and don't know how to repaire
I will try maybe those files to upload from installed package ?

It is more simple to do in server that in local machine, - I do not work on local

My trial to learn ocPortal
~~~~~~~~~~~~~~~~~
http://audrone.serveriai.lt/straipsniai/
Back to the top
 
Posted
Rating:
#112135
Avatar

Well-settled

I did it and switched php to 5,6
I get errors :
Deprecated: iconv_set_encoding() [ref.iconv.php]: Use of iconv.output_encoding is deprecated in /home/audrone/domains/audrone.serveriai.lt/public_html/straipsniai/sources/global2.php on line 2091

Deprecated: iconv_set_encoding() [ref.iconv.php]: Use of iconv.internal_encoding is deprecated in /home/audrone/domains/audrone.serveriai.lt/public_html/straipsniai/sources/global2.php on line 2092


Could you say can I overwrite all files in admin panel of server by extracting the newest version 9,039
or this will be not OK?

My trial to learn ocPortal
~~~~~~~~~~~~~~~~~
http://audrone.serveriai.lt/straipsniai/
Back to the top
 
Posted
Rating:
#112136
Avatar

Well-settled

I opened global2.php
What to do on those lines 2091 and 2092?

iconv_set_encoding('output_encoding',$charset);
         iconv_set_encoding('internal_encoding',$charset);

i ADDED @ AND IT HELPED - FOUND this in my previuos questions


Last edit: by Beata

My trial to learn ocPortal
~~~~~~~~~~~~~~~~~
http://audrone.serveriai.lt/straipsniai/
Back to the top
 
Posted
Rating:
#112137
Avatar

You can put an "@" before them. So:

@iconv_set_encoding('output_encoding',$charset);
        @iconv_set_encoding('internal_encoding',$charset);


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. 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.
Back to the top
 
Posted
Rating:
#112138
Avatar

Well-settled

I got your answer in the same time, when edited my message

Could you say can I overwrite all files in admin panel of server by extracting the newest version 9,039
or this will be not OK?

Or I need find patch from 9.007

I got file 4.3.2-9.0.38.tar  - is this OK? My version 9.007

P.S. Joomla has automatic updates - it is easy update


Last edit: by Beata

My trial to learn ocPortal
~~~~~~~~~~~~~~~~~
http://audrone.serveriai.lt/straipsniai/
Back to the top
 
Posted
Rating:
#112139
Avatar

Well-settled

I have upgraded, don't find to see my version
And when I come to Admin zone I find many

images not found like this
An image code (bigicons/authors) was referenced that does not exist

My trial to learn ocPortal
~~~~~~~~~~~~~~~~~
http://audrone.serveriai.lt/straipsniai/
Back to the top
 
Posted
Rating:
#112140
Avatar

You should never manually extract an upgrade, because it will put files there for addons you do not have installed, and cause errors like this.

You need to go to the news of the latest v9 release:

ocPortal 9.0.39 released - ocPortal.com

Generate an upgrade TAR for your specific upgrade (i.e. from 9.0.7).

Follow the steps in the upgrader (/upgrader.php) to have it automatically extract for you.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. 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.
Back to the top
 
Posted
Rating:
#112141
Avatar

Well-settled

It is to late
9.07 don't worked for me or I didn't noticed
Now I did file from 9.07 to 9.038

I tried upgrader, it didn't worked for me and did manually through FTP
I don't know what to do now

ocPortal upgrader don't recognize my pasword although I can login

With help of FTP I can't, because my website is in folder



My trial to learn ocPortal
~~~~~~~~~~~~~~~~~
http://audrone.serveriai.lt/straipsniai/
Back to the top
 
Posted
Rating:
#112142
Avatar

You didn't take a backup?


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. 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.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Expand