CI site no longer works with new host |
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
I also found out that it doesn't halt on errors, instead it redirects to main page
10-17-2015, 05:47 PM
(This post was last modified: 10-17-2015, 05:49 PM by John_Betong. Edit Reason: Spelling, not my forty :) )
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 (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 |
Welcome Guest, Not a member yet? Register Sign In |