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
Derek Ellerman
Member
Free Members
sp_UserOfflineSmall Offline
Mar 13, 2013 - 10:40 pm

Hi - 

OK, this is an odd one, and may be a result of a three-way interaction between plug-ins.  Our product pages have been regularly going 404 lately, until we refresh the permalinks settings page, and then they are good... until they go down again.  We haven't been able to figure it out until tonight, that what seems to be triggering it is entering into a SimplePress forum.  Being on the forum index page isn't a problem.  It's when anyone enters a forum, then the Woocommerce products go down.

Any idea what could possibly be triggering this?  It's a mystery to me!

Thanks,

Derek

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 13, 2013 - 11:37 pm

no, not really... we dont update the permalink or anything like that on page views...

we have seen one plugin, yoast seo, that can trigger 404s if the fix ugly permalinks option is on...

any more info you can provide?

Avatar
Derek Ellerman
Member
Free Members
sp_UserOfflineSmall Offline
Mar 13, 2013 - 11:48 pm

The other plug-in that may be the third link is Premise, which is a access control plug-in that also has products, like Woocommerce. Not sure why it would be going into the SimplePress forum that would trigger this. Is there anything different about loading the Forum index vs. and inner forum? It happens with an inner forum, but not the forum index/problem-with-post-edit-buttonome.

Derek

>

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 14, 2013 - 12:18 am

no,not really... of course we have custom permalinks for all our pages since ALL the forum content (all page views) is displayed on a single wp page... but nothing unique about topic views...

afraid I have never heard of Premise...

Avatar
Derek Ellerman
Member
Free Members
sp_UserOfflineSmall Offline
Mar 14, 2013 - 11:04 am

OK, thanks.  I tried disabling Premise and the problem persisted, so the conflict does seem between Woocommerce and SimplePress.  I'll keep trying to figure it out. 

Derek

Avatar
Derek Ellerman
Member
Free Members
sp_UserOfflineSmall Offline
Mar 14, 2013 - 2:26 pm

OK, so I used a plugin called Rewrite Rules Inspector to see what happens before and after I load a forum or a topic.  

If I reset my permalinks and all is good, I get 120 functional rewrite rules. See the first screenshot for this.

As soon as I load a SimplePress forum or topic (but not the index), I get a whole bunch of these rewrite rule errors.  See the second screenshot.  I've done this several times and it happens every time, so it definitely is linked to SimplePress.  No other area of the site is triggering this problem.

Any other ideas what it could be?  Hope this additional info helps...Screen-Shot-2013-03-14-at-3.19.57-PM.pngImage Enlarger

 

Screen-Shot-2013-03-14-at-3.20.42-PM.pngImage Enlarger

Thanks,
Derek

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 14, 2013 - 3:07 pm

I am investigating. I do know we have had users of both SP and woo-commerce before now with no mention of such problems...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 15, 2013 - 12:35 pm

Would you be able and willing to make a small edit to an SP code file? Very easy edit...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Derek Ellerman
Member
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2013 - 5:34 pm

Of course! I'd be happy to make any change, just let me know what to try out.  

Thanks!

Derek

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 15, 2013 - 5:53 pm

Great. So the file you need is /simple-press/sp-startup/sp-load-site.php

It's a small file. Find this line of code:

add_action('template_redirect', 'sp_404');

and comment it out. Easiest way to do that is put a hash - # - in front of it.

And then let's see if that helps at all.

 

 

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