Neu Problem mit Plugin, kann mir jemand sagen was der Fehler bedeutet?

  • Ersteller des Themas Ersteller des Themas m.toene
  • Erstellungsdatum Erstellungsdatum

m.toene

Aktives Mitglied
27. November 2018
76
12
Romrod
Fatal error: Uncaught Error: Method name must be a string in /var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/includes/plugins/community_lfv/version/100/frontend/lfv.php:26 Stack trace: #0 /var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/includes/plugin_inc.php(56): include() #1 /var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/classes/class.JTL-Shop.JTLSmarty.php(400): executeHook(140) #2 /var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php(63): JTLSmarty->__outputFilter('\n\n ...', Object(jtlTplClass)) #3 /var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(219): Smarty_Internal_Runtime_FilterHandler->runFilter('output', '\n\n ...', Object(jtlTplClass)) #4 /var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/classes/class.JTL-Shop.JTLSmarty.php(876): Smarty_Internal_Template->render(false, 1) #5 /var/www/vho in /var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/includes/plugins/community_lfv/version/100/frontend/lfv.php on line 26

Hallo,
kann mir jemand sagen was der Fehler bedeutet?
Wäre für eure Hilfe Dankbar

Die Datei die zuletzt angegeben ist:
PHP:
<?php

global $smarty;
require_once $oPlugin->cFrontendPfad . "includes/functions.php";
$einstellungen = $oPlugin->oPluginEinstellungAssoc_arr;
if (isset($smarty->tpl_vars["Artikel"]->value)) {
    $oArtikel = $smarty->tpl_vars["Artikel"]->value;
}
if (!isset($oArtikel->FunktionsAttribute["community_lfv_minlaenge"]) && !isset($oArtikel->FunktionsAttribute["community_lfv_minbreite"]) && !isset($oArtikel->FunktionsAttribute["community_lfv_minhoehe"])) {
    return NULL;
}
$kArtikel = $GLOBALS["DB"]->executeQuery("SELECT kArtikel FROM tartikel WHERE cSeo='" . $oArtikel->cSeo . "'", 1)->kArtikel;
$strQuerynVater = "SELECT nIstVater FROM tartikel WHERE kArtikel=" . $kArtikel;
$nIstVater = $GLOBALS["DB"]->executeQuery($strQuerynVater, 1)->nIstVater;
$strQuerykVater = "SELECT kVaterArtikel FROM tartikel WHERE kArtikel=" . $kArtikel;
$kVaterArtikel = $GLOBALS["DB"]->executeQuery($strQuerykVater, 1)->kVaterArtikel;
$community_lfv_data[$kArtikel] = community_jtl_fillarticle($kArtikel, $oArtikel, $nIstVater, $kVaterArtikel);
$community_lfv_selector = array("selector_main" => $einstellungen["community_jtl_lfv_main_selector"], "selector_price" => $einstellungen["community_jtl_lfv_jtl_selector_price"]);
$selector = $einstellungen["community_jtl_lfv_selector"];
$option = $einstellungen["community_jtl_lfv_selectorOption"];
$smarty->assign("kArtikel", $kArtikel)->assign("kVaterArtikel", $kVaterArtikel)->assign("nIstVater", $nIstVater)->assign("community_lfv_data", $community_lfv_data)->assign("community_lfv_data_json", json_encode($community_lfv_data))->assign("community_lfv_selector_json", json_encode($community_lfv_selector))->assign("oPlugin", $oPlugin)->assign("calchelp_y", $einstellungen["community_jtl_lfv_y"]);
if (!isset($_POST["xjxfun"]) && pq("head")->length) {
    pq("head")->append("<script src=\"" . $oPlugin->cFrontendPfadURL . "template/lfv.js" . "\"></script>");
}
$community_lfv_content = $smarty->fetch($oPlugin->cFrontendPfad . "template/lfv.tpl");
pq($selector)->{$option}($community_lfv_content);

?>
 
Zuletzt bearbeitet:

css-umsetzung

Offizieller Service Partner
SPBanner
6. Juli 2011
8.648
2.700
Berlin
Firma
css-umsetzung
Zuerst lässt sich sagen das du scheinbar mit einem Script zu tun hast das für den 3er Shop gedacht war.

