i’m unable to successfully delete a comment using the link generated by the {unwrap}{delete_link}{/unwrap}
tag which i’ve put in the “Admin Notification of Comments” Email Notifications Template.
the notification email includes a tag of this form:
which looks reasonable (the part up to “?” is correct), but when i click on it i am just redirected to my control panel. and when i navigate to the page with the comment in question, it’s still there.
im the superadmin, and im logged in at the time, although i assume this is supposed to work even if not logged in?
I’m logged in as superadmin on the non-www version of my site. The delete link still doesnt work.
I’ve also just tried logging in as superadmin on the www version of my site. No dice.
Also tried logging in as a registered user that has control panel entry delete privelidges. Again, no dice.
To reiterate, when I click the delete link appended to my comment notification email I am taken to the control panel home page (as a logged in user) but no confirmation message was issued and no delete has taken place. The link is of this form:
Ingmar, it looks like you are on the right track. The missing index.php is the problem. Good call.
The solution remains unclear, though… because the URL is generated by EE, in place of the {delete_link} tag. I am not composing the URL.
In that light, it seems like this is a bug… the system is generating a link that will not work, and ignoring the system setting that relates to whether index.php should appear in ALL urls it generates…
In any case, what do you recommend? I’m hoping this doesn’t require hacking EE system files.
This is the problem, please add index.php there again. This only affects the control panel, where it is needed as we have seen, and not the rest of your site.
I think the point was that as this isn’t going to be visible to anyone on the front end of your site, ie visitors and is only visible to admin members such as yourself and anyone else that has been made an admin then it isn’t quite as important visually to get rid of the index.php part?
fogcity - 03 September 2008 04:00 AM
(im sure some will think me silly for caring, however you will note that this forum has chosen to omit the index.php from its URLs)
That’s something that any non-logged-in or not admin member would see so in this case yes you are totally right that it may be preferable to get rid of them in this case.
And by the way, no you aren’t silly for wanting something like that at all
fogcity, are we good? Or would you want me to move this thread to Howto? There might be a way to remove the index.php even from the control panel, for all I know.
i can live with index.php in the system path. it’s just not optimal.
as for the status of this thread, it still seems we have discovered a bug and thus it’s not best placed in how-to, especially if that would only result in suggestions on how to hack the system to work around it.
the delete-comment-link is being generated incorrectly by EE when the system path doesn’t contain “index.php”.
i haven’t found any other feature in EE that requires index.php to be in the system path, and regardless the fix seems simple: the code that generates the link should be made aware of the path setting.
i’m not mad about any of this, by the way, and i should mention i’ve been happy with tech support responsiveness.
I don’t think it is a bug as it isn’t supported to get rid of the index.php part in any shape or form in ExpressionEngine as this is a server related task which has nothing to do with ExpressionEngine. Don’t know if perhaps a .htaccess file could fix this one up though possibly?
Actually, I don’t think this qualifies as a bug, since it’s working as intended.
the delete-comment-link is being generated incorrectly by EE when the system path doesn’t contain “index.php”.
It’s not generated incorrectly, it simply uses the path you provide. If you do remove index.php there, you’ll need to make sure that EE still finds the right page, much like you do when removing index.php from your public URL.