GCorso91 Posted September 17, 2021 Share Posted September 17, 2021 Buongiorno, come da titolo, non riesco più ad entrare nella sezione prodotti nel back office. Nel file di log è scritto il seguente errore "PHP Notice: Undefined index: product_rewrite in /home/elettrix/public_html/override/controllers/front/ProductController.php on line 76" Questa dovrebbe essere la parte incriminata: "//Fix for accented chars URLs $allow_accented_chars = (int)Configuration::get('PS_ALLOW_ACCENTED_CHARS_URL'); if ($allow_accented_chars > 0) { $id_product = (int)Tools::getValue('id_product'); if ($id_product <= 0) { $id = (int)$this->crawlDbForId($_GET['product_rewrite']); 76 - if ($id > 0) { $_POST['id_product'] = $id; } } }" Qualcuno riesce ad aiutarmi? Link to comment Share on other sites More sharing options...
Ress Posted April 4, 2022 Share Posted April 4, 2022 (edited) Invece di $_GET['product_rewrite'] potresti usare Tools::getValue('product_rewrite') Edited April 4, 2022 by Ress (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