Have installed - was working fine, but has just stopped working.

Have checked permissions and bypass_redirection is off for everyone and view field_redirect is on for everyone...

Let me know if there's anything I can supply to help bug fix this - wonder if it's a conflict with another module...

CommentFileSizeAuthor
#9 screenshot.png101.01 KBAnonymous (not verified)

Comments

alphatester77’s picture

Title: Doesn't redirect! » Doesn't redirect! - Stopped working
duncan.moo’s picture

Same here, and I have no idea of how to debug this, can anyone help?

midloman’s picture

It seems to be an issue with drupal_goto.

in cck_redirection.module around line 594: make the following changes:

/**
* Diverts the browser to the target URI page.
*/
function _cck_redirection_divert($element) {
if (!empty($element['#item']['value'])) {
// old code drupal_goto($element['#item']['value']); <== remove this line
$url = url($element['#item']['value']); <== add this line
header("Location:$url"); <== add this line
}
}

Now, all three types of redirect work.
See http://drupal.org/node/292711

darrellduane’s picture

Making these edits still didn't get it working for me. I'm on Drupal 6.17. I'm going to find another method to get this working for me without using this Module.

codewatson’s picture

As far as i can tell it is working fine for me, check that the display settings for the field on your content type are not set to hidden, also try clearing your cache.

robin monks’s picture

Status: Active » Postponed (maintainer needs more info)

Can anyone reproduce this issue on 6.x-1.x-dev and give me details of their enabled modules, and a screenshot of their field settings page?

/Robin

Anonymous’s picture

we are having the same issue on some of our sites. turning caching off fixes the issue. obviously we don't want cache off, so we are digging into why the caching is getting in the way. hope this helps some of you too.

Anonymous’s picture

@Robin Monks
I can spend time to give you details if you want.

Anonymous’s picture

StatusFileSize
new101.01 KB

@Robin Monks

6.x-1.x-dev does not solve the problem for me.

Here is the list of modules and the screenshot :

  • Administration menu (admin_menu) 6.x-1.6
  • Backup and Migrate (backup_migrate) 6.x-2.4
  • Better Formats (better_formats) 6.x-2.x-dev
  • CacheRouter (cacherouter) 6.x-1.0-rc1
  • Case Tracker (casetracker) 6.x-1.0-beta9
  • CCK (cck) 6.x-2.9
  • CCK Redirection (cck_redirection) 6.x-1.x-dev
  • CDN (cdn) 6.x-2.0
  • Cleaner (cleaner) 6.x-1.0
  • Content Access (content_access) 6.x-1.2
  • Chaos tools (ctools) 6.x-1.8
  • Custom Error (customerror) 6.x-1.x-dev
  • Date (date) 6.x-2.7
  • Enabled modules (enabled_modules) 6.x-1.0
  • Frequently Asked Questions (faq) 6.x-1.12
  • FileField (filefield) 6.x-3.9
  • FileField Paths (filefield_paths) 6.x-1.4
  • FileField Sources (filefield_sources) 6.x-1.2
  • Filter allowed protocols (filter_protocols) 6.x-1.1
  • Flat comments (flatcomments) 6.x-2.0
  • Global Redirect (globalredirect) 6.x-1.x-dev
  • Google Analytics (googleanalytics) 6.x-2.3
  • HTML Mail (htmlmail) 6.x-1.3
  • Internationalization (i18n) 6.x-1.5
  • ImageField (imagefield) 6.x-3.9
  • iTweak Upload (itweak_upload) 6.x-2.4
  • Link (link) 6.x-2.9
  • Menu Attributes (menu_attributes) 6.x-1.4
  • Mint (mint) 6.x-0.5
  • Private Upload (private_upload) 6.x-1.0-rc3
  • robots.txt (robotstxt) 6.x-1.2
  • Role Theme Switcher (role_theme_switcher) 6.x-1.6
  • Rules (rules) 6.x-1.3
  • Shadowbox (shadowbox) 6.x-4.2
  • Simple Meta (simplemeta) 6.x-1.3
  • SuperCron (supercron) 6.x-1.3
  • System information (systeminfo) 6.x-2.0
  • Tagging (tagging) 6.x-2.5
  • Token (token) 6.x-1.15
  • Transliteration (transliteration) 6.x-3.0
  • Viewfield (viewfield) 6.x-1.0
  • Views (views) 6.x-2.12
  • Webform (webform) 6.x-3.6
  • Wysiwyg (wysiwyg) 6.x-2.x-dev
  • XML sitemap (xmlsitemap) 6.x-2.0-beta1
Anonymous’s picture

It works fine after desabling javascript compression from performance page. For the website I use this module for, Js compression can be desabled because 1/ all js files are compressed an 2/ I use CDN module to improve speed.

robyedlin’s picture

It is still not working for me, even after disabling javascript compression. For me, each node redirects one time after clearing cache. After that it doesn't work. An alternative I found for now is to create the actual folders in the drupal directory and put .htaccess files to do 301 redirects.

firebus’s picture

for those of you having the issue where redirect works only once, please note that you need to disable caching for redirect nodes.

if it's not working at all, note that if you are logged in as uid 1, redirects will never happen (because user_access always returns true if you are uid 1)

picxelplay’s picture

Just tested a fresh install of D6 with CCK Redirection-6.x-1.x-dev with Boost, Path, Pathauto, Token and all caching and compression on, and redirects work fine. Also check these issues #805246: Doesn't work with caching enabled, #1029874: CCK redirection field: do not cache node if it's using one.

darrellduane’s picture

Yes, its working for me now.