vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=326946

PHP Warning After Move To New Host
by HM666
05 Dec 2018 20:53

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.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Here is what is in that part of the file.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I can edit templates but it will not show the edits on the site. Any help would be great.

shka 05 Dec 2018 21:19

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In php 7.3 there will be a is_countable() function. https://wiki.php.net/rfc/is-countable

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.

HM666 05 Dec 2018 21:50

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. :(

Wisc 10 Dec 2018 07:03

HM666 are you on godaddy?

Getting same junk.
You can choose the php version in the control panel (of godaddy) i think myphp

HM666 10 Dec 2018 09:24

Quote:

Originally Posted by Wisc (Post 2597724)
HM666 are you on godaddy?

Getting same junk.
You can choose the php version in the control panel (of godaddy) i think myphp

Nope have not used GoDaddy in years for hosting. :) I'm on Bluehost, but I have since had this situation solved by the host. :)


All times are GMT. The time now is 20:37.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.