Skip to main content

#75 Joomla 5.0.1 Event onContentBeforeDisplay only accepts String results.

Posted in ‘NorrCompetition’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information (available for public)

PHP version
8.1.24

Latest post by b2z on Sunday, 12 November 2023 13:59 EET

ssnobben

HI

I updated to Joomla 5.0.1 and have these report logs errors.

#Date: 2023-11-08 08:42:31 UTC
#Software: Joomla! 5.0.1-dev Development [ Kuboresha ] 17-October-2023 16:35 GMT

plg_competition_estream.php + plg_competition_notifications.php --->   com_competition    Event onContentBeforeDisplay only accepts String results.

 

 

 

 

b2z

Hello!

Thanks for reporting. Joomla 5 is strict :) Found this one for the core:

https://github.com/joomla/joomla-cms/issues/41611

Need to check from where it comes in NorrCompetition as both competition_estream and competition_notifications.php does not use onContentBeforeDisplay.

Kind regards,

Dmitrijs

b2z

Well I cannot reproduce it on our test server.

Can you please provide more info -

  1. ln what file of logs directory do you have these log records?
  2. When exactly does it happen? May be when there is a voting for a user or some other event.
  3. If possible please enable Debug. That should help to trace the source of the error.

Kind regards,

Dmitrijs

ssnobben

OK will check up later and see if I can trace it back again there.. Bcs I have updated to Joomla 5.0.1 dev version too. See also https://forum.joomla.org/viewtopic.php?f=844&t=1005297

b2z

OK, thank you. Otherwise it is hard to fix it.

Kind regards,

Dmitrijs

Support information

Support hours: You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+3), but not limited. Our staff is pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days.


Our time: / Your time:

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. We also ask you to remove temporary credentials at your site after the problem is resolved. Thank you.

Support of free extensions is not provided on this forum. Please submit your questions or report issues via Github tracker. See link on the product page.