singhharsh555 Posted January 25, 2017 Share Posted January 25, 2017 (edited) After resetting module Clean Url My website redirected to HTTP 500 Error My back office and the webpage is not opening. Now I have turned the debugging on. Below is the Error messge : Parse error: syntax error, unexpected ''supplier_rule'' (T_CONSTANT_ENCAPSED_STRING), expecting function (T_FUNCTION) in /home/mbawithf/public_html/mbawithfun.cu.cc/override/classes/Dispatcher.php on line 4 I am a newbie to prestashop,Your help will be highly appriciated.... Dispatcher.php File <?phpclass Dispatcher extends DispatcherCore{ 'supplier_rule' => array( 'controller' => 'supplier', 'rule' => 'supplier/{rewrite}/', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'supplier_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'manufacturer_rule' => array( 'controller' => 'manufacturer', 'rule' => 'manufacturer/{rewrite}/', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'manufacturer_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'cms_rule' => array( 'controller' => 'cms', 'rule' => 'info/{rewrite}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'cms_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'cms_category_rule' => array( 'controller' => 'cms', 'rule' => 'info/{rewrite}/', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'cms_category_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'module' => array( 'controller' => null, 'rule' => 'module/{module}{/:controller}', 'keywords' => array( 'module' => array('regexp' => '[_a-zA-Z0-9_-]+', 'param' => 'module'), 'controller' => array('regexp' => '[_a-zA-Z0-9_-]+', 'param' => 'controller'), ), 'params' => array( 'fc' => 'module', ), ), 'product_rule' => array( 'controller' => 'product', 'rule' => '{category:/}{rewrite}.html', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'product_rewrite'), 'ean13' => array('regexp' => '[0-9\pL]*'), 'category' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'categories' => array('regexp' => '[/_a-zA-Z0-9-\pL]*'), 'reference' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'manufacturer' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'supplier' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'price' => array('regexp' => '[0-9\.,]*'), 'tags' => array('regexp' => '[a-zA-Z0-9-\pL]*'), ), ), 'layered_rule' => array( 'controller' => 'category', 'rule' => '{rewrite}/filter{selected_filters}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'selected_filters' => array('regexp' => '.*', 'param' => 'selected_filters'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'category_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'category_rule' => array( 'controller' => 'category', 'rule' => '{categories:/}{rewrite}/', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'categories' => array('regexp' => '[/_a-zA-Z0-9-\pL]*', 'param' => 'categories_rewrite'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'category_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), ); } My Hosting Provider says Edited January 25, 2017 by singhharsh555 (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted January 25, 2017 Share Posted January 25, 2017 Try to replace it with this: http://www.filedropper.com/dispatcher_2 1 Link to comment Share on other sites More sharing options...
singhharsh555 Posted January 26, 2017 Author Share Posted January 26, 2017 I tried replacing that Dispatcher.php file it comes the same error. Error see here : www.mbawithfun.cu.cc Link to comment Share on other sites More sharing options...
singhharsh555 Posted January 26, 2017 Author Share Posted January 26, 2017 Try to replace it with this: http://www.filedropper.com/dispatcher_2 I tried replacing that Dispatcher.php file it comes the same error. Error see here : www.mbawithfun.cu.cc I have not changed any file permissions yet ,they are by default. Link to comment Share on other sites More sharing options...
vekia Posted January 26, 2017 Share Posted January 26, 2017 what "clean url" module you use ? is it a paid one? 1 Link to comment Share on other sites More sharing options...
singhharsh555 Posted January 26, 2017 Author Share Posted January 26, 2017 (edited) what "clean url" module you use ? is it a paid one? nope It is a free module i think . Please help got stuck since a week on it. Edited January 26, 2017 by singhharsh555 (see edit history) Link to comment Share on other sites More sharing options...
Nedned Posted January 25, 2018 Share Posted January 25, 2018 I had the same problem, I fixed with this: - First, I deleted the free module (clean url) . - Second, I deleted the file override/classes/Dispatcher.php in override folder, Don't forget delete the cache/class_index.php so Prestashop recreates that file. 1 Link to comment Share on other sites More sharing options...
ilian.kirov Posted June 14, 2020 Share Posted June 14, 2020 I meet this error trying to open some pages at the backend: This page isn't working mydomein.com is currently unable to handle this request. HTTP ERROR 500 I disbled the cashe and enabled it again. All pages in exception of one becoma again working. I swith to "Yes" the next options and everything becom working: - Disable non PrestaShop modules - Disable all overrides - Debug mode After that I swithed them again to "No". This was my solution. This happened, after I added some new categories and try to adjust the main menu. 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