Fatal error: Uncaught Error - Cannot access Coppermine galery Fatal error: Uncaught Error - Cannot access Coppermine galery
 

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: Uncaught Error - Cannot access Coppermine galery

Started by Mate Matic, April 20, 2022, 07:18:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mate Matic

Hello Coppermine pros,

I haven't done anything to my gallery in a long time. I'm still running Coppermine version: 1.5.34.
Now I receive more and more SPAM emails via the comment or contact function. When I tried to investigate the matter, I found that the gallery doesn't work at all.
Here is my gallery:

http://www.m-tron.net/coppermine/thumbnails.php?album=20

I get the error message:

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/vhosts/web690.c1.webspace-verkauf.de/html/coppermine/include/functions.inc.php:183 Stack trace: #0 /var/www/vhosts/web690.c1.webspace-verkauf.de/html/coppermine/include/init.inc.php(171): cpg_db_connect() #1 /var/www/vhosts/web690.c1.webspace-verkauf.de/html/coppermine/login.php(21): require('/var/www/vhosts...') #2 {main} thrown in /var/www/vhosts/web690.c1.webspace-verkauf.de/html/coppermine/include/functions.inc.php on line 183

In the forum I read in similar threads that you should first update to the latest Coppermine version. Would that also be your recommendation at this point?


Mate Matic

Thanks, ron4mac.
An error message comes up when I execute the php script in the browser:



Mate Matic


ron4mac

The script gets the CPG package from the repository and tries to save it to the system/PHP temporary directory or the albums/edit folder in your CPG instance. The temporary folder and/or albums/edit must be writable by the web server.

Try this slightly modified installer stub (attached) to see if it gets around your issue.

Mate Matic

I have now set all folders and files in the CPG directory to rwx (see attached screenshot). However, the error message still comes up.

Could not save package file. Operation aborted.

ron4mac

Sorry the installer stub is not working for you ... it simplifies the upgrade effort needed.
I guess you'll have to use the manual method.