PHP warning error! Please fix
« on: February 05, 2020, 03:53:04 PM »
Seeing this error for the first time.

PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/class.xml-creator.inc.php on line 312
cat error_log
[05-Feb-2020 15:45:41 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/class.xml-creator.inc.php on line 312
[05-Feb-2020 15:45:41 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 15:45:41 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-view.inc.php on line 114
[05-Feb-2020 15:48:24 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 15:48:24 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-view.inc.php on line 114
[05-Feb-2020 15:49:31 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 15:53:29 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 15:53:29 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-view.inc.php on line 114
[05-Feb-2020 15:55:42 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 15:55:43 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 15:55:44 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 15:58:00 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 15:58:45 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 15:58:47 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 16:01:14 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 16:01:16 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 16:01:30 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 16:01:42 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 16:01:45 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-sitemap-detail.inc.php on line 140
[05-Feb-2020 16:01:45 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /pages/page-view.inc.php on line 114

« Last Edit: February 05, 2020, 04:04:37 PM by ediong »
Re: PHP warning error! Please fix
« Reply #2 on: April 07, 2020, 09:07:23 PM »
Hello,

replied to your email.

Can you share how this was fixed? getting the same warnings and the sitemap wont generate.
Re: PHP warning error! Please fix
« Reply #3 on: April 09, 2020, 05:19:37 AM »
Hello,

you need to create a sitemap first before using the View sitemap page.