Joomla 3.10.2 errors after themler update

tmgarrison
97 Posts
tmgarrison posted this 19 September 2021

I just updated a local installation of Joomla 3.10.2 and Themler (now) v523.

Everything was fine until I changed the width of the template pages to "Fluid" from "Wide". That's nothing new for me to do to a template. But today, after I did that I got all sorts of errors (see attached). There are 6 blocks of errors.

2 blocks of errors have this code:
Notice: Trying to access array offset on value of type null in C:\wamp64\www\Joomla-3\plugins\content\themlercontent\lib\Shortcodes.php on line 657

4 blocks of errors have this code:
Notice: Trying to access array offset on value of type null in C:\wamp64\www\Joomla-3\plugins\content\themlercontent\lib\Shortcodes.php on line 668

Along with the issues trying to use Joomla 4 with Themler, this is just putting me over the top in frustration.

I just updated a local installation of Joomla 3.10.2 and Themler (now) v523. Everything was fine until I changed the width of the template pages to "Fluid" from "Wide". That's nothing new for me to do to a template. But today, after I did that I got all sorts of errors (see attached). There are 6 blocks of errors. 2 blocks of errors have this code: Notice: Trying to access array offset on value of type null in C:\wamp64\www\Joomla-3\plugins\content\themlercontent\lib\Shortcodes.php on line 657 4 blocks of errors have this code: Notice: Trying to access array offset on value of type null in C:\wamp64\www\Joomla-3\plugins\content\themlercontent\lib\Shortcodes.php on line 668 Along with the issues trying to use Joomla 4 with Themler, this is just putting me over the top in frustration.
Vote to pay developers attention to this features or issue.
11 Comments
Order By: Standard | Newest
philippe.t
30 Posts
philippe.t posted this 15 June 2022

hello,

I have the same problem
see for wordpress:
https://answers.themler.io/questions/215500/bug-after-update-wordpress-shortcodes-effects

and now i resolve by myself: the issue file is Shortcodes.php
yourpath/plugins/content/themlercontent/lib/Shortcodes.php

