Coder Social home page Coder Social logo

Comments (8)

TobiasBg avatar TobiasBg commented on July 20, 2024

Hi @MarkHollo,

thanks for opening this issue!
Now, I don't think that there's anything that I can do about this, I'm afraid, as this seems to be an issue with either that EDD Migration plugin or with the Freemius SDK.
In both cases, code changes or fixed would have to be done by Freemius.

I would therefore suggest that you get in touch with Freemius about this. From what I can see, an easy fix could be to wrap those functions in a function_exists() call in that EDD migration plugin (maybe that's even something that you could try yourself?).

Best wishes,
Tobias

from tablepress.

TobiasBg avatar TobiasBg commented on July 20, 2024

@Freemius @vovafeldman Can you maybe take a look?

from tablepress.

MarkHollo avatar MarkHollo commented on July 20, 2024

Hi @TobiasBg! Thanks for responding.

I did raise that issue with them, in April actually. Since there have been no changes, I was thinking that there might be something you guys could do faster because it's affecting your integration because this wasn't a problem until this year. I can wrap things up in function_exists but not sure this is a permanent solution for everyone

from tablepress.

TobiasBg avatar TobiasBg commented on July 20, 2024

Hi @MarkHollo,

oh, ok. Yes, it appears that their EDD migration plugin is only updated once in a while. :-(

I'm not sure what I can do here, to be honest. Even if I knew what to change, I don't really want to make code changes in the Freemius SDK that ships with TablePress, as that would just introduce another maintenance burden, whenever they release a new SDK version.

I believe the cause of the issue is the EDD migration plugin here. So, I think the function_exists() in your copy of the EDD migration plugin would be the safest (and easiest) starting point here. Maybe you can then even open a Pull Request with these changes, so that they'll eventually benefit all users of that migration plugin.

Best wishes,
Tobias

P.S.: You are probably only seeing this with TablePress this year, because I only started using the Freemius SDK in TablePress 2.0, which was released in late December of last year.

from tablepress.

MarkHollo avatar MarkHollo commented on July 20, 2024

Hi @TobiasBg, we need that plugin as you need the function, and there are slightly different codes, so not sure this is the right solution.

On the other hand, it will be a problem when using any plugin that using the same function as yours, so not sure where the solution should be implemented but we can agree this needs a solution

from tablepress.

TobiasBg avatar TobiasBg commented on July 20, 2024

Hi @MarkHollo,

well, right now, both that EDD migration plugin and plugins that use the Freemius SDK (like TablePress) seem to load that fs_find_caller_plugin_file() function. Even though they look slightly different, I think they still do the same. Thus, I think it's fine for the EDD migration plugin to also use the function from the SDK here.
To guarantee that, a function_exists() wrapper around the definition in that file (or just commenting out the definition) should work fine. From what I can see, function_exists() is wrapped around several other functions in that file as well, maybe it missing for fs_find_caller_plugin_file() is just an oversight.

As that function and file are Freemius files that I can not directly change, there's really nothing that I can do about this in TablePress.

Best wishes,
Tobias

from tablepress.

vovafeldman avatar vovafeldman commented on July 20, 2024

@MarkHollo @TobiasBg I reviewed the method, and the one in the EDD is simply an outdated version. Both intended to do the same thing. One needs to be updated.

I pushed a fix to the EDD migration develop branch: Freemius/edd-migration@2178829

And we'll wrap the method in the SDK (probably on the next release, not the upcoming one). But you can patch those on your WP setup, and it should work just fine.

from tablepress.

TobiasBg avatar TobiasBg commented on July 20, 2024

Hi @vovafeldman,

thanks for taking a look here! Thanks for confirming my assumption!
@MarkHollo, I think using the version from the develop branch should indeed be the best solution here then.

As there's nothing really left here for TablePress to do, I'll go ahead and close this issue. Feel free to continue adding any findings, of course!

Best wishes,
Tobias

from tablepress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.