Jump to content

Recommended Posts

Posted

Hi,

Installation: PHP v7.2.16, MySQL v5.7.25-28 

It works but shows errors in admin panel:

Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  count(): Parameter must be an array or an object that implements Countable
                             on line 113 of "/var/www/ads.*******.com/lib/max/ErrorHandler.php"
                             on line 8 of "/var/www/ads.*******.com/var/templates_compiled/%%13^131^131103E5%%breadcrumbs-title.html.php"
                             on line 1887 of "/var/www/ads.*******.com/lib/smarty/Smarty.class.php"
                             on line 10 of "/var/www/ads.*******.com/var/templates_compiled/%%7C^7C5^7C541EE6%%content-header.html.php"
                             on line 1887 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 241 of "/var/www/ads.*****.com/var/templates_compiled/%%72^729^729250E1%%main.html.php"
                             on line 1260 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 1106 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 193 of "/var/www/ads.*****.com/lib/OA/Admin/Template.php"
                             on line 291 of "/var/www/ads.*****.com/lib/OA/Admin/UI.php"
                             on line 154 of "/var/www/ads.*****.com/www/admin/lib-gui.inc.php"
                             on line 101 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  count(): Parameter must be an array or an object that implements Countable
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 194 of "/var/www/ads.*****.com/var/templates_compiled/%%13^131^131103E5%%breadcrumbs-title.html.php"
                             on line 1887 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 10 of "/var/www/ads.*****.com/var/templates_compiled/%%7C^7C5^7C541EE6%%content-header.html.php"
                             on line 1887 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 241 of "/var/www/ads.*****.com/var/templates_compiled/%%72^729^729250E1%%main.html.php"
                             on line 1260 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 1106 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 193 of "/var/www/ads.*****.com/lib/OA/Admin/Template.php"
                             on line 291 of "/var/www/ads.*****.com/lib/OA/Admin/UI.php"
                             on line 154 of "/var/www/ads.*****.com/www/admin/lib-gui.inc.php"
                             on line 101 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 482 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  count(): Parameter must be an array or an object that implements Countable
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 35 of "/var/www/ads.*****.com/var/templates_compiled/%%B0^B07^B07CE728%%startsection.html.php"
                             on line 1887 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 28 of "/var/www/ads.*****.com/var/templates_compiled/%%34^34C^34C59B79%%option.html.php"
                             on line 1260 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 1106 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 193 of "/var/www/ads.*****.com/lib/OA/Admin/Template.php"
                             on line 584 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:27 +0000 OA-5c909ceb58ff2 [  warning]  count(): Parameter must be an array or an object that implements Countable
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 35 of "/var/www/ads.*****.com/var/templates_compiled/%%B0^B07^B07CE728%%startsection.html.php"
                             on line 1887 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 28 of "/var/www/ads.*****.com/var/templates_compiled/%%34^34C^34C59B79%%option.html.php"
                             on line 1260 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 1106 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 193 of "/var/www/ads.*****.com/lib/OA/Admin/Template.php"
                             on line 584 of "/var/www/ads.*****.com/lib/OA/Admin/Option.php"
                             on line 239 of "/var/www/ads.*****.com/www/admin/account-settings-debug.php"
Mar 19 07:40:28 +0000 OA-5c909cebcae02 [  warning]  count(): Parameter must be an array or an object that implements Countable
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 8 of "/var/www/ads.*****.com/var/templates_compiled/%%13^131^131103E5%%breadcrumbs-title.html.php"
                             on line 1887 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 10 of "/var/www/ads.*****.com/var/templates_compiled/%%7C^7C5^7C541EE6%%content-header.html.php"
                             on line 1887 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 241 of "/var/www/ads.*****.com/var/templates_compiled/%%72^729^729250E1%%main.html.php"
                             on line 1260 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 1106 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 193 of "/var/www/ads.*****.com/lib/OA/Admin/Template.php"
                             on line 291 of "/var/www/ads.*****.com/lib/OA/Admin/UI.php"
                             on line 154 of "/var/www/ads.*****.com/www/admin/lib-gui.inc.php"
                             on line 33 of "/var/www/ads.*****.com/www/admin/agency-index.php"
Mar 19 07:40:28 +0000 OA-5c909cebcae02 [  warning]  count(): Parameter must be an array or an object that implements Countable
                             on line 113 of "/var/www/ads.*****.com/lib/max/ErrorHandler.php"
                             on line 194 of "/var/www/ads.*****.com/var/templates_compiled/%%13^131^131103E5%%breadcrumbs-title.html.php"
                             on line 1887 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 10 of "/var/www/ads.*****.com/var/templates_compiled/%%7C^7C5^7C541EE6%%content-header.html.php"
                             on line 1887 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 241 of "/var/www/ads.*****.com/var/templates_compiled/%%72^729^729250E1%%main.html.php"
                             on line 1260 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 1106 of "/var/www/ads.*****.com/lib/smarty/Smarty.class.php"
                             on line 193 of "/var/www/ads.*****.com/lib/OA/Admin/Template.php"
                             on line 291 of "/var/www/ads.*****.com/lib/OA/Admin/UI.php"
                             on line 154 of "/var/www/ads.*****.com/www/admin/lib-gui.inc.php"
                             on line 33 of "/var/www/ads.*****.com/www/admin/agency-index.php"

 

Does anyone have a similar problem?

Posted

There are loads of things that are going to be removed in future versions of PHP which Revive Adserver still uses.

We try and disable warnings in the code, but depending on the PHP configuration, this may not always work.

Please update your PHP configuration for Revive Adserver to disable these warnings....

  • 8 months later...
Posted

Hi,

there is just the same error in my debug.log:  count(): Parameter must be an array or an object that implements Countable

I'm running Revive Adserver v4.2.1 based on nginx 1.14.2, PHP 7.3.11-1+0~20191026.48+debian10~1.gbpf71ca0 und MySQL 5.5.5-10.3.17-MariaDB-0+deb10u1-log.

What do I have to change in order to solve the above issue?

Regards
Michael

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...