• Resolved mike

    (@michaelmoxwai)


    Hey,

    I get this error when trying to access the site via IWP.

    PHP Fatal error occurred: Call to undefined function get_current_screen() in /home/xxxxxxxx/public_html/wp-content/plugins/offers-for-woocommerce/admin/class-offers-for-woocommerce-admin.php on line 683.

    Any ideas on how I to fix this?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor angelleye

    (@angelleye)

    That is a standard WordPress function, so if your system isn’t finding it there must be a plugin or something in your theme conflicting.

    Can you try disabling other plugins temporarily to see if the issue goes away? Also switching to one of the basic “Twenty” themes temporarily would be a good test.

    If the problem does go away, then you can re-enable those things one-at-a-time until the problem comes back to find the culprit.

    Thread Starter mike

    (@michaelmoxwai)

    I disabled all the plugins except woocommerce, offers for woocommerce, and iwp client and it still happened. Seems to be a conflict with iwp client and offers for woocommerce.

    Adding this line to the file ‘class-offers-for-woocommerce-admin.php’ fixed the issue:
    require_once(ABSPATH . ‘/wp-admin/includes/screen.php’);

    Thanks.

    Plugin Contributor angelleye

    (@angelleye)

    Ok, thanks for the feedback. We’ll look into that and see if it’s something we need to add in our next update.

    Plugin Contributor angelleye

    (@angelleye)

    We took a look at this and noticed that the InfiniteWP plugin is not compatible with the latest version of WordPress (according to their plugin directory page.)

    We’ll probably wait until they get updated before we spend time troubleshooting. The fact that they’re behind could be the issue.

    Plugin Contributor angelleye

    (@angelleye)

    We just tried this again on the latest version of all plugins and things seem to be working as expected.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP error – InfiniteWP’ is closed to new replies.