You can build great websites. We can help!   Get access to over 3,000 web design, CMS and ecommerce videos!   Plans from $6 per month
Welcome, Guest
Username: Password:

TOPIC: Magic Quotes GPC Error When Installing Joomla 3

Magic Quotes GPC Error When Installing Joomla 3 4 years 8 months ago #54658

  • WillRoz
  • WillRoz's Avatar
  • OFFLINE
  • Posts: 397
  • Thank you received: 2
Hello again,

I'm trying to install Joomla 3.0a2 on my server at Rochen.

The pre-installer will not let me proceed because Magic Quotes GPC is set to off.

I've looked in the xml file and the readme file, but there seems to be no method or direction to turn the Magic Quotes GPC on.

Anyone have any ideas on how to do this?

Thanks,
Will
Will Rosner
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 4 years 8 months ago #54660

  • jmc
  • jmc's Avatar
  • OFFLINE
  • Posts: 1633
  • Thank you received: 135
Hi Will
Have a look at this topic - I understand that you might need to talk with Rochen.
www.ostraining.com/support-forum/joomla-...pdo-issue-on-rochen/
Regards
Mark
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 4 years 8 months ago #54662

  • WillRoz
  • WillRoz's Avatar
  • OFFLINE
  • Posts: 397
  • Thank you received: 2
Hi Mark,

I put in a ticket with Rochen to see if there's any way they can enable Magic Quotes without it screwing up the rest of my server.

I followed the thread you linked to a post in the tracker here:
joomlacode.org/gf/project/joomla/tracker...racker_item_id=28899

This seems like a complicated workaround IMO. Since Rochen hosts the Joomla.org site, you'd figure that this would be an environment where 3.0 should just work out of the box.

Thanks,
Will

/*Edit
Apparently,I have it backwards. Magic Quotes should be set to off. Rochen has informed me that it's 'On' on my server. I'm not having them turn them off, because I run three live sites from that account, and I'm fairly certain this change will break them. Won't this present a problem moving forward with new sites? I have a couple that aren't scheduled until after the beginning of the year and I'd like to develop them on 3.0 from the get-go, but with this as an issue, it makes me hesitant.
Will Rosner
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 4 years 8 months ago #54671

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 23621
  • Thank you received: 694
Hi Will,

Create a php.ini file with the following:
magic_quotes_gpc = Off
extension=pdo.so
extension=pdo_mysql.so

Put it in your Joomla 3 root. Then change the htaccess.txt in your Joomla 3 root to .htaccess. Add the following lines to the .htaccess file (at the top) :
<IfModule mod_suphp.c>
  suPHP_ConfigPath /home/myusername/public_html/yourJ3folder
  <Files php.ini>
    order allow,deny
    deny from all
  </Files>
</IfModule>

Change "myusername" and "yourJ3folder" to your respective folders.

That's it. That will help you override it for just that site and won't affect your other sites. Although, even if you turn it off for the other sites, everything will still work as normal for those sites :)

Hope this helps! Let us know if you have any questions.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of
OSTraining to reply to this post.
The following user(s) said Thank You: amarettosour

Magic Quotes GPC Error When Installing Joomla 3 4 years 8 months ago #54678

  • WillRoz
  • WillRoz's Avatar
  • OFFLINE
  • Posts: 397
  • Thank you received: 2
Hi Nick,

Thanks for posting this. Somehow it made more sense here than when I looked at it on the Joomla Developers site. I managed to get through the install and everything looks good so far.

Do you know if this custom configuration will be needed on most of the commonly used servers?

Thanks,
Will
Will Rosner
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 4 years 8 months ago #54681

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 23621
  • Thank you received: 694
Hi Will,

It probably wouldn't be needed in most cases. Also, we're hoping to make it a recommendation for Joomla 3 rather than a requirement.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 4 years 8 months ago #54716

  • WillRoz
  • WillRoz's Avatar
  • OFFLINE
  • Posts: 397
  • Thank you received: 2
Hi Nick,

I suppose there's more testing needed as well, at least from a 'What host will this work well with perspective'. Right now, I just hope to get a 'sandbox' site set-up, and I'll worry about putting together a distro package once the stable release comes along and templates/extensions have had a chance to catch up. Hopefully this will be relatively painless.

The unofficial word from Rochen is
Due to the Joomla change requirement in 3.0 we are reviewing the possibility of changing this to an always 'off' state but have not yet made a decision. Thank you.

So, there you have it.

Also, thanks for passing that directive along earlier, it worked like a charm and was much easier than it looked on the other forum for some reason.

Take care, and I'll catch ya next time!

Thanks,
Will
Will Rosner
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 4 years 8 months ago #54725

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 23621
  • Thank you received: 694
Awesome! Thanks for the update!

You're welcome, Will! :)

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 4 years 7 months ago #56848

Hi Nick

Just testing Joomla 3 (the stable version) and ran into the same issue on a Godaddy hosted account. Added the code that you recommended above and at first, nothing changed. Then, I refreshed the installation screen to do a re-check and got an internal server error. Below is the code that I added to the .htaccess file:

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/content/89/7282289/html/joomla3
<Files php.ini>
order allow,deny
deny from all
</Files>
<IfModule>

This is the code I added to the php.ini file:

magic_quotes_gpc=Off
extension=pdo.so
extension=pdo_mysql.so

Anything noticeable? I'll keep working on it.

Thanks
Arthur
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 4 years 7 months ago #56849

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 23621
  • Thank you received: 694
Hi Arthur,

Try removing the following:
extension=pdo.so
extension=pdo_mysql.so

If you still have issues, open up a new forum topic and post the link on here.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 4 years 6 months ago #56981

Hi Nick

No luck when I removed the lines. Started a new forum topic as suggested. It can be found at:

www.ostraining.com/support-forum/joomla-...temid=300592/#p56979
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 4 years 6 months ago #57003

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 23621
  • Thank you received: 694
Hi Arthur,

Sorry to hear that it didn't work, but don't worry, because I'll help out. Unfortunately, the link you provided leads to a 404. Could you repost the new topic?

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 4 years 6 months ago #57049

Hi Nick

Sorry about that. Don't know what happened. Here is the URL for the re-post:

www.ostraining.com/support-forum/joomla-...temid=300592/#p57048

Thanks again
Arthur
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 4 years 6 months ago #57059

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 23621
  • Thank you received: 694
No problem, Arthur! I posted a solution in the other forum topic :)
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 3 years 7 months ago #78764

========================
=============== MY SOLUTION ============================
(rename your php.ini to php5.ini)

and in the top (!), add these:

magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
extension=pdo.so
extension=pdo_mysql.so


then in .htaccess, add this (in the top):

SetEnv PHPRC /home/your_path/to/public_html/php5.ini

p.s. change /home/your_path/to/ correctly (you can see that path by executing the <?php phpinfo(); ?> command from a typical .php file.)
Please become a member of
OSTraining to reply to this post.

Magic Quotes GPC Error When Installing Joomla 3 3 years 7 months ago #78784

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Posts: 23621
  • Thank you received: 694
Hi and welcome, tazosmr!

Thanks for posting what worked for you. I'm really glad you got things sorted. Nice job! :)

Cheers,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of
OSTraining to reply to this post.
You can build great websites. We can help!   Get access to over 3,000 web design, CMS and ecommerce videos!   Plans from $6 per month