Thought I would post about this as it's wasted a couple of hours of my life today when I decided to put in a clean install of 4.1.12.
My problem was that I was seeing the following when loading up install.php
In PHP 5.4.0 E_STRICT became part of E_ALL. From what I can work out this has resulted in E_STRICT errors being thrown when loading install.php.
I started off by explicitly disabling E_STRICT in my php.ini, but they still seemed to be getting thrown, so to make life easy I just set 'display_errors = off '. Here's where my problems started, despite it being turned off, the errors kept being shown. I fiddled about looking for addition places where display_errors may be set, but found nothing. I created a <? phpinfo(); ?> file but that showed display_errors as being off as well. After a couple of hours of banging my head against a brick wall i modified install.php to have a phpinfo(); at the bottom, surprise surprise display_errors is now showing as on...
I then search through the required files and found that init.php has this little gem:
Thanks guys, that really made my day.
A quick tweak to this file to turn display_errors to off and the whole install went through flawlessly, shame I won't get those hours finding this back...
My problem was that I was seeing the following when loading up install.php
Code:
Strict Standards: Non-static method vB_Shutdown::instance() should not be called statically, assuming $this from incompatible context in /var/www/vbulletin/includes/class_core.php on line 3341 Strict Standards: Declaration of vB_Database_Alter_MySQL::drop_index() should be compatible with vB_Database_Alter::drop_index() in /var/www/vbulletin/includes/class_dbalter.php on line 882 Strict Standards: Declaration of vB_Database_Alter_MySQL::add_index() should be compatible with vB_Database_Alter::add_index() in/var/www/vbulletin/includes/class_dbalter.php on line 882 Strict Standards: Declaration of vB_Database_Alter_MySQL::add_field() should be compatible with vB_Database_Alter::add_field() in/var/www/vbulletin/includes/class_dbalter.php on line 882 Strict Standards: Declaration of vB_Database_Alter_MySQL::drop_field() should be compatible with vB_Database_Alter::drop_field() in /var/www/vbulletin/includes/class_dbalter.php on line 882 Strict Standards: Declaration of vB_Database_Alter_MySQL::query() should be compatible with vB_Database_Alter::query() in /var/www/vbulletin/includes/class_dbalter.php on line 882
I started off by explicitly disabling E_STRICT in my php.ini, but they still seemed to be getting thrown, so to make life easy I just set 'display_errors = off '. Here's where my problems started, despite it being turned off, the errors kept being shown. I fiddled about looking for addition places where display_errors may be set, but found nothing. I created a <? phpinfo(); ?> file but that showed display_errors as being off as well. After a couple of hours of banging my head against a brick wall i modified install.php to have a phpinfo(); at the bottom, surprise surprise display_errors is now showing as on...
I then search through the required files and found that init.php has this little gem:
Code:
// try to force display_errors on @ini_set('display_errors', true);
A quick tweak to this file to turn display_errors to off and the whole install went through flawlessly, shame I won't get those hours finding this back...
Comment