Welcome Guest, Not a member yet? Register   Sign In
Errors after server upgrade

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 Smile

Here is the main error:

A PHP Error was encountered
Severity: 8192

Message: Function set_magic_quotes_runtime() is deprecated

Filename: codeigniter/CodeIgniter.php

Line Number: 60

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 Smile

--- EDIT ----

Well! I did a find and replace on
and changed it to

Worked a treat!

Now onto error number two:
The URI you submitted has disallowed characters.
Still have to figure that one out. CodeIgniter_1.6.3 is probably the version if the folder name is anything to go by.

-- EDIT --

Also fixed with a find and replace on
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))
changed to
if ( ! preg_match("|^[".($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))

and also in the application/config/config file changed to this:
$config['permitted_uri_chars'] = 'a-z 0-9~%\.\:_\-';

Which then gave me another error ...
Function ereg_replace() is deprecated
so I replaced that with

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?

Well I resolved the image issue also. It was a permissions issue. Sorted with the host.

Theme © iAndrew 2016 - Forum software by © MyBB