• Can you update the plugin to check if xmlrpc.inc has already been loaded before doing the include? I’m getting a fatal error because I have other plugins that use the API that are loaded before this one.

    A simple fix would be to update isdk.php to check for xmlrpc.inc functions/classes before loading. Something like this should work:

    if(!function_exists('xmlrpc_encode_entitites') && !class_exists('xmlrpcresp')) {
        include("xmlrpc-3.0/lib/xmlrpc.inc");
    }

    https://wordpress.org/plugins/infusionsoft-web-tracker/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jordan.hatch

    (@jordanhatch-1)

    Jacob,

    I changed it to use require_once instead of include. I believe it will do the same thing. If not let me know and I can update it.

    Thanks,

    Jordan

    Thread Starter Jacob Allred

    (@zulugrid)

    I don’t think require_once will fix the issue, because each plugin that uses xmlrpc.inc has its own copy of the file. PHP sees each of these as separate files so require_once will allow each of them to be loaded.

    Checking for functions/classes loaded by xmlrpc.inc is the only reliable way I know of to make sure it isn’t loaded twice.

    Thanks!

    Plugin Author jordan.hatch

    (@jordanhatch-1)

    I just did another update to the code to address this. Let me know if you are still having a problem.

    Thanks,

    Jordan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Check for xmlrpc.inc before loading’ is closed to new replies.