• room34

    (@room34)


    I’m reposting this from my reply to another thread, since it may address the problem that so many of the recent “it doesn’t work” threads are having.

    I found a StackExchange thread that offered a solution. I tested it (with a tweak to make it pull the site’s URL dynamically) and added this code into the plugin directly, and it solved the problem for me:

    add_filter('allowed_http_origins', function($origins) {
        $origins[] = home_url('');
        return $origins;
    });

    Obviously if/when the plugin is updated and this fix is not part of that update, the change will get lost. This could easily go into your theme’s functions.php file instead.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author MasterNs

    (@frile)

    Thanks for your response!
    I actually never received any other details or logs beside of “not working”.
    Plugin is just updated to V3.2.1.(added additional Access-Control-Allow-Origin header in order to prevent AJAX errors).

    Thread Starter room34

    (@room34)

    Great, thanks for the quick update!

    Thread Starter room34

    (@room34)

    Hmm… actually, I spoke too soon. I ran this update and tested it on the same site where I was having the problem before, and it doesn’t appear to solve the problem. Which is weird, since it looks like you’re using the exact code I shared above, which is what I added myself to the plugin the other day and it did work.

    I’m going to poke around a bit more and see if I can figure out what’s different now than before… especially since I bulk re-added the unwanted category to the posts in question, to test this, and now I need to figure out how to remove them again!

    Thread Starter room34

    (@room34)

    OK, I just did a bunch of testing and… I don’t quite know what to make of it. I found that the plugin is working for me about 10% of the time, but otherwise, it isn’t doing anything.

    Unfortunately the code I shared here seems to have been a “false positive” for me… I added the code and then the first time I tried it after adding the code happened to be one of those few times when it works.

    I’m really not sure what it is that I’m doing differently. It might have to do with the timing of the clicks, if there’s some AJAX data being silently transferred, but other than that, I’m doing the same set of actions every time, whether it works or not.

    I also did a bit more digging on this code sample I shared, including using the get_allowed_http_origins() function to see what all is actually in that $origins array, and I’m afraid the value of home_url(''), seems to already be in the array, so this code definitely is not doing anything.

    gundelfisch

    (@gundelfisch)

    We have the same problem! The plugin says, it had changed all selected posts, but nothing happened in the database. After first installation the plugin definitely worked fine, but since some months is doesn’t. And no errors show up anywhere.

    pvsolar

    (@webosolar)

    Was a solution found? I am having the same issue where the plugin installs correctly but it does not do anything. Thanks!

    We are on: WP 5.8.1 and Woo 5.8.0

    • This reply was modified 3 years ago by pvsolar.
    Plugin Author MasterNs

    (@frile)

    Here’s the test environment with the latest WP & Woo install: test-dashboard.

    However, if you still have problems with plugin and you can provide me access to your test environment please reach me via this contact form. I’ll be happy to debug and fix all possible errors.

    gragu

    (@gragu)

    Hi @frile !
    Doens’t work for me too, i can give access for debug and fix.

    Not working for me either.

    WooCommerce 6.2.0, WordPress 5.9

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Here’s a possible fix for when the plugin doesn’t work’ is closed to new replies.