[email protected] Posted November 2, 2019 Share Posted November 2, 2019 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 : 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 More sharing options...
Rhobur Posted November 2, 2019 Share Posted November 2, 2019 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 More sharing options...
[email protected] Posted November 2, 2019 Author Share Posted November 2, 2019 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 More sharing options...
Rhobur Posted November 2, 2019 Share Posted November 2, 2019 Hey Olivier, I have inadvertently omitted the templates subdir, it has to be there so it is your_theme/templates then the rest... Link to comment Share on other sites More sharing options...
[email protected] Posted November 2, 2019 Author Share Posted November 2, 2019 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 and i have still this message : 😓 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 The file ps_featuredproducts.tpl 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 More sharing options...
Rhobur Posted November 2, 2019 Share Posted November 2, 2019 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 More sharing options...
lototo Posted November 2, 2019 Share Posted November 2, 2019 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 Link to comment Share on other sites More sharing options...
[email protected] Posted November 2, 2019 Author Share Posted November 2, 2019 (edited) 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 November 2, 2019 by [email protected] (see edit history) Link to comment Share on other sites More sharing options...
Rhobur Posted November 2, 2019 Share Posted November 2, 2019 1. Was referring to ownership (which user owns the files) not permissions. Link to comment Share on other sites More sharing options...
[email protected] Posted November 2, 2019 Author Share Posted November 2, 2019 OK, i have this result, it's seem the owner is good ? To be sure for all folders i've made chown -R www-data:www-data /var/www/html/ Link to comment Share on other sites More sharing options...
Rhobur Posted November 2, 2019 Share Posted November 2, 2019 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? Link to comment Share on other sites More sharing options...
[email protected] Posted November 3, 2019 Author Share Posted November 3, 2019 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 More sharing options...
kolty Posted February 10, 2021 Share Posted February 10, 2021 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 More sharing options...
GEOCE Posted March 24, 2021 Share Posted March 24, 2021 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 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