Hi,
when an anonymous user receive the email link for the confirmation of his signature, he arrive to a page which ask him that he didn't have the right to access.
So some users think the email link didn't worked...
The anonymous users have the permission to sign a petition.
Thank you for the help and sorry for my poor english.
best regards
Glocal

Comments

gauvain’s picture

Are you sure you set the user permissions so that anonymous users may sign the petition? I mean under:
"admin/user/permissions" ?
This can also be due to your Internet hosts:
When I tested the petition module on (very cheap but) poor quality server, this kind of issue was happening: clicking on the confirmation link would send to a white screen and then tell I had no access...
Have you tested yourself to sign?

glocal-2’s picture

Hi Gauvain,
thanks for the answer but i conrfim that:
- the anonymous users may sign the petition as seen in the copy of screen (see file attachement)
- after clicking on the confirmation link, the anonymous users or me as Adminsystem (with all permissions) have the screen tells us Access denied (see file attachement) !!!

I am using a powerfull dedicated server with debian lenny and apache 2.

Thank by advance.

Glocal
ps: it's possible to configure somewhere a redirection to confirm to petitionners about confirmation of their signature ?

gauvain’s picture

Very strange....
If you test on my demonstration site at http://petition.blogopa.net, you will see that it doesn't happen...

Have you check the other access settings of your site?

The function called to confirmed the signature is found at the menu path:
petition/signature/confirmation/+ a few agurments.
If it works normally, you should get a message to confirm that...

Could this menu path be "occupied" by another module or another menu?

What happens if you type in your url:

http://yoursite.fr/petition/signature/confirmation/1/1/1/1 ?

Do you have an access error or a page not found (it should be a page not found)

glocal-2’s picture

StatusFileSize
new156.04 KB

Hi,
when i type in my url:

http://mysite.fr/petition/signature/confirmation/1/1/1/1 it's answer me that the page was not found.
In the file attachement, you will find all the module activated for my web site.

I try on you demo site at http://petition.blogopa.net and it answer me after clicking the email confirmation by a page where all the signatures could be viewed by the petitionner.

In my site configuration, anomymous users have only the right to sign petition (from the module petition) and to access content (from the module node).
I don't want the petitioner be able to see others petitioners.

Thanks for your help.

gauvain’s picture

Well, I think I know what it is the reason...
I will not have the the possibility to update the code before one week or two, but let me guess:
In the petition settings, you chose not to keep the signatures private?

After confirming the signature is confirmed, the user is sent to page 'node/%/signatures' where % is the nid of the petition. This is the page displaying the signatures but because the signatures are kept private, the user cannot see the page.

You can momentarily fix the code.

In the petition_module directory, please modify the petition.module file accordingly:
on line 1737, replace

 $url ='node/'. $nid .'/signatures';
 // empty the cache before routing to the result page
 cache_clear_all();
 drupal_goto($url);

with the following code:

 $url ='node/'. $nid;
 // empty the cache before routing to the result page
 cache_clear_all();
 drupal_goto($url);

on line 1699, replace

 $url ='node/'. $nid .'/signatures';
   drupal_goto($url);

with:

 $url ='node/'. $nid;
   drupal_goto($url);

Then it should work.

glocal-2’s picture

Thank you for the help.
I made the modification in the code.
So after the confirmation, the anonymous users are redirected to the page of the petition without any confirmation that their signature is validated but it's better than having an "access denied" .

To improve the interaction with users, i create a page called thanks located at http://www.mysite.fr/thanks ( real name is node/3) and i use your code recommendation to do these modifications on line 1737 and 1699 :

I replace :
$url ='node/'. $nid .'/signatures';

by :
$url ='node/'. 3;

So for now , my problem is resolved (not elegant but ok for now)

Thang you for your great module and your great help.
I hope that the next release will fix these.
Glocal
ps: You said in you previous message : " In the petition settings, you chose not to keep the signatures private?"
NO, i want the signatures to be kept private (not seen by anonymous)
Best regards

glocal-2’s picture

Status: Active » Closed (fixed)