Jump to content

PrestaShop 1.74.2 error 500 product in admin panel


Karolek

Recommended Posts

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/


problem.thumb.PNG.b7336d0fba629812263887baa8dc0907.PNG

 

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 by Karolek (see edit history)
Link to comment
Share on other sites

kkkkkkkkkkkkk.thumb.PNG.1ff8406941294b4a12ba6b5be277af0d.PNGHello :)

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

 
 
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 by Karolek (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...