Function set_magic_quotes_runtime() is deprecated |
[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?
[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
[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?
[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();
[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.googlecod...s_5231.zip
[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 [/quote] 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!
[eluser]zawaruddin[/eluser]
try to replace set_magic_quotes_runtime(0); with ini_set(“magic_quotes_runtime”, 0); then restart your web server application.,.,.
[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? |
Welcome Guest, Not a member yet? Register Sign In |