Jump to content

erro in php logs on server


m0ttan

Recommended Posts

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

  • 5 weeks later...
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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...