forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: sindbad5 on May 13, 2019, 10:11:42 am

Title: Three Coppermine Installations not working any more
Post by: sindbad5 on May 13, 2019, 10:11:42 am
Hello!  I have three coppermine installations, which worked fine for a long time. But now they all have issues and I don't understand why. Maybe it has something to do with switching from PHP 5.x to 7.x, but I do not know.

A) http://www.photoinfos.com/telescopes/
B) http://www.oxly.de/foto/index.php

Both are cpg 1.6 an show the same behavior: Everyone can see the first page. But when you open an album, you'll get a blank page. If you are logged in as admin everything works fine.

C) http://www.medienarchiv.com/0/

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /www/htdocs/w012fc80/medienarchiv.com/0/include/functions.inc.php:183 Stack trace: #0 /www/htdocs/w012fc80/medienarchiv.com/0/include/init.inc.php(171): cpg_db_connect() #1 /www/htdocs/w012fc80/medienarchiv.com/0/index.php(26): require('/www/htdocs/w01...') #2 {main} thrown in /www/htdocs/w012fc80/medienarchiv.com/0/include/functions.inc.php on line 183

I don't remember, if that was switched from cpg 1.5x to 1,6x.

Does anyone see anything, which affects those installations?
Title: Re: Three Coppermine Installations not working any more
Post by: ron4mac on May 13, 2019, 01:33:04 pm
The last site needs to be upgraded to CPG 1.6.x.
https://forum.coppermine-gallery.net/index.php/topic,79013.msg383037.html#msg383037

The first two have problems with the theme you are using. In the <theme>/theme.php files, replace all mysql_xxx_xxx with cpg_db_xxx_xxx.
Title: Re: Three Coppermine Installations not working any more
Post by: sindbad5 on May 13, 2019, 04:39:08 pm
Thank you. That solved all issues.