LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   PHP error after upgrading to latest version of PHP (http://www.linuxquestions.org/questions/programming-9/php-error-after-upgrading-to-latest-version-of-php-4175422645/)

Skillz 08-17-2012 12:57 PM

PHP error after upgrading to latest version of PHP
 
Code:

Fatal error: Method Display::__toString() must not throw an exception in /home/utfiles/public_html/index.php on line 645
I get this error in my script now after transferring the site to a new server with a newer version of PHP. 5.3.15 is the version of PHP it's running.

Here is the section it's referring to in the error:

Code:

        $log -> add_entry($search_log);
        $str = $dir_list -> __toString();
        echo new Display($str);


rosehosting.com 08-17-2012 02:54 PM

You should take a look at: http://stackoverflow.com/questions/2...-from-tostring

Skillz 08-17-2012 05:35 PM

So that means what exactly? lol

Skillz 08-17-2012 08:02 PM

Seems the error handling of the script isn't right. It was missing one of the template files, once I replaced that template file all is well.


All times are GMT -5. The time now is 04:27 AM.