The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
PHP Warning After Move To New Host
I'm getting the following warning after moving my websites to a new host when I try to save a template after editing it. The old host was running PHP 5.6, the new one is running PHP 7.2.12.
Code:
PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in ..../includes/class_core.php on line 4224 Code:
// only called when an object is destroyed, so $this is appropriate public function shutdown() { if (sizeof($this->callbacks)) { foreach ($this->callbacks AS $callback) { call_user_func($callback); } unset($this->callbacks); } } public function __wakeup() |
#2
|
|||
|
|||
One of the changes from php 7.1 => 7.2 http://php.net/manual/en/migration72.incompatible.php
Warn when counting non-countable types An E_WARNING will now be emitted when attempting to count() non-countable types (this includes the sizeof() alias function). Try PHP Code:
But vB4 isn't compatible with php7.2. So this will be only the starting point of a never ending error-solution-error-warning-error...circle. Go back to 7.1 if possible. |
3 благодарности(ей) от: | ||
Brandon Sheley, djbaxter, Master Of Unive |
#3
|
||||
|
||||
Thanks for the info the code worked. I have not seen any other warnings or errors so far. I'm on shared hosting so I may not be able to go backwards on PHP.
|
#4
|
|||
|
|||
HM666 are you on godaddy?
Getting same junk. You can choose the php version in the control panel (of godaddy) i think myphp |
#5
|
||||
|
||||
Nope have not used GoDaddy in years for hosting. I'm on Bluehost, but I have since had this situation solved by the host.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|