Jump to content

Problems with magicquotes and fopen


Recommended Posts

Hi,

 

I am using a2hosting, prestashop 1.5.4, but someparts of the back office says I have problems with fopen and magicquotes, I check the phpinfo and looks fine booth (local and master)

allow_url_fopen On On magic_quotes_gpc Off Off magic_quotes_runtime Off Off magic_quotes_sybase Off Off

 

 

Has anyone had a problem like this one? is it big deal? or can I just let it go like that?

 

Thank you

Edited by gjalvarez (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

SOLVED I have the same problem. The php.ini file looks OK, yet I get this:

 

Check your configuration

Required parameters: OK

Optional parameters: Please fix the following error(s)

  • fopen
  • magicquotes

When I try to update a product and save it, I get this error message:

Bad Request

 

Your browser sent a request that this server could not understand.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

I'm using PS 1.5.4

Edited by filipstudio (see edit history)
Link to comment
Share on other sites

Hi filipstudio,

Try turning off mod_security:

Preferences->SEO&URLs

 

'Disable apache mod security' (set to YES to disable!)

 

If that doen't help, tell your host you run an E-commerce solution that conflicts with mod_security and let them turn if off.

 

my 2 cents,

pascal

Link to comment
Share on other sites

Hello Pascal,

 

It didn't work. The host said they wouldn't change the security mod on a shared server. They've fixed the issue after I gave them my back office credentials (they didn't tell me how).

 

Thanks for your help. I appreciate it.

 

I'll mark it as "solved", even if I have no idea what was wrong with it.

Link to comment
Share on other sites

  • 1 year later...

Make sure you are looking at the correct php.ini file. Create a new php file and name it "phpinfo.php" , write this code "<?php
phpinfo(); ?>" and upload this file to the root folder of your website. Access file thru your browser. Near the top of the page you will find your "Loaded Configuration File" make a note of the directory so you can find it on your ftp server

 

You should delete the phpinfo.php file that you uploaded when you are done

Edited by lensdoctor (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...