Jump to content
thirty bees forum
  • 0

public_html/classes/Dispatcher.php on line 513 error


Webshoptime

Question

After migration off my latest shop, I'm getting a new error. ``` public_html/classes/Dispatcher.php on line 513 [ThirtyBeesException]

Missing template name at line 678 in file vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplate.php

  1. public function __get($property_name)
  2. {
  3. switch ($property_name) {
  4. case 'source':
  5. if (strlen($this->template_resource) == 0) {
  6. throw new SmartyException('Missing template name');
  7. }
  8. $this->source = Smarty_Resource::source($this);
  9. // cache template object under a unique ID
  10. // do not cache eval resources
  11. if ($this->source->type != 'eval') { SmartyInternalTemplate->get - [line 346 - vendor/smarty/smarty/libs/sysplugins/smartycacheresource.php] - [1 Arguments] SmartyTemplate_Cached->construct - [line 707 - vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplate.php] - [1 Arguments] SmartyInternalTemplate->__get - [line 410 - vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php] - [1 Arguments] SmartyInternalTemplateBase->isCached - [line 3094 - classes/module/Module.php] - [3 Arguments] ModuleCore->isCached - [line 73 - modules/productpaymentlogos/productpaymentlogos.php] - [2 Arguments] ProductPaymentLogos->hookDisplayProductButtons - [line 771 - classes/Hook.php] - [1 Arguments] HookCore::coreCallHook - [line 487 - classes/Hook.php] - [3 Arguments] HookCore::execWithoutCache - [line 280 - classes/Hook.php] - [7 Arguments] HookCore::exec - [line 322 - controllers/front/ProductController.php] - [2 Arguments] ProductControllerCore->initContent - [line 366 - classes/controller/Controller.php] ControllerCore->run - [line 43 - override/classes/controller/Controller.php] Controller->run - [line 743 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 33 - index.php]```
Link to comment
Share on other sites

Recommended Posts

  • 0

Unexpected token < in JSON at position 0

Typically this is an Ajax request failing. Ajax requests expect an answer in JSON format and if this request sends back something like an error page (in HTML format, starting with < html >), you get this message.

To find out what's going on, open web developer console, network analysis section, and redo what triggers this malfunction. One of the requested pages listed in the developer console should have a Status higher than 400. Click on this and you'll see what exactly was the answer. This answer should give a useful hint on what's going wrong.

This description matches Firefox' web developer console, other browsers might do it a bit differently.

Link to comment
Share on other sites

  • 0

Nop no 400 found http://prestashop-38450-308782.cloudwaysapps.com/

if i trigger the order button i'm getting this

mpossible to add the product to the cart. textStatus: 'parsererror' errorThrown: 'SyntaxError: Unexpected token < in JSON at position 0' responseText:

Warning: Invalid argument supplied for foreach() in /home/17442-38450.cloudwaysapps.com/..../public_html/classes/Dispatcher.php on line 513 {"products":[],"discounts":[],"shippingCost":"\u20ac\u00a00,00","shippingCostFloat":0,"wrappingCost":"\u20ac\u00a00,00","nbTotalProducts":0,"total":"\u20ac\u00a00,00","productTotal":"\u20ac\u00a00,00","freeShipping":"\u20ac\u00a01,00","freeShippingFloat":1,"hasError":false}

Link to comment
Share on other sites

  • 0

yes all shops are running 1.0.2. I see i have this same problem with the other shop yarled.be The module Bpost shippingmanger is not working like it must be. I have spoken with the company that's made the plugin and they say i must fix this problem and it will work.

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