by (180 points)
Hi.

When I go to the checkout page, I get the following error :
An error occurred
Application error.

I found that if I remove the  {$store:checkout} widget from the html, then the page opens.

php error log:

[Wed Mar 02 14:07:51.997256 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:51.998511 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.022288 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.032297 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.034558 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.035006 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.037473 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.039263 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.039707 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.040657 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.041236 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.044527 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.045002 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.045566 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.046628 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  Trying to access array offset on value of type null in /var/www/seotoaster/plugins/api/Api.php on line 1167, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.046811 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  Trying to access array offset on value of type null in /var/www/seotoaster/plugins/newslog/Newslog.php on line 185, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.046821 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  Trying to access array offset on value of type null in /var/www/seotoaster/plugins/newslog/Newslog.php on line 188, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.047063 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  Trying to access array offset on value of type null in /var/www/seotoaster/plugins/widcard/Widcard.php on line 980, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.048357 2022] [php7:warn] [pid 5495] [client 192.168.178.235:38768] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.050010 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  Trying to access array offset on value of type null in /var/www/seotoaster/plugins/api/Api.php on line 1167, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.050172 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  Trying to access array offset on value of type null in /var/www/seotoaster/plugins/newslog/Newslog.php on line 185, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.050201 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  Trying to access array offset on value of type null in /var/www/seotoaster/plugins/newslog/Newslog.php on line 188, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.050390 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  Trying to access array offset on value of type null in /var/www/seotoaster/plugins/widcard/Widcard.php on line 980, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.051271 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  compact(): Undefined variable: extras in /var/www/seotoaster/seotoaster_core/library/Zend/View/Helper/HeadLink.php on line 393, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.051302 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  compact(): Undefined variable: extras in /var/www/seotoaster/seotoaster_core/library/Zend/View/Helper/HeadLink.php on line 393, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.051317 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  compact(): Undefined variable: extras in /var/www/seotoaster/seotoaster_core/library/Zend/View/Helper/HeadLink.php on line 393, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.051373 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  compact(): Undefined variable: extras in /var/www/seotoaster/seotoaster_core/library/Zend/View/Helper/HeadLink.php on line 393, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.052011 2022] [php7:notice] [pid 5495] [client 192.168.178.235:38768] PHP Notice:  Trying to access array offset on value of type null in /var/www/seotoaster/seotoaster_core/application/layouts/scripts/layout.phtml on line 112, referer: http://192.168.178.235/seo/
[Wed Mar 02 14:07:52.189787 2022] [php7:warn] [pid 7816] [client 192.168.178.235:38772] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/checkout.html
[Wed Mar 02 14:07:52.190168 2022] [php7:warn] [pid 7816] [client 192.168.178.235:38772] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/checkout.html
[Wed Mar 02 14:07:52.190784 2022] [php7:warn] [pid 7816] [client 192.168.178.235:38772] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/checkout.html
[Wed Mar 02 14:07:52.295054 2022] [php7:warn] [pid 6732] [client 192.168.178.235:38776] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/checkout.html
[Wed Mar 02 14:07:52.404293 2022] [php7:warn] [pid 7514] [client 192.168.178.235:38770] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/seotoaster/seotoaster_core/library/Zend/Db/Table/Abstract.php on line 1305, referer: http://192.168.178.235/seo/checkout.html





Regards,
Aleks

1 Answer

by (4.1k points)
Hi Aleks,

All this warnings and notices not related to the "An error occurred Application error."

Could you provide the version of the CMS and information about your hosting and version of the PHP.

Thank you Regards.
by (180 points)
edited by
Hi Andrey.
 Local toaster version: 3.4.0
PHP 7.4.3 (cli) (built: Feb 24 2022 14:55:48)
Regards
Aleks
by (180 points)
edited by
Hi.

Solution: mysql -u root -p -e "SET GLOBAL sql_mode = 'NO_ENGINE_SUBSTITUTION';"

Regards
Aleks
...