CI site no longer works with new host - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: CI site no longer works with new host (/showthread.php?tid=63301) |
CI site no longer works with new host - Jagarm - 10-16-2015 I recently switched web host and having tough time to get anything to work with the new web host. I was with hostmonster and they were using PHP 5.4 I am now with Webserve and they use PHP 5.5.30 I don't know what changed, but I am using MY_Loader.PHP and it goes into loop whenever it is used. I have enabled error logs and attached for your information. I'm using smarty and it was working in PHP 5.4 but it keeps loading the smarty settings in PHP 5.5.30 Following is my MY_Loader.PHP that is in Appliation\Core folder PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); I really appreciate your help Thanks RE: CI site no longer works with new host - Jagarm - 10-17-2015 I also found out that it doesn't halt on errors, instead it redirects to main page RE: CI site no longer works with new host - John_Betong - 10-17-2015 Have you tried loading the default Welcome page without using Smarty? Try creating another test page then gradually introduce database, Smarty, etc It is far better to have something simple that works then introduce more features until it breaks. When online error_reporting is disabled, try setting debug mode in index.php and also set your configure.php threshold to the maximum value of 4 RE: CI site no longer works with new host - pdthinh - 10-17-2015 (10-17-2015, 01:17 PM)Jagarm Wrote: I also found out that it doesn't halt on errors, instead it redirects to main page Try comment out the assignByRef line in your Loader because it was assigned in the Smartytpl.php PHP Code: // Assign CI instance to be available in templates as $ci |