How do I fix a PHP catchable fatal error: could not be converted to string...?

fiber

New member
Since transferring my site to a new host, it gives this error: Catchable fatal error: Object of class Pager could not be converted to string in /home2/wisebibl/public_html/turbophoto/config/paging.inc.php on line 49

The paths were fixed, but the new host has newer PHP I think could be changing the behavior. Anyone savvy know what might be causing it?

screenshot of error:
http://www.turbophoto.com/error3.png

This is the code for that section:

function leftPaging() {

global $clspg;

global $pages;

$pagelist = "";

if (trim($clspg) != "") /* this is line 49 */

if ($pages > 1)

$pagelist = $clspg->nextprev($_GET['page'], $pages);

return $pagelist;

}
Here's the php code:
http://www.turbophoto.com/config/class.pager.txt
http://www.turbophoto.com/config/paging.inc.txt
 
Back
Top