Permalink Plugin Error
6 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: November 12, 2014 (RSS)
By s2smedia - November 5, 2014
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?
By Dave - November 5, 2014
Hi s2smedia,
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?
Thanks!
interactivetools.com
By s2smedia - November 5, 2014
1.02
I added the "@"
now I get error:
Dispatcher: No mod_rewrite url detected!
By Dave - November 5, 2014
Hi s2smedia,
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 dave@interactivetools.com (do not post login details to the forum).
Thanks!
interactivetools.com
By Dave - November 12, 2014
Hi s2smedia,
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.
References:
- http://stackoverflow.com/questions/3895956/how-to-get-the-originally-requested-url-when-using-iirf-url-rewriting-engine
- http://www.iis-aid.com/articles/how_to_guides/isapi_rewrite_30_request_uri_work_around
- 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!
interactivetools.com