Support > cpg1.5 miscellaneous
Gallery and php version 7.0 or 7.1
Dark_Angel:
gallery 1.5.48 attempting to use php version 7.0 or 7.1
c-panel says that all versions of php to 7.0 have been deprecated. I attempted to change our bridged forum to 7.0, forum works but the gallery says:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /attic/cpg/include/functions.inc.php:183 Stack trace: #0 /attic/cpg/include/init.inc.php(171): cpg_db_connect() #1 /attic/cpg/index.php(26): require('/home/servername/...') #2 {main} thrown in /attic/cpg/include/functions.inc.php on line 183
needless to say am back to version 5.6Just thought I would let someone know and to see if 1.6 behaves with 7.1php
ron4mac:
You should upgrade to CPG 1.6.x
https://forum.coppermine-gallery.net/index.php/topic,79013.msg383037.html#msg383037
Dark_Angel:
ok, tis what I thought. thanks. Have a great day.
JustJoe:
CPG faithful,
I have recently upgraded from Ubuntu 18.04 to 20.04...phew all went pretty smooth.
One issue is coppermine ver cpg1.6.x-1.6.06 stopped working.
I get this message when I surf to the GUI:
Fatal error: Uncaught Error: Call to a member function errorInfo() on null in /usr/local/src/cpg/cpg1.6.x-1.6.06/include/database/pdo/dbase.inc.php:71 Stack trace: #0 /usr/local/src/cpg/cpg1.6.x-1.6.06/include/init.inc.php(175): CPG_Dbase->getError() #1 /usr/local/src/cpg/cpg1.6.x-1.6.06/index.php(22): require('/usr/local/src/...') #2 {main} thrown in /usr/local/src/cpg/cpg1.6.x-1.6.06/include/database/pdo/dbase.inc.php on line 71
I saw this same error in this thread, so thinking there might be a known fix aside from re-installing cpg1.6 ???
The GUI is down right now, so any assistance on options to fix would be appreciated...
thx for your time in advance...
ron4mac:
--- Quote from: JustJoe on December 12, 2020, 07:17:04 pm ---I have recently upgraded from Ubuntu 18.04 to 20.04...phew all went pretty smooth.
One issue is coppermine ver cpg1.6.x-1.6.06 stopped working.
--- End quote ---
The quickest fix is probably to switch to using mysqli instead of PDO:mysql.
In the include/config.inc.php file, change the dbtype to mysqli.
--- Code: ---$CONFIG['dbtype'] = 'mysqli'; // Your database type
--- End code ---
P.S. There is no need to double post.
Navigation
[0] Message Index
[#] Next page
Go to full version