forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: Adariel on January 04, 2015, 11:44:47 pm

Title: cpmFetch Strict Standard errors
Post by: Adariel on January 04, 2015, 11:44:47 pm
I recently got my host to upgrade to PHP 5.4 and suddenly had a bunch of "Strict Standards" errors on my CPG install.  Well, I upgraded my install to 1.5.34 and some of them went away, but I still had this one on the cpmFetch pages:

Strict Standards: Declaration of cpm::debugPrint() should be compatible with cpm_dao::debugPrint() in /path/to/cpg/cpmfetch/cpmfetch.php on line 50

After a lot of time online and Google and PHP.net, I narrowed it down and found this solution ...

In [cpg]/cpmfetch/cpmfetch_dao.php and find:
Code: [Select]
/**
*
* @access private
*/
function debugPrint( ) {

}

Replace it with:
Code: [Select]
/**
*
* @access private

function debugPrint( ) {

}
*/

Essentially you just have to comment out that empty function which is making PHP throw a fit.  You may need to refresh your pages and/or clear your cache, but this is what worked for me.  Good Luck!!
Title: Re: cpmFetch Strict Standard errors
Post by: phill104 on January 05, 2015, 08:42:45 am
Thanks for the fix. Sadly, the developer of CPMfetch hasn't been around for a long time. It is a great addition to CPG and it would be a shame to loose it.