forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 upgrading => Topic started by: scouterjohn on December 21, 2018, 01:04:58 am

Title: final extract plugin failing
Post by: scouterjohn on December 21, 2018, 01:04:58 am
As I am turning my plugins back on after the upgrade final_extract fails badly. Is there a new version for cpg 1.6?

John
Title: Re: final extract plugin failing
Post by: scouterjohn on December 21, 2018, 01:12:41 am
Here's the error:


Fatal error: Call to undefined function mysql_fetch_assoc() in /home/agincour/public_html/photos/plugins/final_extract/codebase.php on line 176
Title: Re: final extract plugin failing
Post by: ron4mac on December 21, 2018, 03:53:27 am
Assuming here that you are able and reasonably comfortable with editing the files ...

In most cases, you can just change mysql_xxxx_xxxxx to cpg_db_xxxx_xxxxx and it should correct the error condition.
Title: Re: final extract plugin failing
Post by: scouterjohn on December 22, 2018, 09:23:12 pm
Thanks. That sorta helped.

I changed the 4 instances of mysql_*_* to cpq_db_*_* and the complaints about the undefined function went away. However I now get the error below from the line:
Code: [Select]
while($row = cpg_db_fetch_array($result,MYSQL_ASSOC)){
Error:
Fatal error: Call to a member function fetch_array() on a non-object in /home/agincour/public_html/photos/include/database/mysqli/dbase.inc.php on line 127

Is there a version of final_extract that works with CPG 1.6?
Title: Re: final extract plugin failing
Post by: ron4mac on December 22, 2018, 09:50:16 pm
Is there a version of final_extract that works with CPG 1.6?

Not currently...  I'll try to put together a version for CPG 1.6 in the next couple of days.
Title: Re: final extract plugin failing
Post by: scouterjohn on January 17, 2019, 11:43:34 pm
Thanks for the updated version. Works like expected.