Getting An Error On My Site: "Error: 0 Count(): Argument #1 Value Must Be Of Type Compatible..." - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Getting An Error On My Site: "Error: 0 Count(): Argument #1 Value Must Be Of Type Compatible..."

BC

Bill Clements

Helix Framework 3 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

0
8 Answers
BC
Bill Clements
Accepted Answer
3 years ago #79945

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.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #79937

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

0
BC
Bill Clements
Accepted Answer
3 years ago #79939

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?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #79940

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 !

0
BC
Bill Clements
Accepted Answer
3 years ago #79941

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"?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #79942

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

Or create button link inside top2.

0
BC
Bill Clements
Accepted Answer
3 years ago #79943

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?

0
BC
Bill Clements
Accepted Answer
3 years ago #79944

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

0