Magic Quotes problem

Joomla version 1.0 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
balvanboy
Joomla! Explorer
Joomla! Explorer
Posts: 428
Joined: Sat Sep 09, 2006 6:48 pm
Location: Novi Sad, Serbia
Contact:

Magic Quotes problem

Post by balvanboy » Fri Sep 28, 2007 5:30 pm

How to fix this?

PHP magic_quotes_gpc setting is `OFF` instead of `ON`
http://www.webagencija.com | Usluge u oblasti weba!
http://www.brankopajic.com/blog | Blog o web trendovima!
Twitter @baneweb

dragonrider
Joomla! Ace
Joomla! Ace
Posts: 1070
Joined: Mon Aug 22, 2005 7:53 pm
Location: Ilkley, West Yorkshire, UK
Contact:

Re: Magic Quotes problem

Post by dragonrider » Fri Sep 28, 2007 8:16 pm

If you can use it in your .htaccess file, php_flag magic_quotes_gpc on, if you can't, add magic_quotes_gpc on to a php.ini file.

User avatar
balvanboy
Joomla! Explorer
Joomla! Explorer
Posts: 428
Joined: Sat Sep 09, 2006 6:48 pm
Location: Novi Sad, Serbia
Contact:

Re: Magic Quotes problem

Post by balvanboy » Sat Sep 29, 2007 12:31 pm

Can you give me more details?
http://www.webagencija.com | Usluge u oblasti weba!
http://www.brankopajic.com/blog | Blog o web trendovima!
Twitter @baneweb

dragonrider
Joomla! Ace
Joomla! Ace
Posts: 1070
Joined: Mon Aug 22, 2005 7:53 pm
Location: Ilkley, West Yorkshire, UK
Contact:

Re: Magic Quotes problem

Post by dragonrider » Sat Sep 29, 2007 1:45 pm

balvanboy wrote: Can you give me more details?
Add to .htaccess file:-

php_flag PHP magic_quotes_gpc on

If this causes your site to crash with 500 error, remove that line, resave .htaccess and site should then be back.

In that case, add to php.ini file:-

PHP magic_quotes_gpc on

User avatar
balvanboy
Joomla! Explorer
Joomla! Explorer
Posts: 428
Joined: Sat Sep 09, 2006 6:48 pm
Location: Novi Sad, Serbia
Contact:

Re: Magic Quotes problem

Post by balvanboy » Sat Sep 29, 2007 7:58 pm

Tnx so much. It works. ;D
http://www.webagencija.com | Usluge u oblasti weba!
http://www.brankopajic.com/blog | Blog o web trendovima!
Twitter @baneweb

User avatar
dyrer
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 176
Joined: Wed Aug 24, 2005 10:33 am
Location: Greece
Contact:

Re: Magic Quotes problem

Post by dyrer » Wed Oct 03, 2007 3:54 pm

Where is php.ini located to Plesk Control Panel?

dragonrider
Joomla! Ace
Joomla! Ace
Posts: 1070
Joined: Mon Aug 22, 2005 7:53 pm
Location: Ilkley, West Yorkshire, UK
Contact:

Re: Magic Quotes problem

Post by dragonrider » Wed Oct 03, 2007 6:34 pm

dyrer wrote: Where is php.ini located to Plesk Control Panel?
It isn't.

Go to your File Manager, then browse down to the folder you have your Joomla install in, Create new file, php.ini (text is fine). OK

Edit php.ini and insert the required code and save.

User avatar
dyrer
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 176
Joined: Wed Aug 24, 2005 10:33 am
Location: Greece
Contact:

Re: Magic Quotes problem

Post by dyrer » Wed Oct 03, 2007 8:50 pm

Command
php -i | grep -i magic_quotes
my results
magic_quotes_gpc => On => On
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off

But installation shows Magic_quates_gpc is OFF

User avatar
dingo1234
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Fri May 23, 2008 4:20 pm
Location: Netherlands
Contact:

Re: Magic Quotes problem

Post by dingo1234 » Mon Dec 07, 2009 12:58 pm

I really want to use magic quotes for Sobi2 (fetch coordinates - Google Maps)

In the Control Panel of my hosting provider I can see that Magic Quotes is on

In the Joomla backend System Info > PHP settings > Magic Quotes are Off

When I put the above code (see dragonrider) into the .htacces file > it gives Error 500
When I put it in a php.ini file that I made in the root dir. > nothing happend


Dingo

jeenious
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat Apr 24, 2010 5:38 pm
Contact:

Re: Magic Quotes problem

Post by jeenious » Tue Apr 27, 2010 7:27 pm

I was under the impression that magic quotes is not going to be included in php6. Some sort of secureity issue I believe. Why turn it on if there is some sort of security issue? Is there not an alternative?


Locked

Return to “Installation - 1.0.x”