FalleNNN Posted April 1, 2020 Share Posted April 1, 2020 Hello Some time ago i wanted to install prestashop on my site yet i've encountered a problem. Whenever i use the search bar, 500 error shows up(it worked fine before). Unfortunately i dont know how presta and other html stuff works, i just know enough to handle most of the things yet i can't handle this one and can't find any solution. I've tried the debugging mode and the only thing i know is that Search.tpl file is missing. Reinstalling prestashop did not help me. I am running version 1.7.6.3. This is the exception that pops up "No template found for /home/.../themes/classic/search.tpl" Looking forward to your suggestions. Link to comment Share on other sites More sharing options...
Rhobur Posted April 4, 2020 Share Posted April 4, 2020 Why not copy the search.tpl from a PS1.7.6.3 archive to where it is missing? Link to comment Share on other sites More sharing options...
Tobicic Posted June 16, 2020 Share Posted June 16, 2020 (edited) [SOLVED] I have the same problem but in Debug-Mode my error-message is: No template found for search.tpl at line 68 in file classes/Smarty/TemplateFinder.php Line 68: throw new PrestaShopException('No template found for ' . $template); I have the same problem but in Debug-Mode my error-message is: No template found for search.tpl at line 68 in file classes/Smarty/TemplateFinder.php Line 68: throw new PrestaShopException('No template found for ' . $template); My Template is "EDLINK" from Prestashop-Store. Edited June 19, 2020 by Tobicic (see edit history) Link to comment Share on other sites More sharing options...
Rhobur Posted June 16, 2020 Share Posted June 16, 2020 check if you have the search.tpl file in themes/your_theme/templates/catalog/listing/, if not find it in your theme archive and copy it there; if your theme archive doesn't have it you can try with the one in themes/classic/templates/catalog/listing/search.tpl although each theme customizes its own and the classic's one might not fit 100%.. Link to comment Share on other sites More sharing options...
Tobicic Posted June 18, 2020 Share Posted June 18, 2020 Thank you, but unfortunately there is no difference between both files only one line of code: {extends file='catalog/listing/product-list.tpl'} I can see my template 'edlink' (developer: aei) uses:<form action="search" data-search-controller-url="/modules/aeisearchproducts/SearchProducts.php" ...> in \\modules\aeisearchproducts\views\templates\hook\aeisearch.tpl > the result is Error 500 BUT if I use the URL from Prestashop Demo-Shop in form action-tag which is:<form action="//shrewd-snake.demo.prestashop.com/en/search"> in \\modules\aeisearchproducts\views\templates\hook\aeisearch.tpl there is no error, it jumps to that search-result URL an shows correctly the no-results-page information. How and where do I have to make changes please that prestashop uses his standard search-template and not the (AEI Edlink) search-template like if I use the Prestashop-Demo-Search? Like how to eliminate all search functions from template and only use standard-search? Link to comment Share on other sites More sharing options...
Rhobur Posted June 18, 2020 Share Posted June 18, 2020 it is very likely that this edilink theme is using its own search in several places, I can't tell all of theme since I do not know the theme. But the recommended way would be for you to contact the theme's developers and have them fix the them issues, Isuppose you bought it therefore you're entitled to free support. Otherwise you ahve to look in the theme's templated for this form action they use and substitute it with the default prestashop search form call. Link to comment Share on other sites More sharing options...
Tobicic Posted June 19, 2020 Share Posted June 19, 2020 Thank you Rhobur, but there was no working solution. All the files were ok. After re-installing Prestashop, manually importing csv from products, categories, /img-folder (like it came from a non-prestashop-installation) and finally installing 'edlink'-Template and 'edlink'-configuration everything works fine. Looks like the DB had any wrong information!? Link to comment Share on other sites More sharing options...
Rhobur Posted June 19, 2020 Share Posted June 19, 2020 Possibly! Most likely the first install/configuration were not exactly right. Glad you solved it. please edit your first post's title and add [SOLVED in front so it can help other people with a similar issue. 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