Vermutlich hast du die Konfiguration vom Plugin nicht bearbeitet?

$selector = $einstellungen["community_jtl_lfv_selector"];
$option = $einstellungen["community_jtl_lfv_selectorOption"];

Ich denke das mindestens einer der beiden Werte ($option bestimmt) leer ist.
denn pq($selector)->{$option}($community_lfv_content); ist ja wohl die Zeile in der der Fehler vorhanden ist.
 

m.toene

Aktives Mitglied
27. November 2018
76
12
Romrod
Danke dir,
der Fehler lag an einem Schreibfehler in der info.xml
jetzt habe ich einen neuen Fehler:

Code:
Fatal error: Uncaught Exception: No parentNode, can't do after() in /var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/includes/libs/phpQuery/phpQuery/phpQueryObject.php:2522 Stack trace: #0
/var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/includes/libs/phpQuery/phpQuery/phpQueryObject.php(2355): phpQueryObject->insert('<div id="jff_lf...', 'after') #1
/var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/includes/plugins/jff_lfv/version/100/frontend/lfv.php(26): phpQueryObject->after('<div id="jff_lf...') #2
/var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/includes/plugin_inc.php(56): include('/var/www/vhosts...') #3
/var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/classes/class.JTL-Shop.JTLSmarty.php(400): executeHook(140) #4
/var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php(63): JTLSmarty->__outputFilter('\n\n <!DOCTYPE...', Object(jtlTplClass)) #5
/var/www/vhosts/hosting124848.a2fd3.netcup.net/t in /var/www/vhosts/hosting124848.a2fd3.netcup.net/testshop/includes/libs/phpQuery/phpQuery/phpQueryObject.php on line 2522

bekomme ich in dem Teil: phpQueryObject->insert('<div id="jff_lf...', 'after') #1 das ... sichtbar?

ich vermute es ist ein Schreibfehler in der lfv.tpl

