Advanced search  

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

Pages: [1]   Go Down

Author Topic: Fatal error: Uncaught Error - Cannot access Coppermine galery  (Read 5748 times)

0 Members and 1 Guest are viewing this topic.

Mate Matic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28

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:

Code: [Select]
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?
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Fatal error: Uncaught Error - Cannot access Coppermine galery
« Reply #1 on: April 20, 2022, 01:37:55 pm »

Yes ... see here.
Logged

Mate Matic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Fatal error: Uncaught Error - Cannot access Coppermine galery
« Reply #2 on: April 20, 2022, 02:01:14 pm »

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


Logged

Mate Matic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Fatal error: Uncaught Error - Cannot access Coppermine galery
« Reply #3 on: April 20, 2022, 02:03:25 pm »

I had actually set permissions:

Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Fatal error: Uncaught Error - Cannot access Coppermine galery
« Reply #4 on: April 20, 2022, 05:34:26 pm »

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.
Logged

Mate Matic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Fatal error: Uncaught Error - Cannot access Coppermine galery
« Reply #5 on: April 20, 2022, 08:48:45 pm »

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.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Fatal error: Uncaught Error - Cannot access Coppermine galery
« Reply #6 on: April 20, 2022, 10:27:54 pm »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 20 queries.