ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Codeigniter PHP error on hosting company server

April 24, 2012 10:12am

Subscribe [1]
  • #1 / Apr 24, 2012 10:12am

    adekenny

    24 posts

    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 / Apr 24, 2012 11:17am

    vrencianz

    60 posts

    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.

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

     

  • #3 / Apr 24, 2012 11:49am

    adekenny

    24 posts

    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 / Apr 24, 2012 12:30pm

    vrencianz

    60 posts

    Ah, then try to delete that line 😊 Hope that helps.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases