Magic Quotes GPC

jlobe
Posts: 41
Member Since:
2008-10-08
Quote:
You have magic_quotes_gpc enabled in your php.ini, http or .htaccess file which will cause errors in some modules. FreePBX expects this to be off and runs under that assumption

Good Morning. The above message is appearing on my trixbox 2.6.1 system which I installed about two weeks ago. I searched throughout my php.ini, http and .htaccess files. Some have magic quotes turned off and some files just say something like "Deny All"

What can I do with this message? I do not want issues on my system in the future.

Thanks a lot



TDF
Posts: 483
Member Since:
2006-12-19
Theres a recent thread on

Theres a recent thread on FreePBX about magic quotes.

http://www.freepbx.org/forum/freepbx/users/magic-quotes-enabled



jades
Posts: 2340
Member Since:
2006-11-26
I am having this same

I am having this same issue
Looks like it happens after a global yum update

jlobe, have you ever done a yum update before?

--

Joseph Ades
josephades1_at_gmail_dot_com
(212) 937-4299



cvander
Posts: 637
Member Since:
2006-06-26
I think I found the culprit (at least for me!)

I think I found the culprit. After upgrading the PBXSettings module to 6.5, I kept getting an error message saying the memory was set too low... So I go into /etc/php.ini and edit the file with nano

nano /etc/php.ini

turns out that when I changed the memory limit from 64M to 128M, the line wrapped, and schnockered up (that's a tecnical term) the parsing of the file. The end result was that magic quotes were set to on when they should have been off. If you get rid of the line wrap in the file, it takes care of the problem (don't ask me why). In the future, make sure you always edit your files like this instead:

nano -w /etc/php.ini

-Chris



jades
Posts: 2340
Member Since:
2006-11-26
Yes that's what happened

Yes that's what happened with me. I dont know why the line wrapped, it should be continuing on the same line.
Well anyways at least I resolved it and know what to do in the future.

jlobe did you follow the thread and get this resolved?

--

Joseph Ades
josephades1_at_gmail_dot_com
(212) 937-4299



jlobe
Posts: 41
Member Since:
2008-10-08
Got it working by following

Got it working by following the freepbx.org thread
Thanks for all your help



John_in_NC
Posts: 103
Member Since:
2006-10-19
as they say in show biz - That's a wrap!

And what it was on mine as well. :-)
thanks guys!

--

Running Trixbox v2.6.1.10



phodara
Posts: 17
Member Since:
2006-10-05
Magic Quotes GPC - finally fixed

Had the same problem. it was the line wrap in php.ini introduced when I changed memory size.

WAS:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 90 ; Maximum execution time
of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing $
memory_limit = 100M ; Maximum amount of memory a script may consume
(8MB)

SHOULD HAVE BEEN (note where (8MB) is):
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 90 ; Maximum execution time
of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing $
memory_limit = 100M ; Maximum amount of memory a script may consume (8MB)

This problem generated incorrect MAGIC_GPC_ENABLED notification
Also made OP PANEL and SSH SERVER indicators go yellow under server status



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.