Hello I am new to the forums and a new Drupal user too
I have been trying to run this for the past week but there are quite some errors which I am posting below
Notice: Undefined offset: 8192 in F:\Java\Documents\Prashant\public_html\Drupal\includes\common.inc on line 612
Notice: Undefined offset: 8192 in F:\Java\Documents\Prashant\public_html\Drupal\includes\common.inc on line 619
: Function ereg() is deprecated in F:\Java\Documents\Prashant\public_html\Drupal\includes\file.inc on line 895.
Now, I also read the deprecated ereg() can be replaced by preg_match() here in some other post. But doing that gives me these errors
Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in F:\Java\Documents\Prashant\public_html\Drupal\includes\file.inc on line 895
Notice: Undefined index: minnelli in F:\Java\Documents\Prashant\public_html\Drupal\includes\theme.maintenance.inc on line 61
Notice: Trying to get property of non-object in F:\Java\Documents\Prashant\public_html\Drupal\includes\theme.inc on line 92
Notice: Trying to get property of non-object in F:\Java\Documents\Prashant\public_html\Drupal\includes\theme.inc on line 418
Notice: Trying to get property of non-object in F:\Java\Documents\Prashant\public_html\Drupal\includes\theme.inc on line 418
Notice: Trying to get property of non-object in F:\Java\Documents\Prashant\public_html\Drupal\includes\theme.inc on line 418
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at F:\Java\Documents\Prashant\public_html\Drupal\includes\file.inc:895) in F:\Java\Documents\Prashant\public_html\Drupal\includes\bootstrap.inc on line 1031
Warning: Cannot modify header information - headers already sent by (output started at F:\Java\Documents\Prashant\public_html\Drupal\includes\file.inc:895) in F:\Java\Documents\Prashant\public_html\Drupal\includes\bootstrap.inc on line 630
Warning: Cannot modify header information - headers already sent by (output started at F:\Java\Documents\Prashant\public_html\Drupal\includes\file.inc:895) in F:\Java\Documents\Prashant\public_html\Drupal\includes\bootstrap.inc on line 631
Warning: Cannot modify header information - headers already sent by (output started at F:\Java\Documents\Prashant\public_html\Drupal\includes\file.inc:895) in F:\Java\Documents\Prashant\public_html\Drupal\includes\bootstrap.inc on line 632
Warning: Cannot modify header information - headers already sent by (output started at F:\Java\Documents\Prashant\public_html\Drupal\includes\file.inc:895) in F:\Java\Documents\Prashant\public_html\Drupal\includes\bootstrap.inc on line 633
HOME
# warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in F:\Java\Documents\Prashant\public_html\Drupal\includes\file.inc on line 895.
# warning: array_keys() expects parameter 1 to be array, null given in F:\Java\Documents\Prashant\public_html\Drupal\includes\theme.maintenance.inc on line 217.
# warning: Invalid argument supplied for foreach() in F:\Java\Documents\Prashant\public_html\Drupal\includes\theme.maintenance.inc on line 217.
The errors I have specified after I change the ereg to preg_match have been sorted. I mean the full page is filled with these errors especially the "preg_match - alphanumeric or backslash error".
Thanks in advance
Comments
What version of PHP are you
What version of PHP are you using?
It is 5.3 and my Apache is
It is 5.3 and my Apache is 2.2 and MySQL is the latest community server I got from their site (I do not remember the version number)
See
See http://drupal.org/requirements, under "PHP" it is stated that "PHP 5.3 is not yet supported for Drupal 6".
So what do I do then wait for
So what do I do then wait for it the updates to come out or is there any workaround
Uninstall PHP 5.3 and
Uninstall PHP 5.3 and install the latest PHP 5.2.x
Ok. Thanks. I guess this must
Ok. Thanks. I guess this must solve my problem.
php5.3.x not yet supported in Drupal 6; easy fix in WAMP
Thanks for this little tidbit. I'm starting out with WAMP and wanted to share with anyone else how simple it was to go down a version of php and get back running in php 5.2.x and drupal 6.
cheers :)
--
http://drupaltees.com
80s themed Drupal T-Shirts
Contributed modules not support 5.3
As quoted in drupal.org requirements section,
Although PHP 5.3 is supported by Drupal 6, some contributed modules may not be compatible with PHP 5.3, and some PHP 5.3 configurations still show warnings with Drupal 6.14.
So, I had 6.12, and it showed warnings. Then I switched to 5.9. It removed the warnings. Then, I updated my drupal core to 6.28 (latest D6 version). Then, once I changed back to 5.3, it worked without warnings. So latest D6 version supports PHP 5.3.
Muhammad.
www.app-desk.com
Have any luck with this??
I searched for this error, since I had the same on my first setup... I followed the advice of usine PHP 5.2.9-2 but I still have these errors.. any more suggestions?? and let me know if you find a solution...
OK ..Adding a further line to this... I had to go back as far as PHP 5.2.8 to get this error to clear..??
Thanks
Edit Drupal Code so it ignores the Notice and Deprecated flags
You can edit you common.inc file to quietly disregard the deprecated error flags. See my post:
http://funkinetics.org/klink/function-ereg-is-deprecated-error-in-drupal-6x-with-php-53/
5.2.8 not sufficiently far back?
I went back as far as 5.2.8 and it still appears. The 5.2.8 I am using comes from XAMPP for Linux v 1.7
Christian Nally - B.C., Canada - http://sticksallison.com
XAMPP for Linux 1.6.8a
I had to go back to XAMPP for Linux 1.6.8a to find compatibility, which has PHP 5.2.6
Christian Nally - B.C., Canada - http://sticksallison.com
Solution is a little patch in
Solution is a little patch in common.inc on a ante-diluvial 5.x drupal install. Maybe this helps for a drupal 6 install
(Got my problem when upgarding to PHP 5.4)
- $types = array(1 => 'error', 2 => 'warning', 4 => 'parse error', 8 => 'notice', 16 => 'core error', 32 => 'core warning', 64 => 'compile error', 128 => 'compile warning', 256 => 'user error', 512 => 'user warning', 1024 => 'user notice', 2048 => 'strict warning', 4096 => 'recoverable fatal error');
+ $types = array(1 => 'error', 2 => 'warning', 4 => 'parse error', 8 => 'notice', 16 => 'core error', 32 => 'core warning', 64 => 'compile error', 128 => 'compile warning', 256 => 'user error', 512 => 'user warning', 1024 => 'user notice', 2048 => 'strict warning', 4096 => 'recoverable fatal error',8192 =>'probably magic quotes problem');
I don't know the exact reason for this 8192 error returned, but I think it's something to do with magic quotes, or some other esotherical cause...
Egbert - webdevelopment and implementation - www.overboord.nl
8192 is a PHP Error code for
8192 is a PHP Error code for DEPRECATED (http://php.net/manual/en/errorfunc.constants.php). Deprecated things still work, but are discouraged for general use and might be removed from the codebase entirely on a major upgrade. You can configure your PHP to not throw deprecation notices.