Closed (fixed)
Project:
SimpleAds
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Mar 2012 at 12:05 UTC
Updated:
2 May 2012 at 20:00 UTC
Not sure if this is a bug or I've misconfigured. Upon clicking on an ad as anonymous user, I get redirected to: simpleads/redirect/www.google.com instead of to www.google.com.
I have simply modified the example simple ad content type and added a Taxonomy field so not sure how that could have affected it.
Comments
Comment #1
minnur commentedHi, this is known issue. Fixed in dev.
Please see http://drupal.org/node/1392814
Thanks.
Comment #2
aniebel commentedHi minnur, thanks but that didn't resolve the issue for me. Now it's simply trying to redirect to the node page... which, of course is denied since it's anonymous use.
By the way, I LOVE this module! Just eager to get it up and ticking. :)
Comment #3
minnur commentedHi were you able to fix the problem ?
Comment #4
aniebel commentedNo, sorry. It's now redirecting the the Simplead node page. I have cleared cache. Sorry, I haven't had time to try to troubleshoot yet.
Comment #5
shane birley commentedI can confirm this issue. All of the /redirect/### are redirecting internally and not to where the path assigned nor the external URL. I saw this same problem with the Advertisement module some time ago.
Comment #6
minnur commentedPlease try to add "http://" to your URL's
Comment #7
shane birley commentedChanged, cleared cache, doesn't seem to fix the problem. Just for reference, this is the almost identical issue in the advertisement.module - http://drupal.org/node/373065. I don't know if any similar code was re-used, but just in case.
Comment #8
goingbeyond commentedI ran into the same issue, cleared cache, no change.
But ... I only see this when logged in as admin.
When logged in with other account (or anonymous) the redirection works as expected.
Comment #9
minnur commented@goingbeyond this is by design. Admins and users with "Administer content" permission can access Ad node directly (easier to edit ads).
Comment #10
goingbeyond commentedYeah, I figured that out before I commented -- was just providing some details in case it helped Shane.
Really appreciate your work on this module by the way. It was almost everything I needed plus more. Thanks!
Comment #11
aniebel commentedI am still getting a redirect to the node page even as anonymous with the DEV version. I'm happy to help troubleshoot and can focus on this more next week if that helps.
Comment #12
minnur commentedComment #13
minnur commentedComment #14
aniebel commentedminnur, I updated to the latest dev on 4/16 and at first got a few php errors. I discovered that the simpleads_cron() function was duplicated in simpleads.module. I commented that out and got no further errors, cleared cache but still getting redirected to the node edit page.
Comment #15
minnur commentedAmy, thank you for testing this.
1. I don't see duplicates of simpleads_cron() in the module. I just tried to install the module and it works for me.
2. By default Admin always gets node page (this simplifies ad edit process), please try click on the ad as anonymous user.
Thank you.
Comment #16
aniebel commentedminnur, I am sorry and I forgot about that. YES! It works!!
Comment #17
minnur commented