OUengineer Posted March 16, 2017 Share Posted March 16, 2017 Salutare, Am cautat rezolvarea la aceasta eroare si oricat am incercat nici una din solutiile gasite pe internet nu au fost bune. Problema apare la modulul de "productcomments". Mai exact la fereastra de adaugare review: Notice: Trying to get property of non-object in ****/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 193Notice: Trying to get property of non-object in ****/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 196 Liniile cu pricina sunt : Line 193: array_shift($_template->_capture_stack);Line 196: ob_get_clean(); Aceasi eroare apare si pe tema default deci eroarea nu este de la tema folosita. Multumesc anticipat Link to comment Share on other sites More sharing options...
Geo Burlibasa Posted March 16, 2017 Share Posted March 16, 2017 Trebuie sa cauți în tpl-urile modulului. Cel mai probabil se încearcă accesarea unui element dintr-un array/obiect care nu exista sau care nu e de tip array/obiect. 1 Link to comment Share on other sites More sharing options...
OUengineer Posted March 16, 2017 Author Share Posted March 16, 2017 Trebuie sa cauți în tpl-urile modulului. Cel mai probabil se încearcă accesarea unui element dintr-un array/obiect care nu exista sau care nu e de tip array/obiect. Multumesc Geo, Partea frustranta este ca modulul nu a suferit schimbari de cod. Schimbari s-au facut doar pe partea de css. Link to comment Share on other sites More sharing options...
OUengineer Posted March 16, 2017 Author Share Posted March 16, 2017 [16-Mar-2017 10:09:27 Europe/Bucharest] PHP Notice: Trying to get property of non-object in ***/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 189 [16-Mar-2017 10:09:27 Europe/Bucharest] PHP Notice: Trying to get property of non-object in ***/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 193 [16-Mar-2017 10:09:27 Europe/Bucharest] PHP Notice: Trying to get property of non-object in ***/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 196 Liniile: 189 - // any unclosed {capture} tags ? 193 - array_shift($_template->_capture_stack); 196 - ob_get_clean();Nu reusesc sa gasesc array/obiect interogat lipsa Link to comment Share on other sites More sharing options...
Geo Burlibasa Posted March 16, 2017 Share Posted March 16, 2017 (edited) Nu te uiti unde trebuie. Trebuie sa cauti in fisierele .tpl din modules/productcomments (cel mai probabil modules/productcomments/views/templates/front/ ) Edited March 16, 2017 by Geo Burlibasa (see edit history) Link to comment Share on other sites More sharing options...
OUengineer Posted March 16, 2017 Author Share Posted March 16, 2017 Nu te uiti unde trebuie. Trebuie sa cauti in fisierele .tpl din modules/productcomments (cel mai probabil modules/productcomments/views/templates/front/ ) Geo, dar eu te intreb acum, in care din ele ? Cel din modules (cel default din prestashop) sau cel din tema activata ? Prestashop le foloseste pe amandoua ? Link to comment Share on other sites More sharing options...
OUengineer Posted March 16, 2017 Author Share Posted March 16, 2017 Iarta-ma, am uitat sa specific versunea de Prestashop folosita: 1.6.1.11 Link to comment Share on other sites More sharing options...
Geo Burlibasa Posted March 16, 2017 Share Posted March 16, 2017 Pe cel din tema trebuie sa-l modifici 1 Link to comment Share on other sites More sharing options...
OUengineer Posted March 16, 2017 Author Share Posted March 16, 2017 productcomments.txt productcomments-extra.txt Link to comment Share on other sites More sharing options...
Geo Burlibasa Posted March 16, 2017 Share Posted March 16, 2017 Da și un link către website, și activează și modul de dev dacă nu e activat Link to comment Share on other sites More sharing options...
zaurus Posted March 17, 2017 Share Posted March 17, 2017 mod_dev e activat, el genereaza acea notificare aceea nu e eroare e notificare, daca pui mod_dev pe false o sa dispara Link to comment Share on other sites More sharing options...
OUengineer Posted March 17, 2017 Author Share Posted March 17, 2017 mod_dev e activat, el genereaza acea notificare aceea nu e eroare e notificare, daca pui mod_dev pe false o sa dispara Multumesc de raspuns, E adevarat ca acea eroare dispare dar nu rezolv nimic. Nu vor aparea titlul si nici review-urile deja date la produs. Geo a rezolvat partial problema insa acum tot nu apar in pagina de produs in top review-urile si de asemenea acum titlul produsului din pop-up-ul de review difera de cel al produsului la care vrei sa acorzi review. http://prnt.sc/ekv5fu Link to comment Share on other sites More sharing options...
OUengineer Posted March 23, 2017 Author Share Posted March 23, 2017 Multumesc pentru ajutor tuturor. Multumesc in special Geo pentru rezolvarea erorii principale. Cat despre eroare secundara, in care isi alegea un alt nume, era de la un confict intre modulul de accesorii si cel de review. S-a rezolvat. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now