Osclass Support Forums

Osclass theme support => Zara Osclass Responsive Theme => Topic started by: james koya on March 12, 2021, 10:36:45 AM

Title: Warning: count(): Parameter must be an array or an object that implements
Post by: james koya on March 12, 2021, 10:36:45 AM
HI
I am facing "warning" error under user profile update page
I am using latest zara theme and OSClass 3.9

can you please guide me how to rectify these errors

*
Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\oc-includes\osclass\frm\User.form.class.php on line 126

Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\oc-includes\osclass\frm\User.form.class.php on line 138
Title: Re: Warning: count(): Parameter must be an array or an object that implements
Post by: MB Themes on March 12, 2021, 10:38:41 AM
@james koya
It require osclass update so functions properly handle empty arrays or in case array is expected, but string delivered.
Or update manually in those files.
Title: Re: Warning: count(): Parameter must be an array or an object that implements
Post by: james koya on March 12, 2021, 10:56:25 AM
you mean to say I need to version OSClass to 4.x.x ?
Title: Re: Warning: count(): Parameter must be an array or an object that implements
Post by: MB Themes on March 12, 2021, 11:19:12 AM
@james koya
Yes, or you fix those problems manually in core files.
Title: Re: Warning: count(): Parameter must be an array or an object that implements
Post by: james koya on March 12, 2021, 11:21:51 AM
can you guide me how to fix files and what files need to be fix
I dont have any idea on fixing this
Title: Re: Warning: count(): Parameter must be an array or an object that implements
Post by: MB Themes on March 12, 2021, 12:06:24 PM
Check i.e. this:
https://stackoverflow.com/questions/51109440/parameter-must-be-an-array-or-an-object-that-implements-countable-in-phpmyadmin

We will not invest time into such issues as those has been fixed in newer versions.
Title: Re: Warning: count(): Parameter must be an array or an object that implements
Post by: james koya on March 12, 2021, 12:19:25 PM
Thank you