Joomla banner with keyword search not working - bug revisited!

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
mpiprojects
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Jun 14, 2021 1:44 pm

Joomla banner with keyword search not working - bug revisited!

Post by mpiprojects » Mon Jun 14, 2021 2:28 pm

ISSUE:
All banners with option 'Search by Meta Keyword' set to YES, have stopped working. The banners disappeared from view on the front-end (banners are not loaded - empty banners module). On all my Joomla websites.

All banners with option 'Search by Meta Keyword' set to NO, are still working as expected.

Changing the settings on the 'banners module' for 'position', 'client' or 'category' does not affect anything.

SITUATION TO RECREATE:
All the banners on my Joomla websites were working fine (always with latest version - current 3.9.27).
I did not change any code, I did not do any updates, I did not install new plugins, I only moved my websites to a new server (copied files, db & cpanel settings, changed to the new nameservers - nothing else changed).

(In the past 10 years I have encountered this bug 3 times. In my memory always after making a copy of a Joomla website. But even then on rare occasions.)

VERSIONS:
This seems pointless to mention, since this Joomla banner bug has been around for 15 years. And keeps popping up seemingly random; across all versions and circumstances.

I checked PHP (7.4.20) and mySQLi (8.0.23) compatibility, it does not seem an issue.
Server setup is (more or less) the same as the previous server.
There does not seem to be any conflict with other software or plugins (also unchanged from previous server).

KNOWN ERRORS (only where banner module is set to keyword search):
PHP message: PHP Warning: Invalid argument supplied for foreach() in /components/com_banners/models/banners.php on line 224
PHP message: PHP Warning: Invalid argument supplied for foreach() in /modules/mod_banners/tmpl/default.php on line 14

KNOWN REFERENCES:
https://github.com/joomla/joomla-cms/issues/14053
https://github.com/joomla/joomla-cms/issues/10140
https://issues.joomla.org/tracker/joomla-cms/29486

MY THOUGHTS:
In previous articles on this issue, it was mentioned that there is an internal sequence to the component functionality. Where this could influence the result for the meta keyword to be empty or non existent.
Thus apparently the Joomla banner component does not retrieve the keywords from the database to get the match.

As this bug makes little sense to me... I can think of only one possible cause, with the above in mind.
That is that after making a Joomla website copy. Somehow, somewhere some things get rearranged in order.
Where now the banner component / module is simply not getting a keyword match anymore.
However, it also seems very odd and this issue boggles my mind every time again.

Any help or thoughts would be appreciated!
A permanent fix would be awesome!

mpiprojects
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Jun 14, 2021 1:44 pm

Re: Joomla banner with keyword search not working - bug revisited!

Post by mpiprojects » Wed Jun 16, 2021 12:45 am

HLeithner added this to the Joomla! 3.9.14 milestone on Dec 5, 2019
https://github.com/joomla/joomla-cms/pull/26875

Apparently the issue returned :o

mpiprojects
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Jun 14, 2021 1:44 pm

Re: Joomla banner with keyword search not working - bug revisited!

Post by mpiprojects » Sat Jun 19, 2021 12:19 pm

After trying everything else.
Today I tested a fresh Joomla installation.
I created one article, one module and one banner.

The banner does NOT show up when keyword search/match is set to YES.
It will show up when keyword match is set to NO.

Again, this is on a new and clean Joomla installation on a new cloud server @ KnownHost.

illovo
Joomla! Intern
Joomla! Intern
Posts: 83
Joined: Sun Jan 13, 2013 9:30 am
Contact:

Re: Joomla banner with keyword search not working - bug revisited!

Post by illovo » Sat Jun 19, 2021 3:15 pm

Open a new issue on GitHub.

mpiprojects
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Jun 14, 2021 1:44 pm

Re: Joomla banner with keyword search not working - bug revisited!

Post by mpiprojects » Sat Jun 19, 2021 3:57 pm

If I had known how to do that I would have.
I have tried many times.
But I do not understand s##t on GitHub.
:(


Post Reply

Return to “General Questions/New to Joomla! 3.x”