![]() |
Errors after server upgrade - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Errors after server upgrade (/showthread.php?tid=60923) |
Errors after server upgrade - El Forum - 08-01-2014 [eluser]Unknown[/eluser] Hi there I've got a bunch of errors coming up on an old site after a server upgrade. For the record I am not a programmer - basic front end only here - but I can follow directions ![]() Here is the main error: Code: A PHP Error was encountered I've got PHP 5.3.27 on the server and the site hails back to 2008 with no updates. Can anyone advise whether there's a quick fix / what that might be if so? I did see an answer to a similar question here: https://ellislab.com/forums/viewthread/124643/P45 But I'm not quite sure WHERE I would put that code if it indeed would also work in my situation Thanks in advance for any help you can offer ![]() --- EDIT ---- Well! I did a find and replace on Code: set_magic_quotes_runtime(0); Code: ini_set("magic_quotes_runtime",0); Worked a treat! Now onto error number two: Code: The URI you submitted has disallowed characters. -- EDIT -- Also fixed with a find and replace on Code: if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str))) Code: if ( ! preg_match("|^[".($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str))) and also in the application/config/config file changed to this: Code: $config['permitted_uri_chars'] = 'a-z 0-9~%\.\:_\-'; Which then gave me another error ... Code: Function ereg_replace() is deprecated Code: preg_replace Seems to be all sorted. Now I'm just wondering if anything I did was bad practice or needs a different solution? --- EDIT --- All sorted except for images are all showing as missing when they are definitely there on the server and path is A-OK. Images when clicked and 'View in another tab' chosen are giving a 404 page not found. Any ideas? Errors after server upgrade - El Forum - 08-04-2014 [eluser]Unknown[/eluser] Well I resolved the image issue also. It was a permissions issue. Sorted with the host. |