![]() |
Function set_magic_quotes_runtime() is deprecated - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Function set_magic_quotes_runtime() is deprecated (/showthread.php?tid=25916) Pages:
1
2
|
Function set_magic_quotes_runtime() is deprecated - El Forum - 01-05-2010 [eluser]n0xie[/eluser] Are you sure you are using the latest version of CI? Line 109 in /system/libraries/Controller.php is this: Code: function _ci_scaffolding() Since your file seems to be in the application folder it seems to me that it is something you made yourself. Could you show us the code? Function set_magic_quotes_runtime() is deprecated - El Forum - 01-05-2010 [eluser]coolcom[/eluser] Yeah it is the latest version. The problem is not in the /system/libraries/ folder it is in the /application/libraries/ folder. I am using the syntax CMS to this website if that helps ![]() Function set_magic_quotes_runtime() is deprecated - El Forum - 01-05-2010 [eluser]n0xie[/eluser] I'm not familiar with SyntaxCMS so I will reiterate: Quote:Since your file seems to be in the application folder it seems to me that it is something you made yourself. Could you show us the code? Function set_magic_quotes_runtime() is deprecated - El Forum - 01-05-2010 [eluser]coolcom[/eluser] The error is in this function: Code: private function _assign_libraries() And in particually line 109 which is: Code: CI_Base::__construct(); Function set_magic_quotes_runtime() is deprecated - El Forum - 05-09-2010 [eluser]Bui Duc Long[/eluser] [quote author="coolcom" date="1262719257"]The error reporting was forced to off but i have switched it to on now and i am getting this: Fatal error: Non-static method CI_Base::CI_Base() cannot be called statically, assuming $this from incompatible context in C:\AppServ\www\vindinghoved\application\libraries\Controller.php on line 109[/quote] Hi, Just upgrade your HMVC to v5.2.31: http://modular-extensions-php5.googlecode.com/files/modular_extensions_5231.zip Function set_magic_quotes_runtime() is deprecated - El Forum - 06-15-2010 [eluser]Unknown[/eluser] [quote author="coolcom" date="1262236618"]Hello A few days ago I started to get this message on my website: Code: A PHP Error was encountered http://vindinghoved-kursuscenter.dk/ I have tried downloading the the latest version of codeigniter but when i overwrite the system folder and the index file I end up with a blank page and no idea where to solve this. Please help me ![]() If you installed php 5.3 and CI 1.7.2, you will founded error like above. Solution : 1. Solution for : Message: Function set_magic_quotes_runtime() is deprecated, you must Edit File : codeigniter/CodeIgniter.php Solution -> add comment : //set_magic_quotes_runtime(false); // Kill magic quotes 2. Solution for : Message: Assigning the return value of new by reference is deprecated. Edit file : codeigniter/Common.php Solution ->edit: $objects[$class] =& new $name(); to $objects[$class] = new $name(); 3. Solution for :Filename: libraries/Loader.php Edit file : libraries/Loader.php Solution -> Edit : $CI->dbutil =& new $class(); to $CI->dbutil = new $class(); Enjoy! Function set_magic_quotes_runtime() is deprecated - El Forum - 01-03-2011 [eluser]zawaruddin[/eluser] try to replace set_magic_quotes_runtime(0); with ini_set(“magic_quotes_runtime”, 0); then restart your web server application.,.,. Function set_magic_quotes_runtime() is deprecated - El Forum - 04-18-2011 [eluser]Jauhari[/eluser] [quote author="zawaruddin" date="1294071138"]try to replace set_magic_quotes_runtime(0); with ini_set(“magic_quotes_runtime”, 0); then restart your web server application.,.,.[/quote] Where is we must put this code? |