m0ttan Posted March 24, 2022 Share Posted March 24, 2022 hello from some time i have following error keeps showing in PHP error log on server: * is the path of the website on the server [24-Mar-2022 11:50:56 Europe/Bucharest] PHP Fatal error: Uncaught Error: Call to a member function getAttributeCombinations() on null in */controllers/front/ProductController.php:1012 Stack trace: #0 */controllers/front/ProductController.php(974): ProductControllerCore->tryToGetAvailableIdProductAttribute(0) #1 */controllers/front/ProductController.php(1264): ProductControllerCore->getIdProductAttributeByRequest() #2 */classes/controller/FrontController.php(1736): ProductControllerCore->getBreadcrumbLinks() #3 */classes/controller/FrontController.php(533): FrontControllerCore->getBreadcrumb() #4 */classes/controller/FrontController.php(590): FrontControllerCore->assignGeneralPurposeVariables() #5 */controllers/front/ProductController.php(417): FrontControllerCore->initContent() #6 */classes/controller/Controller.php(306): ProductControllerCore->initContent() #7 in */controllers/front/ProductController.php on line 1012 [24-Mar-2022 11:51:35 Europe/Bucharest] PHP Fatal error: Uncaught Error: Call to a member function getAttributeCombinations() on null in */controllers/front/ProductController.php:1012 Stack trace: #0 */controllers/front/ProductController.php(974): ProductControllerCore->tryToGetAvailableIdProductAttribute(0) #1 */controllers/front/ProductController.php(1264): ProductControllerCore->getIdProductAttributeByRequest() #2 */classes/controller/FrontController.php(1736): ProductControllerCore->getBreadcrumbLinks() #3 */classes/controller/FrontController.php(533): FrontControllerCore->getBreadcrumb() #4 */classes/controller/FrontController.php(590): FrontControllerCore->assignGeneralPurposeVariables() #5 */controllers/front/ProductController.php(417): FrontControllerCore->initContent() #6 */classes/controller/Controller.php(306): ProductControllerCore->initContent() #7 in */controllers/front/ProductController.php on line 1012 presta 1.7.8.5, php 7.4 any ideea about this? i cannot see what cause it from the timestamp, just keeps adding at a interval of 5-10 minutes, without stop. Link to comment Share on other sites More sharing options...
abdullacm Posted March 24, 2022 Share Posted March 24, 2022 error is from product page, this error is happening for a specific product or all the product page in the site? Link to comment Share on other sites More sharing options...
m0ttan Posted March 24, 2022 Author Share Posted March 24, 2022 all products and pages on website Link to comment Share on other sites More sharing options...
Rhobur Posted March 25, 2022 Share Posted March 25, 2022 Turn this https://i.imgur.com/S9cSklk.png to NO in Shop Parameters -> Product Settings and see if it solves your issue. Link to comment Share on other sites More sharing options...
m0ttan Posted March 25, 2022 Author Share Posted March 25, 2022 Hello. It's already set to NO. Link to comment Share on other sites More sharing options...
JSSSX Posted April 24, 2022 Share Posted April 24, 2022 On 3/25/2022 at 7:18 PM, m0ttan said: Hello. It's already set to NO. Did you find out what was causing this ? On a fresh 1.7.8.3 I am having the exact same issue. Link to comment Share on other sites More sharing options...
Nickz Posted April 24, 2022 Share Posted April 24, 2022 1 hour ago, JSSSX said: On a fresh 1.7.8.3 I am having the exact same issue. Give us more details. Fresh installed, installed online on shared server? Php Version? Link to comment Share on other sites More sharing options...
JSSSX Posted May 1, 2022 Share Posted May 1, 2022 On 4/24/2022 at 8:43 PM, Nickz said: Give us more details. Fresh installed, installed online on shared server? Php Version? Hey ! Dedicated DEBIAN VM with 8GB / 30GB, PHP 7.1.33 (512MB / Opcache 256MB), MariaDB 10.5. I have other shops on this VM running on 1.6.1.X and older 1.7.6.X without that issue. I don't know how to reproduce it, but it's like some product may now have a missing attribute / combination ? The error just came back after a while : [01-May-2022 12:06:10 Europe/Paris] PHP Fatal error: Uncaught Error: Call to a member function getAttributeCombinations() on null in /var/www/ART/shop/controllers/front/ProductController.php:1012 Stack trace: #0 /var/www/ART/shop/controllers/front/ProductController.php(974): ProductControllerCore->tryToGetAvailableIdProductAttribute(0) #1 /var/www/ART/shop/controllers/front/ProductController.php(1264): ProductControllerCore->getIdProductAttributeByRequest() #2 /var/www/ART/shop/classes/controller/FrontController.php(1736): ProductControllerCore->getBreadcrumbLinks() #3 /var/www/ART/shop/classes/controller/FrontController.php(533): FrontControllerCore->getBreadcrumb() #4 /var/www/ART/shop/classes/controller/FrontController.php(590): FrontControllerCore->assignGeneralPurposeVariables() #5 /var/www/ART/shop/controllers/front/ProductController.php(417): FrontControllerCore->initContent() #6 /var/www/ART/shop/classes/controller/Controller.php(306): ProductControllerCore->initContent() #7 /var/www/ART/shop/classes/Dispatcher.php(518): ControllerCore->run() #8 /var/ww in /var/www/ART/shop/controllers/front/ProductController.php on line 1012 Link to comment Share on other sites More sharing options...
Rhobur Posted May 2, 2022 Share Posted May 2, 2022 try setting this https://i.imgur.com/d2kMxMd.png to No in Shop Parameters -> Product Settings. Link to comment Share on other sites More sharing options...
m0ttan Posted May 2, 2022 Author Share Posted May 2, 2022 Already set to NO, error keep showing. Link to comment Share on other sites More sharing options...
Rhobur Posted May 2, 2022 Share Posted May 2, 2022 try to check the product for which this error appear... it is like it doesn't exists (the product, not the combinations). Link to comment Share on other sites More sharing options...
Nickz Posted May 2, 2022 Share Posted May 2, 2022 18 hours ago, JSSSX said: Dedicated DEBIAN VM with 8GB / 30GB, PHP 7.1.33 (512MB / Opcache 256MB), MariaDB 10.5. I have other shops on this VM running on 1.6.1.X and older 1.7.6.X without that issue. Could you up the php version for the newest install? To 7.3 i.e? Plus check if you have all the modules enabled in that particular php configuration. Link to comment Share on other sites More sharing options...
m0ttan Posted May 2, 2022 Author Share Posted May 2, 2022 I get same error with 7.4 php Link to comment Share on other sites More sharing options...
m0ttan Posted May 2, 2022 Author Share Posted May 2, 2022 2 hours ago, Rhobur said: try to check the product for which this error appear... it is like it doesn't exists (the product, not the combinations). how can i do that? looks like random appearance, can/t identify when or what generate it. Link to comment Share on other sites More sharing options...
Nickz Posted May 2, 2022 Share Posted May 2, 2022 47 minutes ago, m0ttan said: I get same error with 7.4 php you did restart apache2 right? 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