Ergebnis 1 bis 8 von 8

Thema: Contao 2.10.4 und Isotope 1.3.RC1 Build 17-> sortierung im FE funktioniert nicht

  1. #1
    Contao-Fan Avatar von herr rilke
    Registriert seit
    29.01.2011.
    Ort
    Münster
    Beiträge
    401

    Standard Contao 2.10.4 und Isotope 1.3.RC1 Build 17-> sortierung im FE funktioniert nicht

    hallo,

    leider sehr ähnlich wie https://www.contao-community.de/show...tioniert-nicht, bekomme ich beim aufruf der sortierung diese warnung,

    aber keine sortierung im FE (nach namen, preis, o.ä.): hier geschieht nichts, keine änderung, bei egal welcher einstellung.

    Code:
    Warning: Parameter 1 to array_multisort() expected to be a reference, value given in C:\xampp\htdocs\system\modules\isotope\IsotopeFrontend.php on line 964
    
    #0 [internal function]: __error(2, 'Parameter 1 to ...', 'C:\xampp\htdocs...', 964)
    #1 C:\xampp\htdocs\system\modules\exceptional\Exceptional.php(108): call_user_func('__error', 2, 'Parameter 1 to ...', 'C:\xampp\htdocs...', 964)
    #2 [internal function]: Exceptional::handle_error(2, 'Parameter 1 to ...', 'C:\xampp\htdocs...', 964, Array)
    #3 C:\xampp\htdocs\system\modules\isotope\IsotopeFrontend.php(964): call_user_func_array('array_multisort', Array)
    #4 C:\xampp\htdocs\system\modules\isotope\ModuleIsotopeProductList.php(279): IsotopeFrontend::getProducts(Object(DB_Mysqli_Result), '4', true, Array, Array)
    #5 C:\xampp\htdocs\system\modules\isotope\ModuleIsotopeProductList.php(178): ModuleIsotopeProductList->findProducts(NULL)
    #6 C:\xampp\htdocs\system\modules\frontend\Module.php(140): ModuleIsotopeProductList->compile()
    #7 C:\xampp\htdocs\system\modules\isotope\ModuleIsotope.php(91): Module->generate()
    #8 C:\xampp\htdocs\system\modules\isotope\ModuleIsotopeProductList.php(82): ModuleIsotope->generate()
    #9 C:\xampp\htdocs\system\modules\frontend\ContentModule.php(72): ModuleIsotopeProductList->generate()
    #10 C:\xampp\htdocs\system\libraries\Controller.php(489): ContentModule->generate()
    #11 C:\xampp\htdocs\system\modules\frontend\ModuleArticle.php(193): Controller->getContentElement('7')
    #12 C:\xampp\htdocs\system\modules\frontend\Module.php(140): ModuleArticle->compile()
    #13 C:\xampp\htdocs\system\modules\frontend\ModuleArticle.php(71): Module->generate()
    #14 C:\xampp\htdocs\system\libraries\Controller.php(421): ModuleArticle->generate(false)
    #15 C:\xampp\htdocs\system\libraries\Controller.php(294): Controller->getArticle('1', false, false, 'main')
    #16 C:\xampp\htdocs\system\modules\frontend\PageRegular.php(100): Controller->getFrontendModule('0', 'main')
    #17 C:\xampp\htdocs\index.php(200): PageRegular->generate(Object(DB_Mysqli_Result))
    #18 C:\xampp\htdocs\index.php(319): Index->run()
    #19 {main}
    dann folgen 2 fehler über header, die nicht gesendet werden können, aber ich denke, das liegt an der genannten ausgabe des fehlers.

    (es gibt einen eingerichteten filter, einen list-modul, das dem filter zugeordnet ist, anfängliche sortierung ist festgelegt, ebenso wie sortierung nach name und preis).



    was läuft hier nur schief ?


    viele grüße!

  2. #2
    Contao-Fan Avatar von herr rilke
    Registriert seit
    29.01.2011.
    Ort
    Münster
    Beiträge
    401

    Standard

    liegt's hieran:

    Update: Isotope läuft nicht nur mit Contao 2.10.3 nicht, sondern auch nicht mit 2.10.4
    Quelle

    ?

  3. #3
    Contao Core-Team
    Association Vorstand
    Avatar von andreas.schempp
    Registriert seit
    15.06.2009.
    Ort
    Lyss
    Beiträge
    5.621
    Partner-ID
    8667
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Nein, das 2.10.4 Problem bezieht sich nur auf's Backend. Ich habe den Fehler auch schon gesehen und versucht zu beheben. Kannst du das mal testen?
    https://github.com/isotope/core/comm...0e13e73babc1e5
    terminal42 gmbh
    Wir sind Contao Premium-Partner! Für Modulwünsche oder Programmierungen kannst du uns gerne kontaktieren.
    Hilfe für Isotope eCommerce kann man auch kaufen: Isotope Circle

  4. #4
    Contao-Fan Avatar von herr rilke
    Registriert seit
    29.01.2011.
    Ort
    Münster
    Beiträge
    401

    Standard

    output ist

    Code:
    Warning: Parameter 2 to array_multisort() expected to be a reference, value given in C:\xampp\htdocs\system\modules\isotope\IsotopeFrontend.php on line 969
    
    #0 [internal function]: __error(2, 'Parameter 2 to ...', 'C:\xampp\htdocs...', 969)
    #1 C:\xampp\htdocs\system\modules\exceptional\Exceptional.php(108): call_user_func('__error', 2, 'Parameter 2 to ...', 'C:\xampp\htdocs...', 969)
    #2 [internal function]: Exceptional::handle_error(2, 'Parameter 2 to ...', 'C:\xampp\htdocs...', 969, Array)
    #3 C:\xampp\htdocs\system\modules\isotope\IsotopeFrontend.php(969): call_user_func_array('array_multisort', Array)
    #4 C:\xampp\htdocs\system\modules\isotope\ModuleIsotopeProductList.php(279): IsotopeFrontend::getProducts(Object(DB_Mysqli_Result), '4', true, Array, Array)
    #5 C:\xampp\htdocs\system\modules\isotope\ModuleIsotopeProductList.php(178): ModuleIsotopeProductList->findProducts(NULL)
    #6 C:\xampp\htdocs\system\modules\frontend\Module.php(140): ModuleIsotopeProductList->compile()
    #7 C:\xampp\htdocs\system\modules\isotope\ModuleIsotope.php(91): Module->generate()
    #8 C:\xampp\htdocs\system\modules\isotope\ModuleIsotopeProductList.php(82): ModuleIsotope->generate()
    #9 C:\xampp\htdocs\system\modules\frontend\ContentModule.php(72): ModuleIsotopeProductList->generate()
    #10 C:\xampp\htdocs\system\libraries\Controller.php(489): ContentModule->generate()
    #11 C:\xampp\htdocs\system\modules\frontend\ModuleArticle.php(193): Controller->getContentElement('7')
    #12 C:\xampp\htdocs\system\modules\frontend\Module.php(140): ModuleArticle->compile()
    #13 C:\xampp\htdocs\system\modules\frontend\ModuleArticle.php(71): Module->generate()
    #14 C:\xampp\htdocs\system\libraries\Controller.php(421): ModuleArticle->generate(false)
    #15 C:\xampp\htdocs\system\libraries\Controller.php(294): Controller->getArticle('1', false, false, 'main')
    #16 C:\xampp\htdocs\system\modules\frontend\PageRegular.php(100): Controller->getFrontendModule('0', 'main')
    #17 C:\xampp\htdocs\index.php(200): PageRegular->generate(Object(DB_Mysqli_Result))
    #18 C:\xampp\htdocs\index.php(319): Index->run()
    #19 {main}
    und bezieht sich damit auf

    Code:
    call_user_func_array('array_multisort', $arrParam);
    Geändert von herr rilke (05.01.2012 um 08:10 Uhr)

  5. #5
    Contao Core-Team
    Association Vorstand
    Avatar von andreas.schempp
    Registriert seit
    15.06.2009.
    Ort
    Lyss
    Beiträge
    5.621
    Partner-ID
    8667
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Ist das mit dem neusten GitHub-Commit?
    terminal42 gmbh
    Wir sind Contao Premium-Partner! Für Modulwünsche oder Programmierungen kannst du uns gerne kontaktieren.
    Hilfe für Isotope eCommerce kann man auch kaufen: Isotope Circle

  6. #6
    Contao-Fan Avatar von herr rilke
    Registriert seit
    29.01.2011.
    Ort
    Münster
    Beiträge
    401

    Standard

    ja!

    #936 ff
    PHP-Code:
                 //if (count($arrFilters))
            
    if (!empty($arrFilters))
            {
                global 
    $filterConfig;
                
    $filterConfig $arrFilters;
                
    $arrProducts array_filter($arrProducts, array(self'filterProducts'));
            }

            
    //if (count($arrSorting))
            
    if (!empty($arrSorting))
            {
                
    $arrParam = array();
                
    $arrData = array();

                foreach (
    $arrSorting as $strField => $arrConfig)
                {
                    
    //$arrData = array();

                    
    foreach ($arrProducts as $id => $objProduct)
                    {
                        
    //$arrData[$id] = str_replace('"', '', $objProduct->$strField);
                        
    $arrData[$strField][$id] = str_replace('"'''$objProduct->$strField);
                    }

                    
    //$arrParam[] = $arrData;
                    
    $arrParam[] = &$arrData[$strField];
                    
    $arrParam array_merge($arrParam$arrConfig);
                }

                
    // Add product array as the last item. This will sort the products array based on the sorting of the passed in arguments.
                
    $arrParam[] = &$arrProducts;

                
    // We need to use call_user_func_array because the number of parameters can be dynamic and this is the only way I know to pass an array as arguments
                
    call_user_func_array('array_multisort'$arrParam);
            } 

  7. #7
    Contao Core-Team
    Association Vorstand
    Avatar von andreas.schempp
    Registriert seit
    15.06.2009.
    Ort
    Lyss
    Beiträge
    5.621
    Partner-ID
    8667
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Könntest du mich bitte per Email kontaktieren? Ich kann den Fehler nicht reproduzieren, müsste dazu auf dein System sehen können...
    terminal42 gmbh
    Wir sind Contao Premium-Partner! Für Modulwünsche oder Programmierungen kannst du uns gerne kontaktieren.
    Hilfe für Isotope eCommerce kann man auch kaufen: Isotope Circle

  8. #8
    Contao-Nutzer
    Registriert seit
    24.06.2010.
    Ort
    Neudörfl
    Beiträge
    150
    Partner-ID
    6135

    Standard

    Edit:
    bei mir hats mit der neuen IsotopeFrontend.php leider auch nciht geklappt.



    Code:
    Fatal error: Uncaught exception Exception with message Query error: Unknown column 'sorting' in 'order clause' (SELECT id, pid FROM tl_iso_products WHERE pid IN(0) ORDER BY FIND_IN_SET(pid, '0'), sorting) thrown in /var/www/vhosts/xxx/httpdocs/system/libraries/Database.php on line 689
    #0 /var/www/vhosts/xxx/httpdocs/system/libraries/Database.php(636): Database_Statement->query()
    #1 /var/www/vhosts/xxx/httpdocs/system/libraries/Database.php(164): Database_Statement->execute()
    #2 /var/www/vhosts/xxx/httpdocs/system/libraries/Controller.php(2811): Database->execute('SELECT id, pid ...')
    #3 /var/www/vhosts/xxx/httpdocs/system/libraries/Controller.php(2953): Controller->getChildRecords(0, 'tl_iso_products', true)
    #4 /var/www/vhosts/xxx/httpdocs/system/drivers/DC_Table.php(225): Controller->eliminateNestedPages(Array, 'tl_iso_products', true)
    #5 /var/www/vhosts/xxx/httpdocs/system/drivers/DC_ProductData.php(71): DC_Table->__construct('tl_iso_products')
    #6 /var/www/vhosts/xxx/httpdocs/system/modules/backend/Backend.php(210): DC_ProductData->__construct('tl_iso_products')
    #7 /var/www/vhosts/xxx/httpdocs/contao/main.php(101): Backend->getBackendModule('iso_products')
    #8 /var/www/vhosts/xxx/httpdocs/contao/main.php(304): Main->run()
    #9 {main}
    kann das jemand bestätigen?


    weiters beim Versuch die DB zu aktualisieren:
    Code:
    ALTER TABLE `tl_iso_products` CHANGE `iso_own_abpreis` `iso_own_abpreis` decimal(12;
    da scheint ein ) zu fehlen bzw. kommts wahrscheinlich decimal(12 danach und wird nur im error nicht angezeigt

    Feld ersetllt mit der Erweiterung backboneit_iso_priceatt

    lg goosie
    Geändert von goosie (08.01.2012 um 19:05 Uhr)

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •