Author Topic: How To Remove magic_quotes_gpc ERROR msg  (Read 3474 times)

Offline Vincent1

  • Newbie
  • *
  • Posts: 1
How To Remove magic_quotes_gpc ERROR msg
« on: November 19, 2008, 04:35:14 PM »
Ok, **below (bottom) = how to get rid of error message**

Tried editing the .htaccess file, did not work.
I contacted my hosting provider.
They said to create a file that allows me to create my own php.ini file and php will use it.
To cut it short, done that, don't work.
Read that magic_quotes_sybase if set to on (1) will overide magic_quotes_gpc anyway so therefore ROUNDCUBE won't work even if you change the htaccess file and create your own php.ini (with overide script telling php to use different php.ini).
Read tons of help files,
read tons of tickets etc submitted via others on roundcube and guess what "NO HELP AT ALL FROM ROUNDCUBE".

Guess roundcube only uses magic quotes due to far to many bulls up with the programmers writing sloppy code.

OH AND GUESS WHAT ELSE 'ROUNDCUBE' sloppy programmers, better learn not to be sloppy at all due to the following.

From PHP: Magic Quotes - Manual
Magic Quotes
This feature is DEPRECATED and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.

Well anyway heres how to 'GET PAST THE ERROR MESSAGE'.

Within installer folder, open check.php

change this

$ini_checks = array('file_uploads' => 1, 'session.auto_start' => 0,
    'magic_quotes_gpc' => 0, 'magic_quotes_sybase' => 0,
    'zend.ze1_compatibility_mode' => 0);

to this

$ini_checks = array('file_uploads' => 1, 'session.auto_start' => 0,
    'magic_quotes_gpc' => 1, 'magic_quotes_sybase' => 0,
    'zend.ze1_compatibility_mode' => 0);

**Basically change line 14 where it states

'magic_quotes_gpc' =>0

to

'magic_quotes_gpc' =>1

this will then allow you to install roundcube.

Just be careful that some sloppy programmer has not wrote some sloppy code else you in trouble.
Yet it seems to work ok so far for me.
:-X
« Last Edit: November 19, 2008, 04:37:31 PM by Vincent1 »