Database problems? Database problems?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Database problems?

Started by KchoPrro, January 04, 2021, 12:06:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

KchoPrro

Hello friends, for a long time my gallery gives me an error:

QuoteFatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/vhosts/adolfoventas.es/httpdocs/galeria/include/functions.inc.php:183 Stack trace: #0 /var/www/vhosts/adolfoventas.es/httpdocs/galeria/include/init.inc.php(171): cpg_db_connect() #1 /var/www/vhosts/adolfoventas.es/httpdocs/galeria/index.php(26): require('/var/www/vhosts...') #2 {main} thrown in /var/www/vhosts/adolfoventas.es/httpdocs/galeria/include/functions.inc.php on line 183

My website: http://www.adolfoventas.es/galeria/

A photo from the gallery:
https://www.adolfoventas.es/galeria/displayimage.php?pid=697

I have checked everything and it seems to be in order, the database is correct, what is the problem?

ron4mac

Your hosting account has probably switched to using PHP7.x instead of PHP5.x.  You will either need to have PHP5.x be active again or upgrade your gallery to CPG 1.6.x.

You also need to fix your SSL certificate.

KchoPrro

Quote from: ron4mac on January 04, 2021, 02:11:53 PM
Your hosting account has probably switched to using PHP7.x instead of PHP5.x.  You will either need to have PHP5.x be active again or upgrade your gallery to CPG 1.6.x.

You also need to fix your SSL certificate.

OK thanks!!. I will have to update, manually, to version 1.6x  ;)

KchoPrro

Quote from: KchoPrro on January 08, 2021, 09:20:25 AM
OK thanks!!. I will have to update, manually, to version 1.6x  ;)

Finally, I have spoken with my hosting provider and they have lowered the PHP5.x version, now it works as before, without problems.

I'm going to consider upgrading to version 1.6x of coppermine whith update :)