• PHP Fatal error: Call to a member function get_price() on a non-object in /www/sites/sprinkler/www/wordpress/wp-content/plugins/woocommerce-recommendations-by-graphflow/includes/class-wc-graphflow.php on line 612
    PHP Fatal error: Call to a member function get_title() on a non-object in /www/sites/sprinkler/www/wordpress/wp-content/plugins/woocommerce-recommendations-by-graphflow/includes/class-wc-graphflow.php on line 202
    PHP Fatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in /www/sites/sprinkler/www/wordpress/wp-content/plugins/woocommerce-recommendations-by-graphflow/includes/class-wc-graphflow-api.php on line 91

    Any ideas how to fix those fatal error.

    Cheers
    Luke

    https://www.ads-software.com/plugins/woocommerce-recommendations-by-graphflow/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author mlnick

    (@mlnick)

    Hi Luke

    Thanks for letting us know. We will look into it and get back to you as soon as possible.

    Which version of the plugin do you have installed? And which WooCommerce version are you using?

    Nick

    Thread Starter Luke Cavanagh

    (@lukeca34)

    I have version 1.0.5 of the plugin installed and version 2.2.8 of WooCommerce.

    Cheers
    Luke

    Thread Starter Luke Cavanagh

    (@lukeca34)

    I just updated to version 1.0.6 of the plugin and the fatal error is still happening.

    Cheers
    Luke

    Plugin Author mlnick

    (@mlnick)

    Hi Luke

    Are you able to provide a few example calls / debug information / stack traces for when this is occurring? It seems related to trying to export product data. If you are able to email us at support at graphflow dot com with more detail that would help us track down what is going on.

    In the meantime we’ll see if we can try to reproduce the issue on our test sites.

    Thanks
    Nick

    Plugin Author mlnick

    (@mlnick)

    Hi Luke

    I’ve seen the 2nd error you mention in the logs on our test site. It appears that it may be related to bot activity.

    For example, here is an entry in the log that caused an error.
    “GET /?product=gumby-the-movie&feed=rss2 HTTP/1.1” 200 1182 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; +https://www.google.com/bot.html)”

    Are you able to check your access and error logs to see whether these are being caused by similar requests? If this is the case we can push a fix to exclude the product data export attempt if it is a feed request.

    For the other errors, any request / debug logs would help us.

    Thanks
    Nick

    Thread Starter Luke Cavanagh

    (@lukeca34)

    Yep I can look through the error logs for the live site.

    Cheers
    Luke

    Thread Starter Luke Cavanagh

    (@lukeca34)

    Hi Nick,

    Due to the PHP fatal errors the plugin is currently deactivated on the prod site. A real shame I really like the plugin.

    Cheers
    Luke

    Plugin Author mlnick

    (@mlnick)

    Hi Luke

    I understand you would wish to deactivate it. Are the errors being logged impacting the site performance at all?

    It’s a little difficult to debug fully remotely without more detail on which requests are causing these. As I mentioned above, it could be due to a certain type of request in which case we can fix it easily enough. Or it could be a bug that we need to track down.

    We would really appreciate any assistance you can provide with error/debug logs in order to track down the exact cause. If you’re able to email that to our support email that would be really helpful.

    We will also work on improving the error handling and logging the issue and error messages to the WC log.

    Thanks
    Nick

    Thread Starter Luke Cavanagh

    (@lukeca34)

    I should be able to look through entries in the error log from last week.

    Cheers
    Luke

    I get back the same PHP notification when i try to export my orders.

    Furthermore when i save some plugin settings in the admin back-end menu other notification (not related to the actual one) come out.

    I suggest to put this plugin under a debug mode by developers in order to solve these bugs.

    I consider this plugin a really a good idea but in my opinion a the moment is not so well coded.

    Plugin Author mlnick

    (@mlnick)

    @mr_pa

    Thanks for letting us know. We will look into this issue again further. We have done extensive testing and this issue does not seem to be happening in all cases.

    So in order to track down the root cause, we rely on you our users to help us out. Please could you email our support address (listed at https://graphflow.com/contact-us/), and provide us with the output of your System Report (under WooCommerce -> System Status).

    If you can also provide any access and error logs to us that would help us find out exactly what is causing the error, that would be very helpful.

    Thanks
    Nick

    Plugin Author mlnick

    (@mlnick)

    Hi

    Just wanted to update you on this.

    We’re not 100% sure of the cause – but we think most likely it is due to bots that try to access a “feed” URL in WordPress / WooCommerce. We’ve seen this occur in some of our demo sites and now a few customers’ sites too.

    We’ve added some checks to try to avoid capturing product info on these page loads if there is no product. We’ve also added some logging using the WC Log, to try to help diagnose and record when and why issues occur with product and order export.

    We’re almost ready to release that new version but not quite there yet. We’ll let you know when we do.

    Finally, we have fixed the original issue with “PHP Fatal error: Wrong parameters for Exception” and that will be in the new version.

    Plugin Author mlnick

    (@mlnick)

    @mr_pa by the way, we only pop up notifications in a few situations:

    1. When the plugin is activated – we put a notice to provide a shortcut to the Graphflow settings page in case you can’t find it. It goes away on the next request.

    2. We put up a notice when settings are saved to confirm that your Graphflow Client and API key settings are correct. If they are not, we highlight this with an error notice so that you can put in the correct keys – otherwise the plugin will not work.

    3. We put up a notice when orders or products successfully export to let you know this has been ok – this also goes away on next request.

    If you’re seeing other notices or issues with the notices please shoot us a message with any supporting screenshots or logs that can help us identify the issue. If you need to send sensitive info please use our support email address found here: https://graphflow.com/contact-us/

    Thanks
    Nick

    Thread Starter Luke Cavanagh

    (@lukeca34)

    Hi Nick,

    Thanks for letting me know that the new version will be releases soon.

    I will give the plugin another go.

    Cheers
    Luke

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘I get the following fatal PHP Error’ is closed to new replies.