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).

Comments

rohit.wadhwa’s picture

Issue summary: View changes

update the message.

rohit.wadhwa’s picture

Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS
Looks Like issue is related to php version my php version is PHP 5.3.3.

Akaoni’s picture

Thanks 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?

rohit.wadhwa’s picture

Status: Needs work » Needs review

Hi 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.

Akaoni’s picture

Title: Not Working With Global Redirect Module » Not Redirecting with Global Redirect and DEBUG_BACKTRACE_IGNORE_ARGS Notices
Priority: Critical » Major
Status: Needs review » Needs work

Thanks for further testing this.

Installation order could well be the problem - if so I'll need to look at a fix.

drupalove’s picture

#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.

drupalove’s picture

Issue summary: View changes

error message description.

adamzimmermann’s picture

Issue summary: View changes
StatusFileSize
new1.02 KB

If 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.

Akaoni’s picture

Thanks 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

savel’s picture

Here 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.

savel’s picture

Status: Needs work » Needs review
savel’s picture

Here is the updated patch.

astonvictor’s picture

Status: Needs review » Closed (outdated)

I'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