WebsiteBaker Support (2.13.x) > Modules

Accordion SyntaxError Twig

(1/3) > >>

dbs:
Hi, Accordion 2.7.1 or 2.7.2 with latest WB and PHP

my console shows:
Uncaught SyntaxError: missing variable name

for this part:
<script>
    /* inserted by view.twig */
    var  = {
        WB_URL : "https://xxx.de",
        AddonUrl : "https://xxx.de/modules/accordion/",
        Addon_Name : "accordion",
        ICONS : "https://xxx,de/modules/accordion/images",
        AJAX_PLUGINS : "https://xxx.de/modules/accordion/ajax",
        LANGUAGE : "DE",
    };
</script>

Seems the ADDONNAME placeholder will not be replaced. The module works.
But the console message triggers me.  ;D

sternchen8875:
give me a second...  ;-)

sternchen8875:
problem was a missing variable-definition in View.inc.php


--- Code: ---            'ADDONNAME'            => strtoupper($sAddonName),
--- End code ---

see last line of the definition - this code repair v2.7.1 and also v2.7.2 - in the attachement the complete zip for this module as upgrade



Thanks for reporting  (Y)

dbs:
Problem solved, thanks  (Y)

dbs:
Noch was bei upgrade:

--- Code: ---[E_WARNING] /modules/accordion/cmd/Upgrade.inc.php:[121]  from /modules/accordion/cmd/Upgrade.inc.php:[167] {closure} "Undefined variable $aDefaults"
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version