• Resolved Patrick_D1985

    (@patrick_d1985)


    Hi guys,

    A small heads up about an issue which seems to happen if you have another plugin which has Freemius support in it.

    It leads to;
    type E_ERROR on line 49 of /plugins/notificationx-pro/extensions/freemius/inc/freemius/FreemiusBase.php. Cannot declare class Freemius_Api_Base, because the name is already in use

    For now I have disabled my pro version as I can manage that but I do hope you guys can look into this.

    Best regards,
    Patrick Dankers

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author M Asif Rahman

    (@asif2bd)

    Sure @patrick_d1985, we will push a fix within 24hr. Thank for notifying!

    Thread Starter Patrick_D1985

    (@patrick_d1985)

    Wow Asif that was quick man!
    But great to hear you guys are looking into it.
    Keep up the great work you guys are doing!

    Best regards,
    Patrick Dankers

    Plugin Author PriyoMukul

    (@priyomukul)

    Hey, @patrick_d1985

    can you share some more details ?

    Actually the issue is coming from Freemius SDK.

    but i am thinking why, why it will be like this … cause there is a condition to revoke it.

    still i am investigating, can you share some more details in our support?

    Regards
    Mukul

    Thread Starter Patrick_D1985

    (@patrick_d1985)

    Hi @priyomukul , sure no problem.

    I wanted to start using Simple Sitemap Pro (for generating a decent HTM-ish Sitemap … as it will be helpful for general overview of a website and SEO).
    They use Freemius on their end as well.

    After enabling there Pro version (which uses Freemius) the error;
    type E_ERROR on line 49 of /plugins/notificationx-pro/extensions/freemius/inc/freemius/FreemiusBase.php. Cannot declare class Freemius_Api_Base, because the name is already in use

    Popped up in the NotificationX Pro, FreemiusBase.php file.
    I am guessing it is being redeclared now. Which can’t happen because well it’s already in use.

    But I was unsure how to deal with that. So that’s when I reached out.

    Does that help in any way?

    Best regards,
    Patrick Dankers

    Plugin Author PriyoMukul

    (@priyomukul)

    Hey @patrick_d1985

    Though, i don’t have the plugin you mentioned but I tried others plugin from Freemius profile. These are working though.

    I am not sure why this issues coming up.

    still, there is a condition to return if its exists.

    if ( class_exists( 'Freemius_Api_Base' ) ) {
       return;
    }

    Anyways, let me check with the plugin in mentioned.

    Regards
    Mukul

    Thread Starter Patrick_D1985

    (@patrick_d1985)

    Hi @priyomukul

    Yeah I looked real quick at the file and saw that check.
    But not sure why it would fail then with the mentioned error.
    Let me check someting real quick + also where and how they declare it.

    Hmmm … their FreemiusBase.php is exactly the same.
    That does not make sense.

    Let me … Well call me silly. Now it just works.
    I feel really stupid now. It must be something that was of in the WP install earlier.
    I have no clue what but … So sorry for this guys!

    Still thanks for bouncing ideas around with me!
    Always much appreciated.

    Best regards,
    Patrick Dankers

    Plugin Author PriyoMukul

    (@priyomukul)

    So, its resolved.

    Thanks.

    🙂

    Regards
    Mukul

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Freemius cannot redeclare’ is closed to new replies.