Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2009 at 11:31 UTC
Updated:
13 Jul 2011 at 17:46 UTC
Comments
Comment #1
jcnventuraYou may have to refresh the menu cache.. Just delete Drupal's cache, and it should work again.
Comment #2
drupdruppalpal commentedI 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
Comment #3
jcnventuraCan you send me the URL of that problem page via the contact form on drupal.org?
João
Comment #4
WildBill commentedI 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.
Comment #5
raystuart commentedTo 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.
Comment #6
jcnventura@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.
Comment #7
raystuart commentedThanks 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!
Comment #8
jcnventuraComment #9
WildBill commentedThanks jcnventura, this fixed it!
Comment #10
drupdruppalpal commentedThanks!!!!!!!
Comment #11
jcnventuraComment #13
xsean commentedi 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;
}
}
Comment #14
jcnventuraComment #15
jcnventura@xsean: this similar problem has been fixed in #1061636: If node url begins with a number then print_mail returns "Access Denied" despite permission settings
Comment #16
escoles commentedSeeing 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.
Comment #17
jcnventuraPlease open a new issue, providing more details of how the problem occurred.