cpmFetch Strict Standard errors cpmFetch Strict Standard errors
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

cpmFetch Strict Standard errors

Started by Adariel, January 04, 2015, 11:44:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Adariel

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:
/**
*
* @access private
*/
function debugPrint( ) {

}


Replace it with:
/**
*
* @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!!

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.