Andrz2556 Posted May 1 Share Posted May 1 (edited) Hello, I upgraded my Prestashop server to the new version, and when I tried to open the shop, I have this error. I tried to add the code 'categories to this route in this class, but still have the same issue class DispatcherCore { /** * List of available front controllers types. */ const FC_FRONT = 1; const FC_ADMIN = 2; const FC_MODULE = 3; const REWRITE_PATTERN = '[_a-zA-Z0-9\x{0600}-\x{06FF}\pL\pS-]*?'; /** * @var Dispatcher */ public static $instance = null; /** * @var SymfonyRequest */ private $request; /** * @var array List of default routes */ public $default_routes = [ 'upload' => [ 'controller' => 'upload', 'rule' => 'upload/{file}', 'keywords' => [ 'file' => ['regexp' => '.+', 'param' => 'file'], ], ], 'category_rule' => [ 'controller' => 'category', 'rule' => '{id}-{categories}-{rewrite}', 'keywords' => [ 'id' => ['regexp' => '[0-9]+', 'param' => 'id_category'], 'rewrite' => ['regexp' => self::REWRITE_PATTERN], 'meta_keywords' => ['regexp' => '[_a-zA-Z0-9-\pL]*'], 'meta_title' => ['regexp' => '[_a-zA-Z0-9-\pL]*'], 'categories' => ['regexp' => '[_a-zA-Z0-9-\pL]*'], ], ], } Edited May 1 by Andrz2556 (see edit history) 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