Fatal Error Message Fatal Error Message
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Fatal Error Message

Started by alexsocal, August 24, 2017, 02:09:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alexsocal

HI, sorry to bother. The gallery was working perfectly until one day I started getting the foolowing message. I reinstal it in a different directory, and I get the same message. PHP version: 5.6.30. Any help will be greatly appreciated.

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/rinconbusologo/public_html/fotos2/include/functions.inc.php:183 Stack trace: #0 /home/rinconbusologo/public_html/fotos2/include/init.inc.php(171): cpg_db_connect() #1 /home/rinconbusologo/public_html/fotos2/index.php(26): require('/home/rinconbus...') #2 {main} thrown in /home/rinconbusologo/public_html/fotos2/include/functions.inc.php on line 183

ron4mac

It would appear that your PHP version is now v7. That error message is typical of what happens when the PHP version get switch to 7+.

You can either get the PHP version set back to 5.6 or upgrade your site to CPG1.6.
http://forum.coppermine-gallery.net/index.php/topic,79013.0.html

alexsocal

thank you very much for your feedback

I uploaded the file upgrader.php and when I intend to run it, I still get a similar message.
Sincerely

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/rinconbusologo/public_html/fotos2/include/functions.inc.php:183 Stack trace: #0 /home/rinconbusologo/public_html/fotos2/include/init.inc.php(171): cpg_db_connect() #1 /home/rinconbusologo/public_html/fotos2/upgrader.php(21): require('/home/rinconbus...') #2 {main} thrown in /home/rinconbusologo/public_html/fotos2/include/functions.inc.php on line 183


ron4mac

Quote from: alexsocal on August 24, 2017, 05:06:06 PM
I uploaded the file upgrader.php and when I intend to run it, I still get a similar message.
Since your gallery is not functioning properly, you need to use the cpg_installer_stub.php from the post at the link that I provided.

alexsocal

thankyou very much for your help. sincerely.

I followed your instructions, uploaded cpg_installer_stub.php

when I run it I get the following message:

"Releases of CPG not found at Github"

Sincerely
Alex

ron4mac

Unfortunately, it would seem that PHP on your server is not configured in a way to allow the method to work. It needs to either have allow_url_fopen set or libcurl enabled. If neither of those settings can be made on your server, then you'll have to use the manual method of uploading each of the cpg1.6 files to your server. Follow directions here (except use the 1.6.03 files). You MUST run the update.php file after placing all the files.

alexsocal

I can't thank you enough for all the help given.
The new version is working perfectly.
This is a great community. Thank you very much.
Alex