Karolek Posted October 5, 2018 Share Posted October 5, 2018 (edited) Hello EN I create 2 shops on new prestashop, and: 2 shops 2 servers php 7.0 / php. 5.6 have the same 2 problems Prestashop not listing product in admin panel I can't add new product becose have error 500 I have no idea what wrong I find this: https://www.prestashop.com/forums/topic/633693-prestashop-17-error-500-on-catalog-products-page/ but no solution and this https://www.prestashop.com/forums/topic/613309-500-internal-server-error-when-trying-to-add-or-view-products-in-admin/ PL Cześć, Mam ten sam problem na dwóch różnych serwerach i dwóch różnych instalacjach prestashop, minowicie error 500 przy próbie dodania produktu lub sprawdzenia jakie produkty obecnie są na sklepie w panelu administratora. Co ciekawe mam dwa serwery, dwie wersje PHP (choć nimi się już próbowałem bawić) i nadal nic jakieś pomysły? ERRORS: in src/Adapter/Product/AdminProductWrapper.php (line 371) CRITICAL 09:38:21 php Fatal Parse Error: syntax error, unexpected end of file CRITICAL 09:38:21 request Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Parse Error: syntax error, unexpected end of file" at /mydomain/src/Adapter/Product/AdminProductWrapper.php line 371 Edited October 5, 2018 by Karolek (see edit history) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted October 5, 2018 Share Posted October 5, 2018 Hi, I have checked the file i.e. src/Adapter/Product/AdminProductWrapper.php line 371 at our end but I can't find anything which can trigger this error. Can you please share this file (which you have at your end). Link to comment Share on other sites More sharing options...
Karolek Posted October 5, 2018 Author Share Posted October 5, 2018 (edited) Hello Thanks for reply. } else { $period = $this->translator->trans('From', array(), 'Admin.Global') . ' ' . ($specific_price['from'] != '0000-00-00 00:00:00' ? $specific_price['from'] : '0000-00-00 00:00:00') . '<br />' . $this->translator->trans('to', array(), 'Admin.Global') . ' ' . ($specific_price['to'] != '0000-00-00 00:00:00' ? $specific_price['to'] : '0000-00-00 00:00:00'); } if ($specific_price['id_product_attribute']) { $combination = new Combination((int)$specific_price['id_product_attribute']); Symfony\Component\Debug\Exception\FatalErrorException in src/Adapter/Product/AdminProductWrapper.php (line 371) hmmm Level Channel Message INFO 11:17:20 request Matched route "admin_product_catalog". Show context INFO 11:17:20 app Product catalog filters stored. CRITICAL 11:17:21 php Fatal Parse Error: syntax error, unexpected end of file Hide context [▼ "exception" => FatalErrorException {#1 ▶} ] CRITICAL 11:17:21 request Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Parse Error: syntax error, unexpected end of file" at /mydomain/src/Adapter/Product/AdminProductWrapper.php line 371 Hide context [▼ "exception" => FatalErrorException {#1 ▶} ] Edited October 5, 2018 by Karolek (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted October 5, 2018 Share Posted October 5, 2018 I don't know much about this code. My experience in general is that this kind of message often caused by some variable being empty. So for example id_shop is "" instead of "1" or another value. Of cause the id_category and id_product can cause the same problem. If you suspect there is some trouble with the files you can try refreshing them by copying them from a fresh PS installation of the same version. Link to comment Share on other sites More sharing options...
Karolek Posted October 5, 2018 Author Share Posted October 5, 2018 I think this is old product problem (I delete products) meybe someone have idea how to clean database from all product? Link to comment Share on other sites More sharing options...
Karolek Posted October 8, 2018 Author Share Posted October 8, 2018 Hello! I find problem, the file will be corupt, I send file to server secend time, and all work. On secend shop work when I ON DEBUG MODE 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