PHP 7.0/HTTPS woes: some functions have been deprecated
-
Call to undefined function split() in [...mypath...]/wp-content/plugins/advertising-manager/lib/OX/Ad.php
is fixed by opening the file in question, looking for line 78 which says:
list($width, $height) = split('[x]', $value);
split() has been deprecated and removed on PHP 7, so the alternative is something like:
list($width, $height) = str_split('[x]', $value);
This will not work 100%, but at least it will allow the plugin to work until a better fix is made.
Also, the plugin is not totally HTTPS-friendly — a few references are still made to resources using https:// when they should be made using // to be sure they work well under HTTP and HTTPS. For those who wish to run websites with HTTPS, it’s fulcral that everything — and this obviously means all ads! — is transferred via HTTPS, or some browsers will silently ignore those blocks and not load them.
- The topic ‘PHP 7.0/HTTPS woes: some functions have been deprecated’ is closed to new replies.