Jump to content

Unable to load template 'file:catalog/_partials/miniatures/product.tpl'


olivier.mongeot@gmail.com

Recommended Posts

Hello, 

Since, i have make a modification in the Back office, exactly when i was going to graft a module, suddenly,  i can't access to the back office.

I have turn on dev mode, so i can see the following result

  696232494_bugpresta.thumb.PNG.c4b4f75dd5592307a40996bb980eaea3.PNG

I've try the following thing :

  • I've delete the cache folders in  /var/cache 
  • Try to start with the basic theme (i have a added  theme) , but i don't found it in the database.
  • i have try to found the file  :catalog/_partials/miniatures/product.tpl .
  • i've try  in a similar folder or path, but i found nothing.

 

I have the 1.7 version for pretashop and my server is up to date, with php 7.   

I'm really lost, i hope i can find some help about this. 

 ++

Olivier

 

 

 

Link to comment
Share on other sites

If you can't find this file in themes/your_theme/catalog/_partials/miniatures then simply copy it over from your_theme archive. Or if you don;t find it there either then form the Classic theme although it may look a bit different than the one supposedly in your_theme.

Link to comment
Share on other sites

Thank you very much Rhobur for your reply.

 

I have find the file product.tpl  here :

/var/www/html/themes/theme_name/templates/catalog/_partials/miniatures/product.tpl

But there is an under folder "/templates"    in more so maybe this is the problem

 

After, i take all my archive files theme and copy them over my current files theme like you said me.  ->  the bug result is the same  

 

So, I've try to duplicate all the folder for obtained the good target like this

/var/www/html/themes/theme_name/catalog/_partials/miniatures/product.tpl

That don't work :(

 

 

 

Link to comment
Share on other sites

Thank you Rhobur !!

But, I'm really sorry, but i don't understand exactly with my newbies knowledges...

 

I've now the following files  in the folder like the image attached :

/var/www/html/themes/theme_name/templates/catalog/_partials/miniatures/product.tpl

 Capture.PNG.7f287d91f667499919bfe7ca6da6d8e6.PNG

and i have still this message : 

163267325_Capture.PNG.add4b7a9296f01795ddaa195a20f28ed.PNG

 

😓

 

So, i've found an other post  talking about a similar problem. 

He modify the path somewhere in a tpl file.

 

 

And i've try to modify a similar tpl file here

/var/www/html/themes/greylook/modules/ps_featuredproducts/views/templates/hook

 feat.PNG.e51701ea3b34b2d167d43a635f36cf6f.PNG

The file ps_featuredproducts.tpl

featured.PNG.0190680a18747bae989b6e165572f3aa.PNG

There is :

include file="catalog/_partials/miniatures/product.tpl"    

I've try to modify the path like below without good result. 

  • include file="templates/catalog/_partials/miniatures/product.tpl" 
  • include file="var/www/html/themes/greylook/templates/catalog/_partials/miniatures/product.tpl" 

:(

 

++

 

 

Link to comment
Share on other sites

1. Did you check if you have the right ownership for  the directories and files? The owner has to be the webserver user (apache or nginx whatever you're using to serve the files).

2. Do you use any caching service, e.g. Cloudflare? 

Link to comment
Share on other sites

According your instructions, i've do 

1 For test  :

chmod 777 -R /var/www/html/    

It's doesn't work.     

2 No,  i don't use a caching service like Cloudfare or other  

 

3 Thank you lototo , i've kill caches and Presta is still killing me....  

 

Thank you for all your reply !!!!!! :) 

It's my fault, i know it's the importance to save the DB before modifying anything.....    

i think i will make a new install. I'm "lucky" because my installation is a new site.  

Have a good week  !!!! 

Edited by [email protected] (see edit history)
Link to comment
Share on other sites

Thank you very much for your time Rhobur,

Finally, i've made a re-install with a back up...

This is not my habit to not found the soluce, but i have no more time, it's a new production for a customer....

For respond, yes i have add a theme (and i have a free module "uecookie17" .

They are normally compatible with my PS version 1.7, but yes, you're right, maybe there is an override....

+++  

 

 

Link to comment
Share on other sites

  • 1 year later...

Necroing because I found this thread serching for this problem and I have found the solution,

It's a database problem, the only way to solve it is to return the database to a previous state.

 

Not helpful in this case without a backup of the db, but this thread was first in my google search so I'm leaving it here for other people to find.

Link to comment
Share on other sites

  • 1 month later...

I have that problem, when I try to enter the client it gives me that error. Any solution? I also think it is a problem in MYSQL but I don't know where to look.

An exception has been thrown during the rendering of a template ("Unable to load template 'file:catalog/_partials/miniatures/product.tpl'").

[Twig\Error\RuntimeError 0]

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...