in my side is in lign:
657 i replace by

            if (isset($item['info']['type']) && $item['info']['type'] === ShortcodesEffects::HTML_EFFECT) {

668

            if (isset($item['info']['className']) && strpos($item['info']['className'], $name) === 0) {

721

            $target = isset($target['info']) ?? $target['info'];

785

        $return = isset($control['info']['css'][$responsive]) ?? preg_match('/' . $prop .  '\s*:\s*(' . join('|', $values) . ');/', $control['info']['css'][$responsive]);
    return $return; //preg_match('/' . $prop .  '\s*:\s*(' . join('|', $values) . ');/', $control['info']['css'][$responsive]);

814,815,816,817

            $style .= isset($targetControl['info']['css']['css'], $targetControl['info']['css']['css_md'], $targetControl['info']['css']['css_sm'], $targetControl['info']['css']['css_xs']) ?? self::print_all_css(array(
            ''    => self::_effectCssCurrent($targetControl['info']['css']['css'], $groups, $skipProps),
            '_md' => self::_effectCssCurrent($targetControl['info']['css']['css_md'], $groups, $skipProps),
            '_sm' => self::_effectCssCurrent($targetControl['info']['css']['css_sm'], $groups, $skipProps),
            '_xs' => self::_effectCssCurrent($targetControl['info']['css']['css_xs'], $groups, $skipProps)
        ), '', $currentControl['info']['selector']);

1099

        $target_class = isset($target_control["className"]) ?? $target_control["className"];

in finally, if you have this error message:
Warning: Trying to access array offset on value of type null in....

correct by php code

 isset( $variable['something']) 

if index'something' does not exist

hope to help someone

regards
philippe

hello, I have the same problem see for wordpress: https://answers.themler.io/questions/215500/bug-after-update-wordpress-shortcodes-effects and now i resolve by myself: the issue file is Shortcodes.php yourpath/plugins/content/themlercontent/lib/Shortcodes.php in my side is in lign: 657 i replace by if (isset($item['info']['type']) && $item['info']['type'] === ShortcodesEffects::HTML_EFFECT) { 668 if (isset($item['info']['className']) && strpos($item['info']['className'], $name) === 0) { 721 $target = isset($target['info']) ?? $target['info']; 785 $return = isset($control['info']['css'][$responsive]) ?? preg_match('/' . $prop . '\s*:\s*(' . join('|', $values) . ');/', $control['info']['css'][$responsive]); return $return; //preg_match('/' . $prop . '\s*:\s*(' . join('|', $values) . ');/', $control['info']['css'][$responsive]); 814,815,816,817 $style .= isset($targetControl['info']['css']['css'], $targetControl['info']['css']['css_md'], $targetControl['info']['css']['css_sm'], $targetControl['info']['css']['css_xs']) ?? self::print_all_css(array( '' => self::_effectCssCurrent($targetControl['info']['css']['css'], $groups, $skipProps), '_md' => self::_effectCssCurrent($targetControl['info']['css']['css_md'], $groups, $skipProps), '_sm' => self::_effectCssCurrent($targetControl['info']['css']['css_sm'], $groups, $skipProps), '_xs' => self::_effectCssCurrent($targetControl['info']['css']['css_xs'], $groups, $skipProps) ), '', $currentControl['info']['selector']); 1099 $target_class = isset($target_control["className"]) ?? $target_control["className"]; in finally, if you have this error message: Warning: **Trying to access array offset on value of type null in**.... correct by php code isset( $variable['something']) if index'something' does not exist hope to help someone regards philippe
jeanmarcvieux
37 Posts
jeanmarcvieux posted this 25 May 2022

Hello,
I've reported this issue many month ago.

The first answer was to export the theme in desktop app and then reinstall it. I have the last update v.547
Since couple of weeks this tip is no more possible. This issue remains even after template reinstallation.
I did a ticket Nettie help me but I'm waiting for the right answer
Jean-Marc

Hello, I've reported this issue many month ago. The first answer was to export the theme in desktop app and then reinstall it. I have the last update v.547 Since couple of weeks this tip is no more possible. This issue remains even after template reinstallation. I did a ticket Nettie help me but I'm waiting for the right answer Jean-Marc

Last edited 25 May 2022 by jeanmarcvieux

Support Team
Support Team posted this 13 December 2021

Виталий,
Попробуйте почистить кеш в браузере или app cache , как описано тут https://answers.themler.io/articles/13879/themler-desktop-troubleshooting#clear_cache https://answers.themler.io/articles/14063/how-to-clear-appcache

Если у вас осталась версия темы, сохраненная локально, сделайте еще раз экспорт и переустановите ее.

Gina
Themler Support

Виталий, Попробуйте почистить кеш в браузере или app cache , как описано тут https://answers.themler.io/articles/13879/themler-desktop-troubleshooting#clear_cache https://answers.themler.io/articles/14063/how-to-clear-appcache Если у вас осталась версия темы, сохраненная локально, сделайте еще раз экспорт и переустановите ее. Gina Themler Support
aspidblazer
1 Posts
aspidblazer posted this 10 December 2021

Application Cache Error event: Invalid or missing manifest origin trial token: https://contp.ru/templates/manifests/manifest.php?ver=544
Такая ошибка в консоли браузера. В чем проблема? joomla 3.10.3

Application Cache Error event: Invalid or missing manifest origin trial token: https://contp.ru/templates/manifests/manifest.php?ver=544 Такая ошибка в консоли браузера. В чем проблема? joomla 3.10.3

Last edited 10 December 2021 by aspidblazer

Support Team
Support Team posted this 24 September 2021

The issue was reported to the developers.

Thank you for sharing the articles.
In general, removing the code from Themler from the article may destroy its layout if it is specifically was made in Themler. But if it is just a text, then no issue should arise.

Gina
Themler Support

The issue was reported to the developers. Thank you for sharing the articles. In general, removing the code from Themler from the article may destroy its layout if it is specifically was made in Themler. But if it is just a text, then no issue should arise. Gina Themler Support
tmgarrison
97 Posts
tmgarrison posted this 24 September 2021

Kloemich2
I found a work-around just now.

Make your changes in Themler to widen the page, or whatever you were doing to the page as you would normally.
I'm presuming that instead of "Page" this is happening to "Post". However, it could be either.

Make the change(s), save the changes, then in Joomla, go to the page and edit the page with whatever editor you use, but view the article code - source (or HTML) - of that page.

Look for < p> [html] <> which could be there 1 or more times at the very top of the article AND at the bottom!
Remove anything that appears before or after your article that you know has nothing to do with your article.

Remove all of that code because it's nonsense that Themler spit into the page when you made the change(s).
Make sure the only thing in your article is what you know you want in the article.
Then save your article and you should be able to return to normal.

This is not the first time I've had Themler throw in that code to the article. But it's been a while. Working in a "live" site it may not throw errors you can see.
When working locally, those errors show quickly.

Kloemich2 I found a work-around just now. Make your changes in Themler to widen the page, or whatever you were doing to the page as you would normally. I'm presuming that instead of "Page" this is happening to "Post". However, it could be either. Make the change(s), save the changes, then in Joomla, go to the page and edit the page with whatever editor you use, but view the article code - source (or HTML) - of that page. Look for &lt; p&gt; [html] &lt;&gt; which could be there 1 or more times at the very top of the article AND at the bottom! Remove anything that appears before or after your article that you know has nothing to do with your article. Remove all of that code because it's nonsense that Themler spit into the page when you made the change(s). Make sure the only thing in your article is what you know you want in the article. Then save your article and you should be able to return to normal. This is not the first time I've had Themler throw in that code to the article. But it's been a while. Working in a "live" site it may not throw errors you can see. When working locally, those errors show quickly.

Last edited 24 September 2021 by tmgarrison

tmgarrison
97 Posts
tmgarrison posted this 24 September 2021

Gina,

The only .htaccess file "I" have is in the root of my site. Well, there may be additional somewhere within Joomla. But the root has 1, and there is not one in templates.

The root htaccess has no mention of "templates/"

Did you mean the robots.txt? Although that does not have any mention of "templates/" either.

Can you provide some additional information, please?

Perhaps the developers were thinking about a WordPress site. This is Joomla on which I'm working.

Gina, The only .htaccess file "I" have is in the root of my site. Well, there may be additional somewhere within Joomla. But the root has 1, and there is not one in templates. The root htaccess has no mention of "templates/" Did you mean the robots.txt? Although that does not have any mention of "templates/" either. Can you provide some additional information, please? Perhaps the developers were thinking about a WordPress site. This is Joomla on which I'm working.
tmgarrison
97 Posts
tmgarrison posted this 22 September 2021

Hello Gina,

I can, and I'm fully capable. But I have to ask, why?

That doesn't seem very secure to start listing specific products access to htaccess.

This seems more like a "work-around" than a fix.

Hello Gina, I can, and I'm fully capable. But I have to ask, why? That doesn't seem very secure to start listing specific products access to htaccess. This seems more like a "work-around" than a fix.
Support Team
Support Team posted this 22 September 2021

Hello,

Could you please add a line to the .htaccess file to allow direct access for Themler:

"templates/manifests" alongside the existing "templates/"

Gina
Themler Support

Hello, Could you please add a line to the .htaccess file to allow direct access for Themler: "templates/manifests" alongside the existing "templates/<templatename>" Gina Themler Support
tmgarrison
97 Posts
tmgarrison posted this 21 September 2021

I have the same error. ;(((

Glad to know I'm not crazy or ranting for nothing.
I'm done being nice to Themler due to the number of issues as of late, in addition to not being able to use Themler anymore.

> I have the same error. ;((( Glad to know I'm not crazy or ranting for nothing. I'm done being nice to Themler due to the number of issues as of late, in addition to not being able to use Themler anymore.
kloemich2
7 Posts
kloemich2 posted this 21 September 2021

I have the same error. ;(((

I have the same error. ;(((
You must log in or register to leave comments