Magic Quotes GPC Off

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
spiralvista
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sun Apr 01, 2012 11:24 pm

Magic Quotes GPC Off

Post by spiralvista » Tue Feb 19, 2013 11:07 pm

I am really sorry if this has been visited a number of times, but I cannot get it to work.

I am using MAMP and localhost to test and develop a site in joomla 3.0.

I have made a php.ini file with two lines:

Code: Select all

magic_quotes_gpc = Off
session.save_path = "/tmp"
and placed it in the installation folder, ran the installer but I still see

Code: Select all

Magic Quotes GPC Off 	No
help, please.

Thanks

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Magic Quotes GPC Off

Post by sovainfo » Tue Feb 19, 2013 11:29 pm

Verify in System information PHP Settings whether the php.ini is loaded.
If not, use .htaccess : SetEnv PHPRC /path /to/php.ini
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

spiralvista
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sun Apr 01, 2012 11:24 pm

Re: Magic Quotes GPC Off

Post by spiralvista » Wed Feb 20, 2013 12:00 am

Thanks

where/how do I find which php.ini is loaded. (i do not have a backend as I am failing in installation)

Code: Select all

Verify in System information PHP Settings whether the php.ini is loaded.
.htaccess ?? I only see a htaccess.txt in the root dir

Code: Select all

If not, use .htaccess : SetEnv PHPRC /path /to/php.ini
Thanks

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44092
Joined: Sat Apr 05, 2008 9:58 pm

Re: Magic Quotes GPC Off

Post by Webdongle » Wed Feb 20, 2013 12:23 am

...
First. Where is the php.ini file located?
/Applications/MAMP/bin/php/php5.2.17/conf/php.ini
or
/Applications/MAMP/bin/php/php5.3.6/conf/php.ini

Select phpInfo on your start screen of MAMP to see which version is running on your machine before editing. Or you may end up editing the wrong php.ini file and compounding the problem. (It’s right at the top of the page next to Start) Once on the phpInfo page do a search for “php.ini” and look at the file location.

Second, Depending on your php.ini settings, everyone uses different ones, you MUST restart MAMP for the changes to show up. This is what was making me crazy. I made the changes, refreshed the phpInfo page and nothing changed. But, restarting MAMP and all of the sudden they were all fixed. Makes sense, but not until after I figured it out.
http://www.crained.com/488/mamp-how-to- ... -ini-file/
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Magic Quotes GPC Off

Post by sovainfo » Wed Feb 20, 2013 12:35 am

Addition: Make sure you edit the live settings, lines that start with # are treated as comments. Edit the lines without the #!
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

spiralvista
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sun Apr 01, 2012 11:24 pm

Re: Magic Quotes GPC Off

Post by spiralvista » Wed Feb 20, 2013 12:41 am

phpinfo shows this:

Code: Select all

Configuration File (php.ini) Path 	/Applications/MAMP/conf/php5.3
Loaded Configuration File 	/Library/Application Support/appsolute/MAMP PRO/conf/php.ini 
I have restarted MAMP, ok so if I placed my local php.ini file with the two lines:

Code: Select all

magic_quotes_gpc = Off
session.save_path = "/tmp"
in the installation folder I should be able to complete the joomla 3 installation (like the million others!) but it still fails, I do not want to edit the main php.ini files as other joomla installation will be dependent on this file. So how do I point to my local php.ini file?

Thanks

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44092
Joined: Sat Apr 05, 2008 9:58 pm

Re: Magic Quotes GPC Off

Post by Webdongle » Wed Feb 20, 2013 1:47 am

Where is your local php.ini file ? /administrator ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Magic Quotes GPC Off

Post by sovainfo » Wed Feb 20, 2013 2:10 am

If .htaccess doesn't work, you have no other option than to change the ini used.

You need .htaccess in the root to point to the two line php.ini wherever you put it. It seems this only works when running as cgi.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

spiralvista
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sun Apr 01, 2012 11:24 pm

Re: Magic Quotes GPC Off

Post by spiralvista » Wed Feb 20, 2013 7:12 pm

my local php.ini is in the /installation folder. This will get me through installation.

I have not played around with the .htaccess file before, if I create an .htaccess file (rename htaccess.txt, in my joomla root) what/how code do I enter in the .htaccess file?

I am sure I am chasing a simple resolution otherwise everyone would have had this problem.

Thanks

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Magic Quotes GPC Off

Post by sovainfo » Wed Feb 20, 2013 7:39 pm

Just search this board to find postings that provide the syntax for .htaccess related to magic_quotes_gpc
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!


Locked

Return to “Installation Joomla! 3.x”