Jump to content
olivier.mongeot@gmail.com

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

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

 

 

 

Share this post


Link to post
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.

Share this post


Link to post
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 :(

 

 

 

Share this post


Link to post
Share on other sites

Hey Olivier,

I have inadvertently omitted the templates subdir, it has to be there so it is your_theme/templates then the rest...   

Share this post


Link to post
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" 

:(

 

++

 

 

Share this post


Link to post
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? 

Share this post


Link to post
Share on other sites

yeap, prestashop can kill yourself. Have same once coz internal caches like smarty/symfony not cleared

try to kill caches in /app/test/cache \app\cache\dev (with dev mode) or \app\cache\prod folder

 

Share this post


Link to post
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 olivier.mongeot@gmail.com (see edit history)

Share this post


Link to post
Share on other sites

1. Was referring to ownership (which user owns the files) not permissions.

Share this post


Link to post
Share on other sites

the ownership is OK; I suspect that this file is getting called from another location,  do you have any overrides in place?

The theme or some module may have added an override, maybe?

Share this post


Link to post
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....

+++  

 

 

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