After Upgrade of JCB, [[[SITE_TOOLBAR]]] is not translated anymore #969
Steps to reproduce the issue
Upgrade JCB from the version 2.12.16 step by step (2.13.0, 2.13.1, 2.13.2 etc) to the last version 3.1.12 and test a component with a site view wich has a custom button.
the component written with JCB version 2.12.16 still works with version 3.1.12
on a site view with a custom button,
is shown instead of expected button.
System information (as much as possible)
- OS Name & Version: MacOS Catalina
- MySql Version: 5.7.34
- Apache Version: 2.4.46
- PHP Version: 8.1
- Joomla Version: 3.10.11
- JCB Version: 3.1.12
- Browser: Firefox 102.6.0esr
if it helps, I could find out with upgrade/version made this problem.
Okay, the PHP version that we are sure works is 7.4 (which I know is not good) but can you test this on that version? I am working on the refractory of the compiler and then we should be PHP 8+ ready including being able to compile for Joomla 4+
So at this point we are only PHP 7.4 able...
So I assume that running JCB on 7.4 should resolve this issue.
I redid it step by step with PHP 7.4.21, and this problem [SITE_TOOLBAR] happens with JCE 3.1.6. With JCE version 3.1.5 it still worked.
After that, I didn't try to install JCE 3.1.7.
So let me get this straight you are using JCE as your code editor for this site/custom view default content area.
If this is the case, then please use none (editor) or CodeMirror. These are the only editors we have been trying to support.
We are looking at adding our own code editor (plugin) for JCB... but this not high priority at this point.
yes it was a typo, I meant JCB and not JCE... sorry.
(I'm using PHPStorm editing and debugging my extension)
Okay... so the code the currently does this is found here.
So what we are doing is adding the placeholder
SITE_TOOLBAR to the global placeholder class, and then we use that to update the default site/custom_admin view content.
I should soon be able to push some stable changes out. The reality is we are moving 30k+ lines of code... and it is huge amount of work to achieve that kind of stability.
I just ran a test on my system with the current changes and this issue seems resolved, but then I never had this issue on my side.
What is important is the the
[[[SITE_TOOLBAR]]] must end in the database, and not get stripped by the editor your using to add the code.
thanks a lot! it works very well.
JCB is again and again very impressive - tanks for our support.
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?