Solved Helix Framework

Getting an error on my site: "Error: 0 count(): Argument #1 value must be of type compatible..."

Asked by Bill Clements 4 years ago Last activity 4 years ago

Can you please help me with this error?! I am using Joomla 4.2.0 and just updated to the current version of SP Page Builder Pro.

When I look on the server. I can see the following message in the error_log:

[16-Aug-2022 09:16:27 America/Boise] PHP Warning: Undefined variable $twofactormethods in /home4/inspirk9/public_html/pulseretail/templates/shaper_wayne_corp/html/mod_login/default.php on line 70

Accepted answer

Marked as the solution
Bill Clements Asked this

I resolved this issue myself by removing the if clause from templates/shaper_wayne_corp/html/mod_login/default.php that reference the $twofactormethods varialble.

7 more replies

Paul Frankowski Senior Staff

Hi,

probably that template is not fully ready for Joomla 4.2 changes,

Quick fix: DELETE that file

templates/shaper_wayne_corp/html/mod_login/default.php

Bill Clements Asked this

Thank you for the quick response but now I am seeing the login form in the 'top1' section and this should not be appearing. How do I fix that?

Paul Frankowski Senior Staff
4 years ago · edited

we have to fix it inside Helix template & plugin code

I already added to our bug-list.

But yes, it's caused by login module override !

Bill Clements Asked this

Well ... what do I do about my site meanwhile? I cannot have it looking like it is! What can I do to resolve this while we wait for a "fix"?

Paul Frankowski Senior Staff

For now, please add Login view as menu item in Main Menu - right maybe?

Or create button link inside top2.

Bill Clements Asked this

Okay ... I am probably going to need a bit more help with that - sorry. How exactly do I add the menu item or button and what exactly am I adding?

Bill Clements Asked this

I added "Login" to the main menu and I am still getting the bad login form in the top1 position!

Log in to reply.