Permalink Plugin Error
I activated this plugin.. however when I try to go to permalinks I created.. i get this error:
Notice: Undefined index: REQUEST_URI in XXXXXXXXX\plugins\permalinks\permalinks_dispatcher.php on line 12 Dispatcher: No mod_rewrite url detected!
what am i doing wrong?
What version of permalinks are you using? (It should say under the plugins menu).
Can you try adding a @ in front of $_SERVER['REQUEST_URI'] in permalinks_dispatcher.php, like this: @$_SERVER['REQUEST_URI']
And let me know if that resolves the issue?
I added the "@"
now I get error:
Dispatcher: No mod_rewrite url detected!
Yea, what's happening is the plugin isn't able to detect any information about the URL path on your server for some reason. I haven't seen that before but I can take a look for you.
If you can send me the following I can debug and resolve it for you:
- A link to this forum post
- CMS & FTP login details
- Steps to reproduce the issue (eg: a link I should click)
Email that to me at firstname.lastname@example.org (do not post login details to the forum).
I tracked this down. It looks like you have a Windows Server with a version of ISAPI_Rewrite installed that doesn't set REQUEST_URI and instead sets a variable called HTTP_X_REWRITE_URL.
- http://www.helicontech.com/isapi_rewrite/doc/compatibility.htm (Docs show REQUEST_URI should be set)
- http://support.microsoft.com/kb/954946 (This is related but an issue with IIS7, you have IIS6)
I added HTTP_X_REWRITE_URL to the list of variables to check for the current URL in the Permalinks plugin, patched your version, and updated our code for the next release.
It should be working now. Stay tuned I'm going to send you some more details via email as well that refer to the paths on the server.
Let me know any other questions (after you get the email). Thanks!