Welcome Guest, Not a member yet? Register   Sign In
Codeigniter PHP error on hosting company server
#1

[eluser]adekenny[/eluser]
Hi,

My hosting company recently upgraded their cpanel application and i discovered that my Codeigniter framework that was formerly running fine on their server is now showing the error shown below:

A PHP Error was encountered

Severity: 8192

Message: Function set_magic_quotes_runtime() is deprecated

Filename: codeigniter/CodeIgniter.php

Line Number: 46

The URI you submitted has disallowed characters.



Kindly advise me on what to do to make my application run well as before.

Thanks
Kenny
#2

[eluser]vrencianz[/eluser]
It seams that your codeigniter is different than 5.3 (according the line number). If you don't want to upgrade codeignter then modify that line like this.

Code:
if ( ! is_php('5.3'))
{
  @set_magic_quotes_runtime(0); // Kill magic quotes
}
#3

[eluser]adekenny[/eluser]
I just changed that line of code to what you posted and i got the message shown below:


Fatal error: Call to undefined function is_php() in /home/divycoll/public_html/system/codeigniter/CodeIgniter.php on line 46


Maybe i should just upgrade my version of Codeigniter to version 2.1.0 if there's no solution.

#4

[eluser]vrencianz[/eluser]
Ah, then try to delete that line Smile Hope that helps.




Theme © iAndrew 2016 - Forum software by © MyBB