Hi
i have updated the print module today, and when i try to "send to a friend" a node content i am redirected to the "Access denied" page.
The permissions are correctly configured (allow access send to friend, in the print_module for all users).
Thanks in advance!

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

You may have to refresh the menu cache.. Just delete Drupal's cache, and it should work again.

drupdruppalpal’s picture

Status: Postponed (maintainer needs more info) » Active

I have deleted the drupal cache at administer/performance and i have truncated the cache and the menu_cache table but the problem persist
The log entry says:

Tipo acceso denegado
Fecha Jueves, 15 October, 2009 - 16:56
Usuario blabla
Ubicación hachetetepe://www.mi_url.com/printmail/nombre_del_nodo
Referente hachetetepe://www.mi_url.com/nombre_del_nodo
Mensaje printmail/nombre_del_nodo
Severidad alerta
Nombre del host 00.00.00.00
Operaciones

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Can you send me the URL of that problem page via the contact form on drupal.org?

João

WildBill’s picture

Status: Postponed (maintainer needs more info) » Active

I am also getting this error. Permissions are properly configured. I'm getting Access Denied, even when logged in as user 1.

I've sent you a URL using your Drupal contact form.

raystuart’s picture

To help track this down... if I uncheck "Use URL alias instead of node ID" on /admin/settings/print/email then it displays the page fine using the node ID. Using the alias brings up the access-denied message.

jcnventura’s picture

Status: Active » Fixed

@raystuart: thanks for the info.. I guess I cut+pasted the code when preparing the 5.x fix instead of copy+pasting.

Sorry everyone. I have created a new release to address this problem.

raystuart’s picture

Status: Fixed » Active

Thanks João. I've updated to 6.x-1.10, and it looks like everything is back to working again. Thanks for the quick response!

jcnventura’s picture

Status: Active » Fixed
WildBill’s picture

Thanks jcnventura, this fixed it!

drupdruppalpal’s picture

Status: Fixed » Active

Thanks!!!!!!!

jcnventura’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

xsean’s picture

Version: 6.x-1.9 » 6.x-1.10

i just found that it still access denied when the url alias format start with integer. For e.g, http//www.example.com/2010/event/test-event

i removed the if (is_numeric($parts[1])) { and just leave $path = drupal_get_normal_path($path); no matter the url is alias or not.

i'm not sure it correct to solve it but it works for me.

function _print_mail_access($permission) {
$page_access = TRUE;
$parts = explode('/', $_GET['q']);
if (count($parts) > 1) {
unset($parts[0]);
$path = implode('/', $parts);
//if (is_numeric($parts[1])) {
// $path = 'node/'. $path;
//}
//else {
$path = drupal_get_normal_path($path);
//}
// If the destination page is not accessible, don't show the form
if (!($router_item = menu_get_item($path)) || (!$router_item['access'])) {
$page_access = FALSE;
}
}

jcnventura’s picture

Status: Closed (fixed) » Active
jcnventura’s picture

Status: Active » Closed (fixed)
escoles’s picture

Version: 6.x-1.10 » 6.x-1.x-dev
Status: Closed (fixed) » Active

Seeing this problem after updating to the most current dev release. Permissions are set, caches have been cleared.

As problem is not fixed in D6, reopening.

jcnventura’s picture

Status: Active » Closed (fixed)

Please open a new issue, providing more details of how the problem occurred.