Jump to content
Anubis2702

ps 1.7.4.3 cant import products

Recommended Posts

Anyone could help me with this error when importing products? I tried everything from all types of files even the example file to all php.ini settings with no luck. I'm already sick of this ps, every day is a new challange :(

The importing is successfully validating and stops at 0/173 products. However the first product is added.

Here is the error I managed to find out: 

Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Unable to load template 'file:layout-ajax.tpl'")." at /var/www/vhosts/shop.ro/httpdocs/src/PrestaShopBundle/Resources/views/Admin/layout.html.twig line 34

 

edit: the persmissions are d 755 / f 644
 

Edited by Anubis2702 (see edit history)

Share this post


Link to post
Share on other sites

I installed a test ps on the same server and it is working, so it's not a server setup issue.

I deactivated overrides but still not working.

Any clues?

Share this post


Link to post
Share on other sites

I found the fix, I just selected a shop context and now its working. I have a multistore and with all shops selected importing products is not working, even if I have "Store ID" field in the importing file.

Thank you PS for wasting me another night from my life!

Hope this will helps others.

Share this post


Link to post
Share on other sites

@Anubis2702 Hi, I get the same error but my prestashop is not a multistore.

By the way, what do you mean when you say "I just selected a shop context" ? I don't see any option like this in the import page in the back-end.

Share this post


Link to post
Share on other sites

Same here, Prestashop 1.7.5.1. Can't import products, even when csv is with one product. Getting error An exception has been thrown during the rendering of a template ("Unable to load template 'file:layout-ajax.tpl'").

I've checked http://doc.prestashop.com/display/PS17/Import, I've created csv file with sample data, and still the same error -.-

Can anybody help? This is so annoying............

Share this post


Link to post
Share on other sites
32 minutes ago, faraonkicu said:

Same here, Prestashop 1.7.5.1. Can't import products, even when csv is with one product. Getting error An exception has been thrown during the rendering of a template ("Unable to load template 'file:layout-ajax.tpl'").

I've checked http://doc.prestashop.com/display/PS17/Import, I've created csv file with sample data, and still the same error -.-

Can anybody help? This is so annoying............

Hi,

I found a solution by disabling the "Use product reference as key" option (french "Utiliser la référence du produit comme clé").

Hope it will help other people.

Share this post


Link to post
Share on other sites

Hi,
Similar problem here reference# is some numbers-% not clean int,
validation 100% but import 0% and no message at all what's wrong.
PS 1.7.5.0
Use product reference as key->No
Force all ID numbers->No
#import

dev.log
[2019-11-09 18:41:13] php.CRITICAL: Uncaught Exception: An exception has been thrown during the rendering of a template ("Unable to load template 'file:layout-ajax.tpl'"). {"exception":"[object] (Twig_Error_Runtime(code: 0): An exception has been thrown during the rendering of a template (\"Unable to load template 'file:layout-ajax.tpl'\"). at /data01/xx/domeenid/www.xxx.xx/htdocs/p/src/PrestaShopBundle/Resources/views/Admin/layout.html.twig:34, SmartyException(code: 0): Unable to load template 'file:layout-ajax.tpl' at /data01/xx/domeenid/www.xxx.xx/htdocs/p/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:195)"} []
[2019-11-09 18:41:13] request.CRITICAL: Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Unable to load template 'file:layout-ajax.tpl'")." at /data01/xx/domeenid/www.xxx.xx/htdocs/p/src/PrestaShopBundle/Resources/views/Admin/layout.html.twig line 34 {"exception":"[object] (Twig_Error_Runtime(code: 0): An exception has been thrown during the rendering of a template (\"Unable to load template 'file:layout-ajax.tpl'\"). at /data01/xx/domeenid/www.xxx.xx/htdocs/p/src/PrestaShopBundle/Resources/views/Admin/layout.html.twig:34, SmartyException(code: 0): Unable to load template 'file:layout-ajax.tpl' at /data01/xx/domeenid/www.xxx.xx/htdocs/p/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:195)"} []

Edited by T74 (see edit history)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More