Fatal error in WooCommerce, how to find the source?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Fatal error in WooCommerce, how to find the source?



My WooCommerce seems to log a fatal error on every page it seems and I can't find the source or what is going on. However, I have reasons to believe that it could prevent my WooCommerce webhooks from working.



The log is called:



fatal-errors-2018-08-10-[long number here].log


fatal-errors-2018-08-10-[long number here].log



And the error is as follows:



2018-08-10T02:04:16+00:00 CRITICAL Call to a member function get() on null


2018-08-10T02:04:16+00:00 CRITICAL Call to a member function get() on null



This log doesn't tell me much. I assume get() is used in a invalid way. But I cannot seem to find what could be causing this. Isn't null where the source is supposed to be?


get()


null





So that means that the method get() is used on something that should be an object, but it seems to be null instead… Nobody can help you more with the provided information. You should enable debug and look at the debug logs.
– LoicTheAztec
Aug 10 at 15:09






My debug logs won't give me any details on this issue. I am looking for a php related get() specifically right? not anything like get_user_meta() or anything? Is there no way to find the source or what file is doing this?
– Tristan .L
Aug 10 at 15:20



get()


get_user_meta()





No clearly the method involved is get() (it is a method, but not a function), something like $object->get('something'); where $object should be an instance of a class Object, but it's null in your case…
– LoicTheAztec
Aug 10 at 15:30



get()


$object->get('something');


$object









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS