Read before updating: How to Update Kunena Templates - More detail

PHP Deprecated error Creation of dynamic property KunenaLayout::$id

dexter33's Avatar Topic Author
Premium Member Premium Member
  • Posts: 84
  • Thanks: 5

PHP Deprecated error Creation of dynamic property KunenaLayout::$id

8 months 3 weeks ago - 8 months 3 weeks ago
#16981
Hi again
In have found two PHP errors in my Joomla Error Logs.
At first I posted a message on the official Kunena forums, but they advised me the error was coming from NTS Kay template.
When I switched the template from NTS Kay to Aurelia, the PHP errors stopped, which would indicate that NTS Kay is creating the PHP errors.

PHP Error #1
PHP Deprecated: Creation of dynamic property Kunena\Forum\Libraries\Layout\KunenaLayout::$id is deprecated in /home/moviestu/public_html/libraries/kunena/src/Layout/KunenaBase.php on line 574

PHP Error #2 & #3 (I think these two are related?)
PHP Warning: Undefined variable $end_tag_params in /home/moviestu/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321
PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/moviestu/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 1274

Can you investigate this please.
My forum is www.moviestudiozen.com/forum/index

Regards, Derek.


 
Don't panic!
Last edit: 8 months 3 weeks ago by dexter33.

Please Log in or Create an account to join the conversation.

cssyeah's Avatar
Moderator Moderator
  • Posts: 84
  • Thanks: 36

Re: PHP Deprecated error Creation of dynamic property KunenaLayout::$id

8 months 3 weeks ago
#16984
Hi Dexter,
Please help me clone this error on your test website. I have installed NTS Kay template on latest Kunena version but the error is not appearing on my localhost.

Kind regards,
UI/UX Designer - Web developer. (UI/UX design for T4 Framework, T4 Pagebuilder, GK Framework products...)

Please Log in or Create an account to join the conversation.

dexter33's Avatar Topic Author
Premium Member Premium Member
  • Posts: 84
  • Thanks: 5

Re: PHP Deprecated error Creation of dynamic property KunenaLayout::$id

8 months 2 days ago - 8 months 2 days ago
#16989
Hi cssyeah
Sorry for the delay in replying to your message 

Since I posted my original message, some things have changed.
Please forget about PHP Error #2 & #3 from my original message - that has disappeared now!
I've been making sure to do tests with the Aurelia template vs. NTS Kay template.

An important thing to note is that I recently upgraded to Joomla 5.1.2.
My server is using PHP 8.2.22
I have also been working through some annoying minor problems with Joomla 5.1.2
I'm not an expert, but it seems like PHP 8.2 is revealing quite a few Deprecated errors in Joomla and other 3rd party extension.
Today I also upgraded Kunena forum to version 6.3.4.

When I view my forum with the Aurelia template turned on, there are no errors in the Error Log.
However, when I switch back to NTS Kay and view the same pages, there are two repeating errors.
The 2nd error message (about line 184), only started appearing after I upgraded Kunena to v6.3.4 with NTS Kay 6.2.5.

PHP Deprecated: Creation of dynamic property Kunena\Forum\Libraries\Layout\KunenaLayout::$id is deprecated in /home/moviestu/public_html/msztest1/libraries/kunena/src/Layout/KunenaBase.php on line 574

PHP Warning: Undefined property: stdClass::$totalProtected in /home/moviestu/public_html/msztest1/components/com_kunena/template/nts_kay/layouts/message/item/default.php on line 184

This message contains confidential information


I have found other errors on the Front End of Kunena with your template, but will report them in separate messages.

Cheers
Don't panic!
Last edit: 8 months 2 days ago by dexter33.

Please Log in or Create an account to join the conversation.

cssyeah's Avatar
Moderator Moderator
  • Posts: 84
  • Thanks: 36

Re: PHP Deprecated error Creation of dynamic property KunenaLayout::$id

7 months 5 days ago
#17013
Hi,
I have reviewed the PHP error, and it no longer appears on your website. Additionally, I have added the following code to the custom.css file to enhance the pagination and expand the width of the Forum Access section block.
Code:
#kunena.layout .kpagination-wrap .pagination .page-item .page-link { min-width: 1px; } #writeaccess .card-block { width: 100%; }

Kind regards,
UI/UX Designer - Web developer. (UI/UX design for T4 Framework, T4 Pagebuilder, GK Framework products...)

Please Log in or Create an account to join the conversation.

dexter33's Avatar Topic Author
Premium Member Premium Member
  • Posts: 84
  • Thanks: 5

Re: PHP Deprecated error Creation of dynamic property KunenaLayout::$id

7 months 4 days ago
#17014
Thanks for new code 
Don't panic!

Please Log in or Create an account to join the conversation.

Time to create page: 0.390 seconds