#87 Template Editor Issue

Posted in ‘Technical Support / Bugs’
This is a public ticket

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

Latest post by Olivier on Sunday, 22 December 2024 18:00 UTC

Terry Harker

Hello, 

I have an issue with J2Store (V 4.0.5 PRO) and the templates (email, invoice). When I open a template, the editor cannot be loaded. Stack trace brings me to the editor buttons being called (even though not needed in that case). I have - as a workaround - changed that file slightly which works for me, but I think it should be looked at. It might just be a compatibility issue with the content of the $option var.
My System: Joomla 5.2.2 / PHP 8.2

File: administrator/components/com_j2store/helpers/j2html.php, line 879:

$html = $editor->display( $name, $value, $width, $height, $cols, $rows,false,$id,null,null,$options);

I have changed to the following

$html = $editor->display( $name, $value, $width, $height, $cols, $rows,false,$id);

Now it works, but this will be overridden at the next update, so if you could maybe look at it, I'd appreciate it.
On PHP 8.2 there's also a lot of deprecated stuff - sure you're aware of it though.

Thank you and keep up the good work!!!

 

 

Olivier

Hello Terry,

thank you for reporting the issue.

It has been fixed and the fix is available in the latest version of the extension.

Deprecated code is due to the use of the F0F library, which we are planning to phase out.

Olivier.

Stay Updated

Subscribe for free and be the first to know about the latest features, updates, and new additions.