Welcome Guest, Not a member yet? Register   Sign In
Function set_magic_quotes_runtime() is deprecated
#11

[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()
    {
        if ($this->_ci_scaffolding === FALSE OR $this->_ci_scaff_table === FALSE)
        {
            show_404('Scaffolding unavailable');
        }
        
        $method = ( ! in_array($this->uri->segment(3), array('add', 'insert', 'edit', 'update', 'view', 'delete', 'do_delete'), TRUE)) ? 'view' : $this->uri->segment(3);
        
        require_once(BASEPATH.'scaffolding/Scaffolding'.EXT);
        $scaff = new Scaffolding($this->_ci_scaff_table);
        $scaff->$method();
    }

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?
#12

[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 Smile
#13

[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?
#14

[eluser]coolcom[/eluser]
The error is in this function:

Code:
private function _assign_libraries()
    {
        if ($core = end(modules::$registry))
        {            
            foreach (get_object_vars($core) as $key => $object)
            {
                if (is_object($object) AND ! isset($this->$key))
                    
                    $this->$key = $object;    
            }
        }
        else /* executes only for the first controller */
        {
            /* the CI core classes */
            $classes = array(
                'config'    => 'Config',
                'input'        => 'Input',
                'benchmark'    => 'Benchmark',
                'uri'        => 'URI',
                'output'    => 'Output',
                'lang'        => 'Language',
                'router'    => 'Router',
            );
            
            /* assign the classes */
            foreach ($classes as $key => $class)
            {
                $this->$key = load_class($class);    
            }
            
            /* initialize CI_Base */
            CI_Base::__construct();
        }
    }

And in particually line 109 which is:

Code:
CI_Base::__construct();
#15

[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
#16

[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

Severity: 8192

Message: Function set_magic_quotes_runtime() is deprecated

Filename: codeigniter/CodeIgniter.php

Line Number: 60
A PHP Error was encountered

Severity: 8192

Message: Assigning the return value of new by reference is deprecated

Filename: libraries/Loader.php

Line Number: 255

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 Smile[/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!
#17

[eluser]zawaruddin[/eluser]
try to replace

set_magic_quotes_runtime(0);

with

ini_set(“magic_quotes_runtime”, 0);

then restart your web server application.,.,.
#18

[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?




Theme © iAndrew 2016 - Forum software by © MyBB