Webshoptime Posted August 7, 2017 Share Posted August 7, 2017 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 public function __get($property_name) { switch ($property_name) { case 'source': if (strlen($this->template_resource) == 0) { throw new SmartyException('Missing template name'); } $this->source = Smarty_Resource::source($this); // cache template object under a unique ID // do not cache eval resources 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 More sharing options...
0 lesley Posted August 8, 2017 Share Posted August 8, 2017 Is this on the front end or the back end? Have you disabled overrides and third party modules and cleared your cache? Link to comment Share on other sites More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 It's indeed the payment logos block. But how can i solve it? Link to comment Share on other sites More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 i have fixed it. Delete the module and reinstalled. Now i can go to the product, but i see still the error Warning: Invalid argument supplied for foreach() in /home/.....public_html/classes/Dispatcher.php on line 513 Link to comment Share on other sites More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 i see this error "Unexpected token < in JSON at position 0" if I want upload a picture in products. I think it's related. Link to comment Share on other sites More sharing options...
0 Traumflug Posted August 8, 2017 Share Posted August 8, 2017 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 More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 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 More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 ow yes this is, of course, the debug mode. Thanks. Link to comment Share on other sites More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 I don't find what causes the error on line 513 in the Dispatcher. Somebody any idea? Link to comment Share on other sites More sharing options...
0 lesley Posted August 8, 2017 Share Posted August 8, 2017 Have you updated your shop to the latest 1.0.2 version? Link to comment Share on other sites More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 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 More sharing options...
0 lesley Posted August 8, 2017 Share Posted August 8, 2017 Does the error go away when you disable that module? Link to comment Share on other sites More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 Strange no it's not going away. Link to comment Share on other sites More sharing options...
0 lesley Posted August 8, 2017 Share Posted August 8, 2017 If you disable 3rd party modules from the performance page does it go away? Also if you disable overrides from that same page does it go away? Link to comment Share on other sites More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 yes it's going away if i do this, but also my theme. Link to comment Share on other sites More sharing options...
0 lesley Posted August 8, 2017 Share Posted August 8, 2017 Ok, try just one or the other to see which one makes it go away. I am betting it is the override, something might be wrong with it. Link to comment Share on other sites More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 i have removed all the overrides. Still there Link to comment Share on other sites More sharing options...
0 lesley Posted August 8, 2017 Share Posted August 8, 2017 Hmm, but when you disable the third party modules it goes away? Link to comment Share on other sites More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 the error is gone. i fix wrong code in the theme. But the bpost module is still not showing the adresslabels. it must be like this Link to comment Share on other sites More sharing options...
0 lesley Posted August 8, 2017 Share Posted August 8, 2017 Have you put a ticket in with their support? Who is the developer? Link to comment Share on other sites More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 The company stigmi. I'm in contact with the Developer. But no luck. Link to comment Share on other sites More sharing options...
0 lesley Posted August 8, 2017 Share Posted August 8, 2017 No luck means what? Link to comment Share on other sites More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 The developer want to support only Presta. Link to comment Share on other sites More sharing options...
0 lesley Posted August 8, 2017 Share Posted August 8, 2017 Is the developer from addons or a 3rd party site? Link to comment Share on other sites More sharing options...
0 Webshoptime Posted August 8, 2017 Author Share Posted August 8, 2017 from the addon. this company made it for Bpost. I just send a new email with a request. I hope for a good answer. Link to comment Share on other sites More sharing options...
0 lesley Posted August 8, 2017 Share Posted August 8, 2017 Hopefully. If you can find the companies contact information outside of addons please send it over. I can contact them as well. Link to comment Share on other sites More sharing options...
Question
Webshoptime
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
Link to comment
Share on other sites
35 answers to this question
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