I have setup my site with global redirect module to clean the url and redirect the non-clean url to clean urls.
I not want the Dslash feature.i want each url is end with a trailing slash, so i have install this module.
By doing this now all drupal URL links show trailing slash. but when we visit any no trailing slash not redirect to trailing slash url.
and global redirect module also facing issue not redirect to clean urls.
Trailing slash option is enable in global redirect module.
Global redirect module version : 7.x-1.5
And when Trailing slash option is disable in global redirect module:
This Error Display on every page multiple time :
Notice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in trailing_slash_url_outbound_alter() (line 41 of /srv/www/drupal/sites/all/modules/trailing_slash/trailing_slash.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 1858820-fix-for-global-redirect-enforce-slashes2.patch | 2.8 KB | savel |
| #8 | 1858820-fix-for-global-redirect-enforce-slashes.patch | 2.41 KB | savel |
| #6 | php-version-debug_backtrace-1858820-6.patch | 1.02 KB | adamzimmermann |
Comments
Comment #0.0
rohit.wadhwa commentedupdate the message.
Comment #1
rohit.wadhwa commentedUse of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS
Looks Like issue is related to php version my php version is PHP 5.3.3.
Comment #2
Akaoni commentedThanks for the additional info - your PHP version would have been my first question.
DEBUG_BACKTRACE_IGNORE_ARGS is not supported in PHP < 5.3.6 but the fix for this is quite simple.
The fact that you have Trailing Slash and Global Redirect installed, both "Enable trailing slashes" and "Enforce trailing slash" checked, yet Global Redirect isn't redirecting is a worry. Will see if I can replicate this issue when I get a spare moment.
In case it makes a difference, what version of Drupal 7 are you running?
Comment #3
rohit.wadhwa commentedHi Akaoni,
Thanks for your response and sorry for delay in reply, i am using Drupal 7.17.
My issue is fixed by uninstalling the both modules and then install the trailing slash module first then enable the global redirect module and enable both "Enable trailing slashes" and "Enforce trailing slash".
Thanks for your suggestion, but still need a review on this issue.
Comment #4
Akaoni commentedThanks for further testing this.
Installation order could well be the problem - if so I'll need to look at a fix.
Comment #5
drupalove commented#3 didn't work for me on 5.3.3 and Drupal 7.19.
Looking at the code, I think trailing slash stops global redirect (when enabled) from deslashing, and relies on it to enforce the trailing slash, however global redirect does not or is not meant to enforce a trailing slash. If I'm right, maybe trailing slash needs its own function to enforce the end slash.
I hope to see this working one day without .htaccess. Thank you.
Comment #5.0
drupalove commentederror message description.
Comment #6
adamzimmermann commentedIf anyone else is stuck with an old version of PHP, here is a patch for what we used to get around this in older environments.
Comment #7
Akaoni commentedThanks for the patch and apologies for the slow reply.
Unfortunately this issue won't be fixed until a new maintainer can be found:
https://www.drupal.org/node/2841563#comment-11884584
Comment #8
savel commentedHere is the patch to fix compatibility with the current Global Redirect.
It enables enforce trailing slash feature to work.
Please test it and give some feedback.
Comment #9
savel commentedComment #10
savel commentedHere is the updated patch.
Comment #11
astonvictor commentedI'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks