Hello,
In your .htaccess file, add following line
php_flag magic_quotes_gpc Off
Does it help ?
Hi FranceImage, after which line do I put it?
this is my .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Hi,
After #END WordPress is fine
Nope, it gave me an Internal Server Error and took the site down 🙁
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator and inform them of the time the error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Oups, it seems you may have corrupted the htaccess file
Were you able to step back ?
Here is the htaccess I tested (dont copy it as is … the url is a bit different)
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /events/ajax-event-calendar/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /events/ajax-event-calendar/index.php [L]
</IfModule>
# END WordPress
php_flag magic_quotes_gpc Off
Double check with yours and call your webhosting for support … it should work
Yes I was able to delete the last line and restore the site (whew)
You can see my .htaccess above
What would I have to change on the htaccess that you have written here?
I sure wish that the developers of Ajax Event Calendar would do an update so that these modifications would not be necessary!
in the meantime you can edit ajax-event-calendar.php
Line 391: replace the block with
// get_magic_quotes_gpc issue
if (get_magic_quotes_gpc()) {
$_POST = array_map( 'stripslashes_deep', $_POST );
$_GET = array_map( 'stripslashes_deep', $_GET );
$_COOKIE = array_map( 'stripslashes_deep', $_COOKIE );
$_REQUEST = array_map( 'stripslashes_deep', $_REQUEST );
}
It will remove the admin alert and allow quoted strings to be shown in the calendar and the events
This plugin has been deactivated because your changes resulted in a fatal error.\
Parse error: syntax error, unexpected T_STRING in /home/content/45/5171045/html/wp-content/plugins/ajax-event-calendar/ajax-event-calendar.php on line 834
I am about ready to throw in the towel!! 🙁
…and even when I replace the old code, it will not reactivate. I will have to uninstall and reinstall it.
This is all very strange …
First the corrupted htaccess file and now the same with the php file 🙁
Is it the first time you edit files the way you are doing just now ?
I forgot: DO NOT uninstall the plugin to replace the code (apparently the plugin deletes the data when it is uninstalled !)
Transfer (ftp) and override the file ajax-event-calendar.php instead
I did not uninstall at first. I copied the code into Dreamweaver, found line 391, replaced the block of code with the new one, copied and pasted it back and updated. Alas, the plugin deactivated and would not reactivate even when the original code was replaced.
There was very little data anyway, so no loss, really.
Yes, this is the first time I have edited files in this way, but I was very careful.
I don’t want you to keep going to the trouble of coming up with solutions, so I think as long as the plugin works, we can just live with the stupid alert.