Jump to content

Recommended Posts

Posted

Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home/rosampeu/public_html/initdata.php:382 Stack trace: #0 /home/rosampeu/public_html/index.php(21): require_once() #1 {main} thrown in /home/rosampeu/public_html/initdata.php on line 382

Imi puteti spune ce are?

  • 3 years later...

Posted

Pentru cei ce au problema cu magic_quote

Deschidem initdata.php din folderul radacina al forumului

Cautam linia :

@set_magic_quotes_runtime(0); if ( ! defined( 'IPS_MAGIC_QUOTES' ) ) { define( 'IPS_MAGIC_QUOTES', @get_magic_quotes_gpc() ); }

Si editam cu linia :

if( version_compare( phpversion(), '5.4.0', '<') ) { @set_magic_quotes_runtime(0); if ( ! defined( 'IPS_MAGIC_QUOTES' ) ) { define( 'IPS_MAGIC_QUOTES', @get_magic_quotes_gpc() ); } } else { if ( ! defined( 'IPS_MAGIC_QUOTES' ) ) { define( 'IPS_MAGIC_QUOTES', false ); } }

Atentie !

phpversion(), '5.4.0' - Aici treceti exact versiunea de php din Cpanel! de exemplu daca avem setat 5.6, in loc de 5.4.0 trecem 5.6. Ea va trebui sa arate asa :

if( version_compare( phpversion(), '5.6', '<') ) { @set_magic_quotes_runtime(0); bla bla bla bla cod bla

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.