Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Bizarre bug - SimplePress triggering 404 with Woocommerce
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2013 - 6:01 pm

in sp-startup/sp-load-site.php, comment out this line of code:

add_action('template_redirect', 'sp_404');

and see if that helps...

Avatar
Derek Ellerman
Member
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2013 - 7:17 pm

OK, I went ahead and did this.  Afterwards, I was still able to load the forum index page, but when I tried to go into any of the forums, I got a 404 error.  That said, it didn't trigger the usual rewrite rules issue that normally happens when I go into a forum off the index page (and therefore WooCommerce still worked).  So, not a fix since it seems to disable the forum resolving properly, but maybe useful in continuing the troubleshooting process?

Thanks,
Derek

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2013 - 8:17 pm

might be one more thing needed... can you go to forum - integration - page and permalink and reset the forum permalink on that panel?  and then try again...  rules might have already been dumped...

Avatar
Derek Ellerman
Member
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2013 - 9:06 am

After doing this, the forums loaded properly, but unfortunately the rewrite rules got messed up again as before, once the forum loaded.  I tried commenting out the line above it also (separately) that added the rewrite rules for SimplePress but then nothing loaded.

Any other ideas?

Derek

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 16, 2013 - 12:36 pm

If all has failed... AND either woo-commerce OR simple:press work on their own then I think perhaps the next stage is to find out how woo-commerce are storing and flushing the rewrite rules they create so we can compare the two to try and find why they are not cohabiting. Although - as I said before - I know we have had users with both in the past.

So are you able to fund out how and when wo-commerce set up and/or flush the rewrite rules - ie.., when and under what conditions?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Derek Ellerman
Member
Free Members
sp_UserOfflineSmall Offline
Mar 20, 2013 - 10:54 am

Thanks for your help so far with this.  Given that SimplePress normally works with Woocommerce, I decided that it's probably a specific configuration issue I have, probably around another plugin too, rather an issue with SimplePress per se.  So I hired a developer to take a look at the situation across the whole site and with all the plugins and they seem to have been able to resolve it.  Still testing, but thanks again for the help with this issue.  I realized it's an issue that falls outside the help you guys should need to provide.

Derek

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 20, 2013 - 10:59 am

Would be most interested to know what they found if possible...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Derek Ellerman
Member
Free Members
sp_UserOfflineSmall Offline
Mar 20, 2013 - 3:41 pm

I've been digging into their fix and it's not quite as elegant as I'd like.  I don't think they really got to the bottom of the exact issue, other than that when deleting a previous plugin some rewrite rules were left over which conflicted with other ones.  Unclear why the forum was triggering this.  But they basically rigged a flush rules to run whenever loading certain plugins.  This works, but will be memory intensive.  I'm working on getting a better solution, but right now it's just this workaround.

Derek

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 20, 2013 - 4:35 pm

Yes - it will work and it is fairly quick but it's not an ideal fix I agree. Has to be a better way.
We did do a lot of checking and we are not flushing rules on each page load so we can think of no reason for rules to be lost...

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625