Closed (duplicate)
Project:
SimpleAds
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
22 Jun 2012 at 14:45 UTC
Updated:
25 Nov 2012 at 09:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
miro_dietikerThis queue is about Simplenews, not Simpleads. Redirecting.
Comment #2
cocoonfx commentedI have the same issue... I have 4 ads 3 or them work and the 4th one doesn't. Needs a rapid fix..
Comment #3
minnur commentedPlease give this module a try http://drupal.org/project/cacheexclude (I haven't test it myself).
Comment #4
minnur commentedComment #5
bxtaylor commentedChanging this line:
header("Location: " . $url);todrupal_add_http_header('Location', $url);seemed to fix the bug for me.Patch attached.
Comment #7
bxtaylor commentedEdit: that was against 7.x-1.x-dev
Comment #8
bxtaylor commentedComment #9
bxtaylor commented#5: cache-redirect-1652880-5.patch queued for re-testing.
Comment #11
bxtaylor commentedErr...I'm guessing the TestBot doesn't work for contrib. Sorry for the flood.
Comment #12
minnur commentedNo problem, once someone else confirm this patch works then I will apply it manually.
Thanks for sharing this.
Comment #13
bayousoft commented#5 fixed the issue for me as well.
Comment #14
Arngrim commented#5 did the trick for me, too
Comment #15
thetoast commentedThis works with drupal cache, but it doesn't work if you're using the boost module.
Comment #16
jamix commentedI'm wondering why
header()is used for redirection at all. Changing it todrupal_goto()fixed the issue in Boost as per #1176534: Bypass caching on redirects. Please test with core caching, patch attached.Comment #17
jamix commentedComment #18
minnur commentedSee also #1555988: Memcache problems on redirect?
Comment #20
Lann commentedThe issue is in the business logic behind what is going on. Most users ads probably link to external pages so why would an administrator want to view the ad node when clicking his own ads? I removed this piece and changed it so that it simply does not record clicks for administrators but still redirects the user.
Replace the code at line 399 with this:
if (!user_access('administer nodes') && !user_access('access ad node')) {
// Only save the click for non administrators
_simpleads_save_click($node);
}
$url = _simpleads_validate_url($url);
module_invoke_all('simpleads_redirect', $url, $delta);
http://www.minus-reality.com
Comment #21
minnur commentedPlease try install development release. Similar issue: #1555988: Memcache problems on redirect?
Comment #22
minnur commentedDuplicate of #1555988: Memcache problems on redirect?