Bleu de Cocagne Posted October 6, 2016 Share Posted October 6, 2016 Hi! So, i need to specify the tax rules working on my webshop, but everytime i try to add a country to any Tax Rule the goddamn HTTP ERROR 500 shows. Why??? Basically i'll work with: TVA FR 20% - for France, DOM TOM and all other European Countries and H.T. (Hors Taxe) (0%) - For Non-European countries, including Norway and Switzerland. The TVA FR 20% already existed, and ive deleted some of the countries that listed inside this tax rule. Then i've created a new tax under TAXES, but when i go to TAX RULES and want to choose a country and tell that H.T. is the tax to be applied, everytime it gives me the damn error. Any possible help? Regards! Link to comment Share on other sites More sharing options...
Apium Posted October 6, 2016 Share Posted October 6, 2016 Do you perhaps have the error logs? A HTTP 500 error is generally a problem in the code, and it could be that now a tax is 'missing'. Link to comment Share on other sites More sharing options...
Daniel Patilea Posted October 7, 2016 Share Posted October 7, 2016 Hi! So, i need to specify the tax rules working on my webshop, but everytime i try to add a country to any Tax Rule the goddamn HTTP ERROR 500 shows. Why??? Basically i'll work with: TVA FR 20% - for France, DOM TOM and all other European Countries and H.T. (Hors Taxe) (0%) - For Non-European countries, including Norway and Switzerland. The TVA FR 20% already existed, and ive deleted some of the countries that listed inside this tax rule. Then i've created a new tax under TAXES, but when i go to TAX RULES and want to choose a country and tell that H.T. is the tax to be applied, everytime it gives me the damn error. Any possible help? Regards! Turn on the debug mode to see the errors Link to comment Share on other sites More sharing options...
Bleu de Cocagne Posted October 7, 2016 Author Share Posted October 7, 2016 Turn on the debug mode to see the errors HI, I've debugged using this tip: "Hi Bsource go to config > defines.inc.php change the line: define('_PS_MODE_DEV_', false); to true and you're done Ariom" and now, instead of the HTTP ERROR 500 the following message shows: Fatal error: Uncaught Error: Access to undeclared static property: Validate::$data in /home/bleudecohp/www/shop/classes/ObjectModel.php:1149 Stack trace: #0 /home/bleudecohp/www/shop/controllers/admin/AdminTaxRulesGroupController.php(537): ObjectModelCore->validateController() #1 /home/bleudecohp/www/shop/controllers/admin/AdminTaxRulesGroupController.php(473): AdminTaxRulesGroupControllerCore->validateTaxRule(Object(TaxRule)) #2 /home/bleudecohp/www/shop/classes/controller/AdminController.php(903): AdminTaxRulesGroupControllerCore->processCreateRule() #3 /home/bleudecohp/www/shop/classes/controller/Controller.php(178): AdminControllerCore->postProcess() #4 /home/bleudecohp/www/shop/classes/Dispatcher.php(367): ControllerCore->run() #5 /home/bleudecohp/www/shop/h3703/index.php(58): DispatcherCore->dispatch() #6 {main} thrown in /home/bleudecohp/www/shop/classes/ObjectModel.php on line 1149 No idea what's going on! Thank you in advance. Link to comment Share on other sites More sharing options...
Daniel Patilea Posted October 7, 2016 Share Posted October 7, 2016 HI, I've debugged using this tip: "Hi Bsource go to config > defines.inc.php change the line: define('_PS_MODE_DEV_', false); to true and you're done Ariom" and now, instead of the HTTP ERROR 500 the following message shows: Fatal error: Uncaught Error: Access to undeclared static property: Validate::$data in /home/bleudecohp/www/shop/classes/ObjectModel.php:1149 Stack trace: #0 /home/bleudecohp/www/shop/controllers/admin/AdminTaxRulesGroupController.php(537): ObjectModelCore->validateController() #1 /home/bleudecohp/www/shop/controllers/admin/AdminTaxRulesGroupController.php(473): AdminTaxRulesGroupControllerCore->validateTaxRule(Object(TaxRule)) #2 /home/bleudecohp/www/shop/classes/controller/AdminController.php(903): AdminTaxRulesGroupControllerCore->processCreateRule() #3 /home/bleudecohp/www/shop/classes/controller/Controller.php(178): AdminControllerCore->postProcess() #4 /home/bleudecohp/www/shop/classes/Dispatcher.php(367): ControllerCore->run() #5 /home/bleudecohp/www/shop/h3703/index.php(58): DispatcherCore->dispatch() #6 {main} thrown in /home/bleudecohp/www/shop/classes/ObjectModel.php on line 1149 No idea what's going on! Thank you in advance. Can you disable your cache? Link to comment Share on other sites More sharing options...
Bleu de Cocagne Posted October 7, 2016 Author Share Posted October 7, 2016 Hi Daniel, Can you tell me how? Best, Link to comment Share on other sites More sharing options...
Apium Posted October 7, 2016 Share Posted October 7, 2016 That should be doable under "Advanced Settings -> Performance"! Link to comment Share on other sites More sharing options...
Bleu de Cocagne Posted October 7, 2016 Author Share Posted October 7, 2016 (edited) That should be doable under "Advanced Settings -> Performance"! Thank you Apium! As far as i see everything related to CACHE is disabled already. Regards, Edited October 7, 2016 by Bleu de Cocagne (see edit history) Link to comment Share on other sites More sharing options...
Bleu de Cocagne Posted October 12, 2016 Author Share Posted October 12, 2016 Anybody? Link to comment Share on other sites More sharing options...
Apium Posted October 12, 2016 Share Posted October 12, 2016 Disable and clear cache (that button is in the top-right), but I am not sure if that'd solve the problem. Does the error persist? Link to comment Share on other sites More sharing options...
Bleu de Cocagne Posted October 17, 2016 Author Share Posted October 17, 2016 Disable and clear cache (that button is in the top-right), but I am not sure if that'd solve the problem. Does the error persist? Hi Apium! Cache cleared but yes, it persists: when adding a new TAX RULE: Fatal error: Uncaught Error: Access to undeclared static property: Validate::$data in /home/bleudecohp/www/shop/classes/ObjectModel.php:1149 Stack trace: #0 /home/bleudecohp/www/shop/controllers/admin/AdminTaxRulesGroupController.php(537): ObjectModelCore->validateController() #1 /home/bleudecohp/www/shop/controllers/admin/AdminTaxRulesGroupController.php(473): AdminTaxRulesGroupControllerCore->validateTaxRule(Object(TaxRule)) #2 /home/bleudecohp/www/shop/classes/controller/AdminController.php(903): AdminTaxRulesGroupControllerCore->processCreateRule() #3 /home/bleudecohp/www/shop/classes/controller/Controller.php(178): AdminControllerCore->postProcess() #4 /home/bleudecohp/www/shop/classes/Dispatcher.php(367): ControllerCore->run() #5 /home/bleudecohp/www/shop/h3703/index.php(58): DispatcherCore->dispatch() #6 {main} thrown in /home/bleudecohp/www/shop/classes/ObjectModel.php on line 1149 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