Skip to Content

New J2Commerce 6.6.5 is out. Here is everything in the release.

See What’s New
Account
Enter the email address on your account.
Forgot your username?
Enter your password.
Forgot your password?

Or continue with

Closed Public Category: Technical Support / Bugs Ticket #87

Template Editor Issue

This is a public ticket

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

Conversation

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 Buisard Staff

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.