【问题标题】:SmartyException 0():Missing '$template' parameter with PrestashopSmartyException 0():Prestashop 缺少“$template”参数
【发布时间】:2021-10-01 08:08:41
【问题描述】:

我正在为我的在线商店使用 PrestaShop https://www.fyndpris.co.uk/ 桌面版运行良好,但我在主页中没有 AMP 时遇到问题,但是当我尝试访问类似此链接的某些产品时: https://www.fyndpris.co.uk/mobile/product/8282714-fyndpris-children-s-loft-bed-frame-with-slide-ladder-pinewood-97x208-cm

 (1/1) SmartyException
0():Missing '$template' parameter

in smarty_internal_templatebase.php line 177
at Smarty_Internal_TemplateBase->_execute(null, null, 'layouts/layout-full-width.tpl', null, 0)
in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch(null, null, 'layouts/layout-full-width.tpl', null, false, true, false)
in SmartyDev.php line 40
at SmartyDev->fetch(null, null, 'layouts/layout-full-width.tpl')
in FrontController.php line 683
at FrontControllerCore->smartyOutputContent(null)
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

请注意,我已经查看了关于同一错误的这两个问题: 1-question1

但我找不到解决问题的方法

[4]: 'SmartyException' with message 'Missing template name' in Smarty 。 我现在将禁用 Amp 以避免在我找到解决方案之前让用户面临错误 知道我在 PrestaShop 社区发布了很多问题,但不幸的是没有答案 我希望我正确地描述了我的问题

【问题讨论】:

  • 你的 prestashop 版本是什么?
  • 最后一个1.7.6.1
  • 帮助你会很棘手,因为你的问题是关于一个模块的。它是免费的吗?如果没有,您将不得不直接询问模块支持。否则,分享它的链接
  • 我的问题与模块有什么关系?我只是使用随我的主题提供的 amp 我没有模块
  • 那你的主题是免费的吗?通常,一个主题可以附带一个包含的模块列表

标签: php prestashop


【解决方案1】:

我有同样的错误,使用前端控制器来执行 cron 规则......所以我再次编写了控制器,将结构保持为文档

“最小控制器示例”和“将前端控制器用作 cron 任务”中 https://devdocs.prestashop.com/1.7/modules/concepts/controllers/front-controllers/

所以,检查结构也许可以解决问题

【讨论】:

    【解决方案2】:

    在 Presta 性能设置中刷新 smarty 缓存

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-04
      • 2018-09-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多