• Resolved woolsome

    (@woolsome)


    Hello
    I am testing your tool before getting the PRO version.
    I am very very happy of its features, but I have main problem.

    Immiedately after creating an idea by the user the shop goes down, I mean all sites are turning into 404, and when I save permalinks on wp-admin, everything goes back to normal.

    To be precised I have EN version of the shop (as main language) , and PL version in adition (via WPML plugin)

    The problem DOES NOT occur when idea is created
    on EN https://www.woolsome.shop/ideas-for-new-products/
    The problem DOES occur instantly when idea is created
    on PL https://www.woolsome.shop/pl/pomysly-na-nowe-produkty/

    Both pages are showing the same idea-board.

    Please help
    Cezary

    PHP Version: 7.4.33
    WordPress Version: 6.4.3
    Plugin Version: 8.58
    Is Pro User: NO
    Current Theme: Woodmart Child
    Website address: https://www.woolsome.shop

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @woolsome,

    Thanks for your query and sorry you are experiencing an issue. To be honest, I am really not sure about this one. I haven’t heard of it before. I would recommend contacting WPML support or your host and see if they have any ideas.

    I am pretty sure we don’t have anything too crazy in our plugin that mucks around with permalinks in a way that this kind of thing would occur.

    You said that saving the permalinks solves the issue? Maybe what you could do is hook into our action after an idea is created (idea_push_after_idea_created – please see the FAQ item in the plugin settings “I am a developer, can I hook into some of the events created by the plugin?” for more information about this action) and flush the permalinks using the flush_rewrite_rules( true ); in that action.

    Thanks,

    Thread Starter woolsome

    (@woolsome)

    Hi
    Broken permalinks on entire shop is an instant result of creating an idea on the PL , which is a translated language of a main shop.

    Maybe it get messed, because the newly created post does not know if its basic permalink should be :
    https://www.woolsome.shop/idea/light-green-in-wqd-section/
    or
    https://www.woolsome.shop/pl/idea/light-green-in-wqd-section/
    ?

    Would you like to get stagging version of my shop , so you can see yourself how it happens, and debug what is going? Eventually it will be faster if you speak with WPML, and it will help you to understand the issue for the future of your plugin.

    Anyway, I have added this into functions.php , but did not helped.
    Permalinks were not refreshed, it broke the site again.
    I had to save permalinks manually.

    Is this code below wrong ?

    Thread Starter woolsome

    (@woolsome)

    add_action(‘idea_push_after_idea_created’, ‘refresh_permalinks_after_idea_created’, 10, 4);

    function refresh_permalinks_after_idea_created($newIdeaId, $userId, $title, $description) {
    // Refresh permalinks
    flush_rewrite_rules(true);
    }

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @woolsome,

    The code you mentioned looks good. When our plugin creates an idea post, it does this using the standard wp_insert_post function.

    Unfortunately the support I provide on this forum is limited because of both the forum rules which prevents password sharing and also because I provide limited support for the free version of the plugin. I would suggest contacting WPML or try doing some isolation tests, i.e. try the plugin with a standard theme and no other plugins except ours and WPML and see how things go.

    Thanks,

    Thread Starter woolsome

    (@woolsome)

    I have purchased your PRO, downloaded zip, and tried to add it as a plugin.
    But all I am getting is this message:
    Incompatible Archive.

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @woolsome,

    I recommend emailing us at: [email protected] for premium support. But basically this is a WordPress bug. You can either downgrade WordPress and it will install fine, or you can unzip the plugin into your wp-content/plugins folder and then activate it from your main plugins listing page. Thanks,

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I have purchased your PRO

    Cool! But know the developer needs to take this conversation off of this site now.

    For pro or commercial product support please contact the developer directly on their site. This includes any pre-sales topics as well.

    As the developer is aware, commercial products are not supported in these forums. I am sure they will have no problem supporting you there.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘creating an idea destroys all permalinks on the shop’ is closed to new replies.