Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0 Call to a member function enqueueMessage() on null #217

Closed
ZerooCool opened this issue Aug 7, 2024 · 3 comments
Closed

0 Call to a member function enqueueMessage() on null #217

ZerooCool opened this issue Aug 7, 2024 · 3 comments
Assignees
Labels
Milestone

Comments

@ZerooCool
Copy link

ZerooCool commented Aug 7, 2024

Lire logs depuis administrator/composant cliquer sur Log :

Une erreur est survenue
    0 Call to a member function enqueueMessage() on null 

Messages erreur Apache2 :

# PHP Warning:  Undefined variable $msg         in .../administrator/components/com_bfstop/controllers/allow.php on line 17', referer: https://joomla.amis-sh.fr/
# PHP Warning:  Undefined variable $application in .../administrator/components/com_bfstop/models/log.php on line 49', referer: https://joomla.amis-sh.fr/

Un problème de referer sur ma configuration des headers, il manque le chemin /administrator dans l'URL referer ?
Ou un autre problème d'après vous ?

@codeling
Copy link
Owner

codeling commented Aug 8, 2024

Thanks for the report!
The immediate error you see comes from a problem in the code handling a specific case - when log lines do not have the expected format. This will be fixed in a future release. Check the content of the log file ( logfolder-configured-in-joomla/plg_system_bfstop.log.php for the actual problem - the content of the log file. From the problematic code being triggered I can say that there's at least one line in there which does not have the 3 expected columns

@codeling
Copy link
Owner

codeling commented Aug 8, 2024

I have added a fix for this issue here: codeling/com_bfstop@f5c62eb

If you can apply the changes (in a default joomla installation, to administrator/components/com_bfstop/models/log.php), you will then also see more information on the offending lines in your log file.

@codeling codeling added this to the BFStop 1.5.3 milestone Aug 8, 2024
@codeling codeling added the bug label Aug 8, 2024
@codeling codeling self-assigned this Aug 8, 2024
@codeling
Copy link
Owner

codeling commented Aug 8, 2024

Will be fixed in v1.5.3.

@codeling codeling closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants