RMK_Code Posted September 23, 2023 Share Posted September 23, 2023 (edited) Greetings, I'm new to this forum and kindly request your patience if I appear less experienced in my approach. I'm here in search of a solution to my problem, and I appreciate your assistance. Thank you! My PrestaShop version is 8.1.1, and since yesterday evening, I've been unable to access my store, whether it's the back office or the front office. Quote This page does not work Unable to process this request via www.myweb.com at this time. HTTP ERROR 500 I'm not sure if this issue is related to my web host, as they are currently undergoing server maintenance. Despite reaching out to their support via phone, I couldn't get a conclusive answer, and I'll need to wait until Monday for the administrators to respond. In the meantime, I'm trying to determine if the problem originates from my end. Upon enabling debug mode via FTP access, I received the following error messages: Quote Fatal error: Declaration of Link::getProductLink($product, $alias = null, $category = null, $ean13 = null, $idLang = null, $idShop = null, $ipa = 0, $force_routes = false, $relativeProtocol = false, $addAnchor = false, $extraParams = []) must be compatible with LinkCore::getProductLink($product, $alias = null, $category = null, $ean13 = null, $idLang = null, $idShop = null, $idProductAttribute = null, $force_routes = false, $relativeProtocol = false, $withIdInAnchor = false, $extraParams = [], bool $addAnchor = true) in /override/classes/Link.php on line 229 I noticed there was an overload issue: public function getProductLink( $product, $alias = null, $category = null, $ean13 = null, $idLang = null, $idShop = null, $ipa = 0, $force_routes = false, $relativeProtocol = false, $addAnchor = false, $extraParams = array() ) { So I made adjustments to the code, resulting in the following: public function getProductLink( $product, $alias = null, $category = null, $ean13 = null, $idLang = null, $idShop = null, $idProductAttribute = null, $force_routes = false, $relativeProtocol = false, $withIdInAnchor = false, $extraParams = [], bool $addAnchor = true ) { After making this change, the site appears to load. However, I'm encountering new problems—I can't access products or navigate through the site using the main menu. Clicking on a product results in a 404 error, and when I click on menu links, I remain on the main page. Upon re-enabling debug mode, I received these warnings: Quote Warning: Undefined variable $ipa in /override/classes/Link.php on line 270 Warning: Undefined variable $ipa in /override/classes/Link.php on line 328 Warning: Undefined variable $ipa in /override/classes/Link.php on line 331 Warning: Undefined variable $ipa in /override/classes/Link.php on line 334 Warning: Undefined variable $ipa in /override/classes/Link.php on line 270 Warning: Undefined variable $ipa in /override/classes/Link.php on line 328 Warning: Undefined variable $ipa in /override/classes/Link.php on line 331 Warning: Undefined variable $ipa in /override/classes/Link.php on line 334 Warning: Undefined variable $ipa in /override/classes/Link.php on line 270 Warning: Undefined variable $ipa in /override/classes/Link.php on line 328 Warning: Undefined variable $ipa in /override/classes/Link.php on line 331 Warning: Undefined variable $ipa in /override/classes/Link.php on line 334 Warning: Undefined variable $ipa in /override/classes/Link.php on line 270 Warning: Undefined variable $ipa in /override/classes/Link.php on line 328 Warning: Undefined variable $ipa in /override/classes/Link.php on line 331 Warning: Undefined variable $ipa in /override/classes/Link.php on line 334 Warning: Undefined variable $ipa in /override/classes/Link.php on line 270 Warning: Undefined variable $ipa in /override/classes/Link.php on line 328 Warning: Undefined variable $ipa in /override/classes/Link.php on line 331 Warning: Undefined variable $ipa in /override/classes/Link.php on line 334 Warning: Undefined variable $ipa in /override/classes/Link.php on line 270 Warning: Undefined variable $ipa in /override/classes/Link.php on line 328 Warning: Undefined variable $ipa in /override/classes/Link.php on line 331 Warning: Undefined variable $ipa in /override/classes/Link.php on line 334 Warning: Undefined variable $ipa in /override/classes/Link.php on line 270 Warning: Undefined variable $ipa in /override/classes/Link.php on line 328 Warning: Undefined variable $ipa in /override/classes/Link.php on line 331 Warning: Undefined variable $ipa in /override/classes/Link.php on line 334 Warning: Undefined variable $ipa in /override/classes/Link.php on line 270 Warning: Undefined variable $ipa in /override/classes/Link.php on line 328 Warning: Undefined variable $ipa in /override/classes/Link.php on line 331 Warning: Undefined variable $ipa in /override/classes/Link.php on line 334 Thank you for any guidance you can offer in resolving these issues. Edited September 23, 2023 by RMK_Code I've changed a few mistakes (see edit history) Link to comment Share on other sites More sharing options...
QuickUpdate.net Posted September 23, 2023 Share Posted September 23, 2023 HI, "So I made adjustments to the code, resulting in the following:" - was this a normal PS installation or you installed additional modules? You should provide some of the code from the warning lines that are listed. Link to comment Share on other sites More sharing options...
RMK_Code Posted September 24, 2023 Author Share Posted September 24, 2023 (edited) Hi, Thanks for being here! I've just realized that the name arseopro often appears in the file. It's a module that was installed on the store that I've deleted. There is also another file that has been added to the /override/classes folder: Dispatcher.php I'm attaching the original file without code modifications if you'd like to take a look. Link.zip Dispatcher.zip PS I would like to inform you that my issue with accessing my online store has been resolved. I was able to restore the previous version of the store . Now I have another problem, some of my pages don't open, I have this at the end of my link /index.php?controller=404 I can't open the pages that are in the footer, for example the general sales conditions and also the categories. Edited September 24, 2023 by RMK_Code (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