Fatal Error - Site inaccessible

  • Affected Version
    WoltLab Suite 3.0

    Hello,


    I was editing the main menu, modifying an entry I built which points to a third-party application. I had it point to my shop's category page, set the category ID to 5, saved, and refreshed the front-end page to see if it worked when I'm faced with the following error:


    Fatal error: Cannot call abstract method wcf\system\page\handler\ILookupPageHandler::isValid() in /home/public/shop/lib/system/page/handler/ShopCategoryPageHandler.class.php on line 26


    Attempting to return to the ACP gives me a blank white screen with the woltlab header bar.




    What would be the best way of resolving this error? I would assume that merely removing the menu entry would do it as that action is what caused the error in the first place. Though issues like that, while they may cause issues on the front-end, typically do not cause issues in the ACP, so I'm not too sure what's going on here. I'll go ahead and tag VieCode since this is their shop product.


    Amendment:

    Viecode responded and added a bug for the issue. Will be fixed in the next release.


    I need instructions on how to remove the menu item without access to the ACP.


    Solution: Modify that file as follows:


    Code
    /**
         * @inheritdoc
         */
        public function isVisible($objectID = null) {
            if ($objectID == 0) return true;
            
            /* return parent::isValid($objectID); */
            return true;
        }


    Enter ACP, remove menu item (or modify to get rid of the problem), and then modify again to remove the return true; and uncomment the check.

  • Please contact the manufacturer of the shop and ask for technical support. Support is available at viecode.com.


    I left this thread here because the source of the error was the menu system. I've already sent a duplicate ticket to viecode so both teams can examine the issue.

  • The error appears because the viecode shop does not implement an abstract method in his class. It is not caused by the WoltLab Suite Core.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!