cpmFetch Strict Standard errors cpmFetch Strict Standard errors
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.