Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Platform: OpenSuSE 10.1, Apache 2.2, PHP 5.2
When chosen mysqli in the first step of setting up 5.0 beta 2, if Zend 1 compatibility mode is on it gives a fatal error:
Trying to clone an uncloneable object of class mysqli in /path/to/drupal5.0/includes/install.mysqli.inc on line 36
This is a problem with PHP5 directive more than a Drupal bug, but setting an error handler will be a good idea.
Comments
Comment #1
mathiasm CreditAttribution: mathiasm commentedit still does that on Drupal 6.
After an unresponsed post in the forum, google lead me there.
Fedora 4, PHP 5.0.4, mySql 4.1.1
Comment #2
ceo_kal CreditAttribution: ceo_kal commentedsorry for kicking an old msg.. but i'm still having this problem with 6.2. Any one knows what to do?
Comment #3
john spain CreditAttribution: john spain commentedMy configuration: xampp for windows 1.1.6a, Apache PHP version 5.2.5, MySQL API 5.0.51a
Situation: Installing Drupal 6.3.
My workaround: Set "zend.ze1_compatibility_mode = off" in Apache's php.ini file. Then refresh the browser page (from Drupal's installation script) that displayed the error. Installation ran OK then.
Comment #4
owahab CreditAttribution: owahab commentedPumping issue version according to #3.
Comment #5
safetypinI just got this error with version 6.16. Is the workaround in #3 the only solution?
Comment #6
codewaggle CreditAttribution: codewaggle commentedIf you're using PHP 5.3.x you can try removing the zend.ze1_compatibility_mode line from the .ini file, it is no longer a valid directive.
From the PHP manual:
http://php.net/manual/en/ini.core.php
Name
zend.ze1_compatibility_mode
Default
"0"
Changeable
PHP_INI_ALL
Changelog
Available since PHP 5.0.0. Removed in PHP 5.3.0