Jump to content

Product Default-Image - Display issue


Penny-Céline

Recommended Posts

Hello, I'm a newbie on Prestashop and I don't find any solution on forums. I need your help.

Installation type (new/update): Downgrade from PS 1.7.7.4 to 1.7.6.9
PrestaShop version: 1.7.6.9
Theme (default/customized):Child_classic (modified CSS and JS)
Code (original/modified):PHP original
Hosting: LOCAL
PHP version: 7.2.33
MySQL version: 5.7.31
Browser(s) concerned: Chrome, Edge

 

The shop works fine until you pick a product and then, on the single-product page (with or without combinations), on PROD mode (debug="false") the default product image doesn't appear.

On DEV mode (debug="true"), I get an error message

Quote

 

(1/1) ContextErrorException

Notice: Undefined index: id_image

in ****8eddd26d517b8ed243d18cb5345783748235_2.file.product-cover-thumbnails.tpl.php line 92

at Block_57832722860cb231fd52073_05863068->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_57832722860cb231fd52073_05863068), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_57832722860cb231fd52073_05863068))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_57832722860cb231fd52073_05863068', 'product_images')in ****8eddd26d517b8ed243d18cb5345783748235_2.file.product-cover-thumbnails.tpl.php line 34

at content_60cb231fd6b278_27525849(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('file:catalog/_partials/product-cover-thumbnails.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 0, false)in ****da3b23d246f3037e6ab2eea05faa6aed4192_2.file.product.tpl.php line 125

at Block_131802562360cb231f8aa562_37129992->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_131802562360cb231f8aa562_37129992), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_131802562360cb231f8aa562_37129992))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_131802562360cb231f8aa562_37129992', 'product_cover_thumbnails', 0)in ****da3b23d246f3037e6ab2eea05faa6aed4192_2.file.product.tpl.php line 141

at Block_125993415160cb231f8a67a5_04985750->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_125993415160cb231f8a67a5_04985750), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_125993415160cb231f8a67a5_04985750))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_125993415160cb231f8a67a5_04985750', 'page_content', 0)in ****da3b23d246f3037e6ab2eea05faa6aed4192_2.file.product.tpl.php line 161

at Block_124337672160cb231f8a52e2_96961793->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_124337672160cb231f8a52e2_96961793), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_124337672160cb231f8a52e2_96961793))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_124337672160cb231f8a52e2_96961793', 'page_content_container', 0)in 0277da3b23d246f3037e6ab2eea05faa6aed4192_2.file.product.tpl.php line 797

at Block_71399668760cb231f8a2146_85462706->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_71399668760cb231f8a2146_85462706), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_71399668760cb231f8a2146_85462706), object(Block_150600995660cb231f9b6b75_61740493))in smarty_internal_runtime_inheritance.php line 186

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_150600995660cb231f9b6b75_61740493))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_150600995660cb231f9b6b75_61740493', 'content', 1)in 445f91407400ec1c90224a96b7d97d733f45a8fa_2.file.layout-full-width.tpl.php line 101

at Block_58169434960cb231f9b36e7_13033664->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_58169434960cb231f9b36e7_13033664), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_58169434960cb231f9b36e7_13033664), object(Block_151682035860cb231fa05d74_48829037))in smarty_internal_runtime_inheritance.php line 186

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_151682035860cb231fa05d74_48829037))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_151682035860cb231fa05d74_48829037', 'content_wrapper')in 3dc23408a91d79465f8f404346594be89a130d67_2.file.layout-both-columns.tpl.php line 87

at content_60cb231fa275d4_07556049(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in ****91407400ec1c90224a96b7d97d733f45a8fa_2.file.layout-full-width.tpl.php line 42

at content_60cb231f9bb978_51220391(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in ****da3b23d246f3037e6ab2eea05faa6aed4192_2.file.product.tpl.php line 55

at content_60cb231f97ab90_60413561(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232

at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40

at SmartyDev->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683

at FrontControllerCore->smartyOutputContent('catalog/product.tpl')in FrontController.php line 667

at FrontControllerCore->display()in Controller.php line 312

at ControllerCore->run()in Dispatcher.php line 515

at DispatcherCore->dispatch()in index.php line 28

 

It have been working very well on the old site version, with Prestashop 1.7.7.4. I re-use the child theme files and the database.

Thank you in advance for your help.

 

Link to comment
Share on other sites

Thank you, that looked promising, but it doesn't resolve my problem. I modified the product.php file, restart Wamp, regenerate the thumbnails on Prestashop Dashboard, clear the Chrome cache and the Prestashop cache. It didn't change anything. I really don't know where to search. I think it could be a problem with my child theme, I created it with Prestashop 1.7.7.4 and just copied the files in my project with PS 1.7.6.9. Is there many differences between the 2 versions ?

Link to comment
Share on other sites

Hey there !

I found what was my mistake during the downgrade : I copied both themes classic & child_classic from my shop in 1.7.7.4 version. Only child-theme was required.

I make a clean install of PS 1.7.6.9 and recover classic theme from it.

So, it works ! 😄 

Thank you for your help, and sorry, I thought it was a bug because at first, the downgrade went well (looked like, though).

See you !

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