Support Forum
first, not sure why wp would flush the rewrite rules on a page load like that - kind of pointless... but wouldnt be the first time for them...
second, when wp does flush the rewrite rules, we get notified and our rules are readded... and we force an update of the rewrite rules as if you had clicked the button on the sp integration page...
but does sound like you are narrowing it down... will look through the rewrite stuff and see if there is a path that could be missed or something odd going on for these PATHINFO type permalinks vs standard rewrite rules...
good news is you should almost never have to visit the settings page, so it should remain stable for ever... unless there is another path too...
Visit Cruise Talk Central and Mr Papa's World
There is quite a lot of 'chatter' about Zeus and rewrite rules if you search for it. This article may be of interest and it also references the WP forums:
YELLOW
SWORDFISH
|
Thanks, I'll try that script.
Meanwhile, I am sure that there is significance to the similarity of the forum URL and the unit page URL, but I'm not sure exactly how that similarity is affecting the redirection that appears to be happening.
The forum page: http://wilmington.crimeboard.o.....unit-182f/
The unit page: http://wilmington.crimeboard.o.....unit-182f/
To recap, after flushing the rewrite rules by visiting the Settings>Permalinks page, any attempt to follow the forum page link results in arrival at the unit page link.
This makes me think there is a conflict in the sequence of how links are being resolved, but I don't have the background to know where this is happening. It seems like a case of whoever updates the rules last, wins.
Any ideas on how that conflict might be eliminated without requiring a new rewrite.script?
Brad
Tried the script to no apparent effect. (uploaded as rewrite.script to the root of my site)
The problem appears to be confined to the forum page and the way that individual forums on that page are resolved.
Once I click the SP Update WP Integration button, the problem is resolved for the moment.
Any ideas?
Thanks.
Brad
I installed the rewrite.script but did not make any changes to the existing permalink structure.
1. The existing permalink structure works fine as long as Simple:Press Update WP Integration is done AFTER the automatic flushing of rewrite rules that occurs when the Settings>Permalinks page is viewed. I really don't want to introduce a new variable to this troubleshooting process by also changing the permalink structure. If the existing structure can work some of the time (as indicated above), it should be able to work all of the time.
2. There seems to be a very tight relationship between the cause and effect noted above. In my testing today, no cause other than flushing the permalinks produced the problem. While I understand that other plugins could possibly create rewrite rules, that did not produce the problem during today's testing.
Rather than introduce possibly unrelated factors such as a different permalink structure or other plugins, I think it would be best to stay focused on what exactly is the interaction between the noted cause and effect. How does flushing the rewrite rules cause a problem for Simple:Press? How does Update WP Integration restore functionality? Knowing that, I expect it would be possible to circumvent the problem entirely.
Did you find any significance to the similarity of the URLs per my post #13? I was hoping that might lead in a helpful troubleshooting direction.
Brad
Brad Siegfried said
I installed the rewrite.script but did not make any changes to the existing permalink structure.
Then there is probably little point in installing the rewrite rules script if you are not intending to use it. My intention in pointing it out was to try and discover if it actually helped.
1. The existing permalink structure works fine as long as Simple:Press Update WP Integration is done AFTER the automatic flushing of rewrite rules that occurs when the Settings>Permalinks page is viewed. I really don't want to introduce a new variable to this troubleshooting process by also changing the permalink structure. If the existing structure can work some of the time (as indicated above), it should be able to work all of the time.
2. There seems to be a very tight relationship between the cause and effect noted above. In my testing today, no cause other than flushing the permalinks produced the problem. While I understand that other plugins could possibly create rewrite rules, that did not produce the problem during today's testing.
Rather than introduce possibly unrelated factors such as a different permalink structure or other plugins, I think it would be best to stay focused on what exactly is the interaction between the noted cause and effect. How does flushing the rewrite rules cause a problem for Simple:Press? How does Update WP Integration restore functionality? Knowing that, I expect it would be possible to circumvent the problem entirely.
Did you find any significance to the similarity of the URLs per my post #13? I was hoping that might lead in a helpful troubleshooting direction.
No. Rewrites are processed by breaking a requested url down into it's components and pattern matching against the rules.
Brad
I ask again if you have any other plugins active that may be creating rewrite rules. While this may be a red herring it IS something that has to be checked for and ruled out of the equation. It certainly can not be ignored.
Take a scenario where both SP and plugin X are creating rules. If all is correctly written and working as it should then updating WP Permalinks will flush the current rules, rebuild the WP rules and then add SP and X rules to the mix. This chain reaction is performed by code hooks placed in the WP core code. As far as I am aware - and as far as the history of SP to date strongly suggests - we perform this task correctly. If X does not perform this task correctly then there is a distinct possibility that the SP rule rebuild is not carried out at all - or the rules are even removed.
Updating the WP Integration panel may then perform the same task of flushing the rules which may then correct the issue. Curiously, this should only happen if the process discovers that the stored SP base permalink (as previously saved) is different from the permalink now being returned by WP core functions. As the rules DO appear to be getting rebuilt this suggests that this is the case.
So - while it may not have anything to do with another plugin it IS necessary to determine that to be the case.
YELLOW
SWORDFISH
|
I deactivated all other plugins, resulting in this environment:
Simple:Press |
Version: 5.1.3 Build: 8972 Release: Release |
|
WordPress |
Version: 3.4.1 Language: en-US Character Set: UTF-8 Theme: Suffusion |
|
PHP |
Version: 5.2.17 Memory: 128M Max Upload: 30M Timeout: |
|
MySQL |
Version: 5.0.96 Prefix: wp_ |
|
Server | Version: Zeus/4.3 | |
WP Plugins | Simple:Press (5.1.3) | |
SP Plugins |
Admin Bar (1.1.1) Captcha (1.1.4) Custom Profile Fields (1.1) File Uploader (using Plupload) (1.2.2) Font Resizer (1.0.2) Policy Documents (1.1.3) Post Ratings (1.1.2) Private Message System (1.1.4) Profanity Filter (1.1.1) Subscriptions (1.1.3) |
Results were the same as previously tested, so I think we can safely rule out any other plugins having a bearing on this.
I tried Save Changes from the Permalink Settings page. Same results as previously tested.
The previous "Month and name" structure was
I tried changing to a custom permalink structure: http://wilmington.crimeboard.o.....e-post/. When I clicked Save Changes, the text input area where I had entered the custom permalink was cleared and the radio button for "Default" was selected, resulting in the structure
. This broke all of my existing links. My forum links are structured this way: http://wilmington.crimeboard.o.....it-182f. I'd like to keep them that way. Is there anything inherently problematic in such a structure?
In regard to installing the rewrite.rules script if I don't intend to use it, my intent was not to change the structure for aesthetic reasons. My intent was to produce the intended functionality of the existing structure. Once I can get the links to work properly I may have a look at the aesthetics of eliminating the "index.php" from the structure. For now, I just want the links to work.
I changed the permalink structure back to the original "Month and name" format. Unfortunately, I now have many 404 errors where I previously had content. I didn't realize that changing the permalink structure would produce an irreversible change.
So, before we get back to the original problem, can you suggest the best way for me to restore access to my content?
Brad
Good news in most ways that no other plugins are effecting the rules. Bad news in that it leaves the problem unresolved. Whenb you change the WP permalinks it is always a good idea to also update the forum permalink structure just in case there is any conflict. And in your case we already know that refreshing from the WP settings panel doesn't perform the full task so it is doubly important.
Personally I have no other ideas off hand why your rewrite rules are apparently being either trashed or ignored - it is not something we have encountered before. But I will spend some time after my lunch doing some searching to see if I can turn up something that might be useful.
YELLOW
SWORDFISH
|
1 Guest(s)