Display Error Message when Magic Quotes is Enabled - patch

379 views
Skip to first unread message

brian teeman

unread,
Jul 5, 2013, 4:44:32 PM7/5/13
to joomla-...@googlegroups.com
Joomla 3 does not support php with magic quotes enabled and will not install. However we do NOT check for magic quotes (or anything else) when we do an upgrade.

Every day there are multiple users on the forum who are having problems because they have successfully upgraded from 2.5 and now see weird issues.

This patch will display an error message on both the admin login page and the admin console if magic quotes is enabled.




I chose NOT to kill the admin as we do if the server does not have php >5.3.1 as Joomla will still work just with issues that need to be resolved.

Please see http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31349 on the Joomla Feature tracker for the patch.

Chad Windnagle

unread,
Jul 5, 2013, 7:19:41 PM7/5/13
to joomla-...@googlegroups.com
Hi Brian:

I'll try to test this patch in a little bit. The one suggestion I had is that it seems a little odd to point to the user to 'the host', especially since we don't know if they actually are using a hosting company. It's possible they could be using a localhost or self-hosting. I think maybe the text of the error could say something that just addresses the php setting, eg: "Your php configuration needs to be updated to turn off magic_quotes_gpc". Any thoughts along those lines?

Chad

Regards,
Chad Windnagle


--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-cm...@googlegroups.com.
To post to this group, send an email to joomla-...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-cms.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

brian teeman

unread,
Jul 6, 2013, 4:39:15 AM7/6/13
to joomla-...@googlegroups.com
Yes I did think about that but
1. the error message about php versions is "Your host needs to use PHP 5.3.1 or higher to run this version of Joomla!'"

2. the best advice is to resolve this with your host and not to try to use ny of the self-solutions posted on the net.

Matt Dray

unread,
Jul 8, 2013, 3:24:25 PM7/8/13
to joomla-...@googlegroups.com
If your host will not allow access to turn off magic quotes, is this not something that can be done with .htaccess and php.ini in the sites root directory?

Constantin Romankiewicz

unread,
Jul 8, 2013, 3:59:59 PM7/8/13
to joomla-...@googlegroups.com
This depends on if / how your host allows you to change PHP settings. Some have an option in the host backend, some allow minor changes via php.ini or .htaccess and some don't allow any PHP setting changes at all.
Reply all
Reply to author
Forward
0 new messages