Code:
<div id="jff_lfv_selector_json" style="display: none">{$jff_lfv_selector_json}</div>
{if $nIstVater != 1}
    <div id="jff_lfv_data_json" style="display: none">{$jff_lfv_data_json}</div>
    <div id="kArtikel" style="display: none">{$kArtikel}</div>
    <div id="kVaterArtikel" style="display: none">{$kVaterArtikel}</div>
    <div id="nIstVater" style="display: none">{$nIstVater}</div>
    <div id="jff_jtl_lfv_selector" style="display: none">{$oPlugin->oPluginEinstellungAssoc_arr.jff_jtl_lfv_selector}</div>
    <div id="fVKBrutto" style="display: none">{$Artikel->Preise->fVKBrutto}</div>
    <div id="jff_jtl_lfvcalc_msg_minlength" style="display: none">{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvcalc_msg_minlength}</div>
    <div id="jff_jtl_lfvcalc_msg_maxlength" style="display: none">{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvcalc_msg_maxlength}</div>
    <div id="jff_jtl_lfvcalc_msg_minwidth" style="display: none">{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvcalc_msg_minwidth}</div>
    <div id="jff_jtl_lfvcalc_msg_maxwidth" style="display: none">{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvcalc_msg_maxwidth}</div>
    <div id="jff_jtl_lfvcalc_msg_minheight" style="display: none">{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvcalc_msg_minheight}</div>
    <div id="jff_jtl_lfvcalc_msg_maxheight" style="display: none">{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvcalc_msg_maxheight}</div>
    <div id="jff_jtl_lfv_minzutext" style="display: none">{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfv_minzutext}</div>
    <div id="jff_jtl_lfvcalc_msg_ok" style="display: none">{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvcalc_msg_ok}</div>

    {foreach from=$jff_lfv_data item="value"}
        {if $value.jff_lfv_durchmesser == 1}
            <script>
                $(document).ready(function() {ldelim}
                    jff_lfv_data_json = {$jff_lfv_data_json};
                    kartikelid = {$kArtikel};
                  
                    // laenge
                    eig_laenge = $('input[name="eigenschaftwert[' + jff_lfv_data_json[kartikelid].jffArtikelLaengeID + ']"]');
                    // breite
                    eig_breite = $('input[name="eigenschaftwert[' + jff_lfv_data_json[kartikelid].jffArtikelBreiteID + ']"]');
                  
                    eig_breite.parent().hide();
                    eig_breite.parent().parent().children().each(function() {
                        if($(this).text() === "Breite")
                            $(this).hide();
                        else if($(this).text() === "L" + decodeURI('%C3%A4') + "nge")
                            $(this).text("Durchmesser");
                    });
  
                    eig_laenge.keyup(function() {
                        eig_breite.val(eig_laenge.val());
                        lfv_count();
                    });
                {rdelim});
            </script>
        {/if}
        <div id="jff_jtl_lfvcalc_{$value.kArtikel}" class='choose_quantity' style='text-align:left; padding-top:{$calchelp_y}px'>
            <table>
                <tr valign=top>
                    <td>
                        <div id=rumrechnen>
                            <b>{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvcalc_ueberschrift}</b>:
                            <br />
                            <div id="lfv_infotext">{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvcalc_inputaufforderung}</div>
                        </div>         
                        <b>Attribute dieses Artikels</b>:
                        <ul>
                            {if $value.jff_lfv_durchmesser === 1}
                                {if $value.jff_lfv_minlaenge > 0}
                                    <li>{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvdurchmessermin}: {$value.jff_lfv_minlaenge} {$value.jff_lfv_einheit_eingabe}</li>
                                {/if}
                                {if $value.jff_lfv_maxlaenge > 0}
                                    <li>{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvdurchmessermax}: {$value.jff_lfv_maxlaenge} {$value.jff_lfv_einheit_eingabe}</li>
                                {/if}
                                {else}
                                {if $value.jff_lfv_minlaenge > 0}
                                    <li>{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvlaengemin}: {$value.jff_lfv_minlaenge} {$value.jff_lfv_einheit_eingabe}</li>
                                {/if}
                                {if $value.jff_lfv_maxlaenge > 0}
                                    <li>{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvlaengemax}: {$value.jff_lfv_maxlaenge} {$value.jff_lfv_einheit_eingabe}</li>
                                {/if}
                                {if $value.jff_lfv_minbreite > 0}
                                    <li>{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvflaebreitemin}: {$value.jff_lfv_minbreite} {$value.jff_lfv_einheit_eingabe}</li>
                                {/if}
                                {if $value.jff_lfv_maxbreite > 0}
                                    <li>{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvflaebreitemax}: {$value.jff_lfv_maxbreite} {$value.jff_lfv_einheit_eingabe}</li>
                                {/if}
                            {/if}     
                            {if $value.jff_lfv_minhoehe > 0}
                                <li>{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvhoehemin}: {$value.jff_lfv_minhoehe} {$value.jff_lfv_einheit_eingabe}</li>
                            {/if}
                            {if $value.jff_lfv_maxhoehe > 0}
                                <li>{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvhoehemax}: {$value.jff_lfv_maxhoehe} {$value.jff_lfv_einheit_eingabe}</li>
                            {/if}
                            {if $value.jff_lfv_minmengezuschlag.0 > 0}
                                <li>{$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfvcalc_mindestmenge}: {$value.jff_lfv_minmengezuschlag.0} {$value.jff_lfv_einheit_ausgabe}</li>
                                <li>({$oPlugin->oPluginSprachvariableAssoc_arr.jff_jtl_lfv_minzutext}: {$value.jff_lfv_minmengezuschlag.1} &euro;)</li>
                            {/if}
                        </ul>
                        <b>Rechenergebnis Ihrer Eingaben:</b>
                        <span id='jff_lfv_rechenergebnis'>0</span> {$value.jff_lfv_einheit_ausgabe|replace:"2":"&sup2;"|replace:"3":"&sup3;"}<br />
                        (Gesamtergebnis Ihrer Eingaben:
                        <span id='jff_lfv_gesamtergebnis'>0</span> {$value.jff_lfv_einheit_ausgabe|replace:"2":"&sup2;"|replace:"3":"&sup3;"})
                    </td>
                </tr>
            </table>
        </div>
        <script type="text/javascript" src="{$oPlugin->cFrontendPfadURL}template/lfv.js"></script>
    {/foreach}
{/if}

Zufällig eine Idee?
Wäre echt toll
Danke schon mal
 
Zuletzt bearbeitet:

Ähnliche Themen