Error message: Warning count in views/info/view.html.php on line 27

More
2 months 3 weeks ago #502 by marchdigital
Hi,

I have installed and configured the component and everything is working perfectly however I am seeing an error message while using the admin panel:

Warning: count(): Parameter must be an array or an object that implements Countable in /home/myjoomlacom/public_html/clients/accesseap/employees/administrator/components/com_improved_registration/views/info/view.html.php on line 27

 

Please Log in or Create an account to join the conversation.

More
2 months 3 weeks ago #503 by Gregorio
Hi marchdigital,

can I ask you which PHP version and which Joomla version are you using?

In the end, are you using the latest version 1.0.5 of Improved Registration?

Kind regards,
Gregorio

Please Log in or Create an account to join the conversation.

More
2 months 3 weeks ago #504 by marchdigital
Hi Gregoria,

I am running PHP 7.3 and Joomla! 3.9.27. And I am using version 1.0.5 of Improved Registration.

Regards

Chris

Please Log in or Create an account to join the conversation.

More
2 months 3 weeks ago #505 by Gregorio
Thank you for info.

Could I have a Joomla super user account and FTP login data?
If you can, send everything via email to This email address is being protected from spambots. You need JavaScript enabled to view it..
I will solve the issue asap and I will put the patch also in the new version 1.0.6 which will be released in autumn.

Kind regards,
Gregorio

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #506 by Gregorio
The issue has been solved and the amended files will be published in the next component release.

If anyone want to solve the problem before the next release, here is the solution.

Open files named view.html.php placed in each /administrator/components/com_improved_registration/views/[VIEW-NAME]/ folder and edit this code:
// Check for errors.
if (count($errors = $this->get('Errors')))
{
        throw new Exception(implode("\n", $errors));
}

In this way:
// Check for errors.
if (is_array($errors) && count($errors = $this->get('Errors')))
{
        throw new Exception(implode("\n", $errors));
}

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum