• Resolved Karolina Vyskocilova

    (@vyskoczilova)


    PHP Fatal error: Cannot make non static method Freemius_Api_Base::Test() static in class Freemius_Api_WordPress in /www/kybernaut_715/public/wp-content/plugins/independent-analytics/freemius/includes/sdk/FreemiusWordPress.php on line 591" while reading response header from upstream, client: 194.116.81.154, server: stg-kybernaut-dev[.]kinsta[.]cloud, request: "GET /wp-admin/plugins.php?action=activate&plugin=independent-analytics%2Fiawp.php&_wpnonce=93a2957783 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php8.1-fpm-kybernaut.sock:", host: "stg-kybernaut-dev[.]kinsta[.]cloud:62272", referrer: "https[:]//stg-kybernaut-dev[.]kinsta[.]cloud/"

    I’m getting the error above. Any ideas why?

    Thanks!

    Karolina

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ben Sibley

    (@bensibley)

    Hi Karolina,

    Thanks for getting in touch about this. I’m very sorry for the error.

    This sounds like it is most likely a conflict with another plugin on the site using Freemius. I think they are using the PHP SDK, rather than the WordPress SDK provided by Freemius, which can cause this error.

    Since it looks like you’re on a staging site, could you try deactivating all plugins and then activate Independent Analytics to see if you get this error? If not, you can reactivate the plugins one-by-one until the error returns (unless you know which ones are using Freemius). If you can let me know which plugin is conflicting with IA, I can get in touch with the developers and work with them to correct this.

    Thread Starter Karolina Vyskocilova

    (@vyskoczilova)

    Hi! It looks like it’s caused by own custom theme plugin, but it holds just has composer.json with loading classes. If you give me your e-mail, I can share my private Github the repo with you or access to the staging website.

    But I can’t think of why it causes trouble. I think you’re the only Freemius plugin there.

    {

    "name": "vyskoczilova/kybernaut2024",

    "description": "Kybernaut theme based on Twenty Twenty Four",

    "type": "project",

    "autoload": {

    "classmap": [

    "classes/"

    ]

    },

    "authors": [

    {

    "name": "Karolína Vysko?ilová",

    "email": "[email protected]"

    }

    ]

    }
    Plugin Author Ben Sibley

    (@bensibley)

    Thanks for trying that out. You can reach out to [email protected] and we’ll get this resolved for you.

    Thread Starter Karolina Vyskocilova

    (@vyskoczilova)

    My bad. I totally forgot that thte Freemius SDK that I use myself for retrieving plugin indfo is not installed via composer and therefor it’s not namespaced correctly ???♀?. Sorry for the bug. I resolved it. I’m really sorry!

    Karolina

    Plugin Author Ben Sibley

    (@bensibley)

    No worries! I’m glad to hear it’s resolved now.

    Stay in touch if anything else comes up.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.