FAP SUPPORT - Deleting Pictures: Won't Delete


Subject: FAP SUPPORT - Deleting Pictures: Won't Delete
So, I know permissions are set correctly because the little "Delete" link is there next to the Edit link. If permissions were not set, that would not be there - correct me if I'm wrong.

Now when trying to delete an image - whether me as admin or a reg user - after clicking Yes on Are You Sure to Delete these pic(s) - the pic doesn't delete and I'm prompted to hit yes again, which of course doesn't work.

Thoughts? CHMOD?

Profile PM  
Subject: Re: Deleting Pictures: Won't Delete
ignorantnewguy wrote: [View Post]
So, I know permissions are set correctly because the little "Delete" link is there next to the Edit link. If permissions were not set, that would not be there - correct me if I'm wrong.

Now when trying to delete an image - whether me as admin or a reg user - after clicking Yes on Are You Sure to Delete these pic(s) - the pic doesn't delete and I'm prompted to hit yes again, which of course doesn't work.

Thoughts? CHMOD?

This could be a bug... I have never deleted a picture so far! :icy_lol_flag:

If it is a bug, I'll try to fix it.

Subject: Re: Deleting Pictures: Won't Delete
Thanks : )

Yeah, I just tried deleting another one and it didn't work. Thankfully, there's always phpMyadmin : )

Profile PM  
Subject: Re: Deleting Pictures: Won't Delete
Mighty Gorgon wrote: [View Post]

This could be a bug... I have never deleted a picture so far! :icy_lol_flag:

I've deleted several ..... never had any problems. :wink:

Profile PM  
Subject: Re: Deleting Pictures: Won't Delete
UPDATE: Seems only to be a problem in the style Hierarchy_pro_red. Any thoughts on why that might be?

Also, when uploading an image that is too big this junk is ending up in the header:

Warning: copy(album_mod/upload/2f034f506663cb578e7b7cbbac153d2e.jpg) [function.copy]: failed to open stream: Permission denied in /home/egca/public_html/album_upload.php on line 873

Warning: getimagesize(album_mod/upload/2f034f506663cb578e7b7cbbac153d2e.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/egca/public_html/album_upload.php on line 893

Warning: Cannot modify header information - headers already sent by (output started at /home/egca/public_html/album_upload.php:873) in /home/egca/public_html/includes/page_header.php on line 662

Warning: Cannot modify header information - headers already sent by (output started at /home/egca/public_html/album_upload.php:873) in /home/egca/public_html/includes/page_header.php on line 664

Warning: Cannot modify header information - headers already sent by (output started at /home/egca/public_html/album_upload.php:873) in /home/egca/public_html/includes/page_header.php on line 665

That's pretty embarrassing. The normal error message that pops up below says the image is the wrong size. How do we get rid of this stuff?

Profile PM  
Subject: Re: Deleting Pictures: Won't Delete
ignorantnewguy wrote: [View Post]
UPDATE: Seems only to be a problem in the style Hierarchy_pro_red. Any thoughts on why that might be?

Strange... could you post that template's confirm_body.tpl file

ignorantnewguy wrote: [View Post]
Also, when uploading an image that is too big this junk is ending up in the header:

Warning: copy(album_mod/upload/2f034f506663cb578e7b7cbbac153d2e.jpg) [function.copy]: failed to open stream: Permission denied in /home/egca/public_html/album_upload.php on line 873

Check your CHMOD of the upload and sub folders. Are you using Nuffload ?

Profile PM  
Subject: Re: Deleting Pictures: Won't Delete
Here you go: confirm_body.tpl from Hierarchy_pro template:

Code: [Download] [Hide]
  1. {NAVIGATION_BOX}  
  2.  
  3. <table width="100%" cellpadding="0" cellspacing="0" border="0">  
  4. <tr><td height="2"><img src="{I_SPACER}" alt="" height="2" border="0" /></td></tr>  
  5. </table>  
  6.  
  7. <!-- BEGIN in_admin -->  
  8. <!-- BEGINELSE in_admin -->  
  9. <table class="tht" cellpadding="0" cellspacing="0" border="0">  
  10. <tr>  
  11. <td class="thl-1" nowrap="nowrap">&nbsp;</td>  
  12. <td class="thl-2" nowrap="nowrap">&nbsp;</td>  
  13. <td class="thm-1" align="center"><span class="thtitle"><img src="{I_CRM_QUESTION}" alt="" align="top" border="0" />&nbsp;{MESSAGE_TITLE}</span></td>  
  14. <td class="thr-2" nowrap="nowrap">&nbsp;</td>  
  15. <td class="thr-1" nowrap="nowrap">&nbsp;</td>  
  16. </tr>  
  17. </table>  
  18. <!-- END in_admin -->  
  19. <table class="forumline" width="100%" cellpadding="3" cellspacing="1" border="0">  
  20. <!-- BEGIN in_admin -->  
  21. <tr>  
  22. <td class="cat-1"><span class="thtitle">{MESSAGE_TITLE}</span></td>  
  23. </tr>  
  24. <!-- END in_admin -->  
  25. <tr><form action="{S_CONFIRM_ACTION}" method="post">  
  26. <td class="row1" align="center"><span class="gen"><br />{MESSAGE_TEXT}<br /><br />{S_HIDDEN_FIELDS}  
  27. <!-- BEGIN in_admin -->  
  28. <input type="submit" class="mainoption" name="confirm" value="{L_YES}" />&nbsp;&nbsp;<input type="submit" class="liteoption" name="cancel" value="{L_NO}" /><br /></td>  
  29. <!-- BEGINELSE in_admin -->  
  30. <input type="image" src="{I_CMD_YES}" name="confirm" value="{L_YES}" title="{L_YES}" alt="{L_YES}" align="top" />&nbsp;&nbsp;&nbsp;<input type="image" src="{I_CMD_NO}" name="cancel" value="{L_NO}" title="{L_NO}" alt="{L_NO}" align="top" /><br /><br /></span></td>  
  31. <!-- END in_admin -->  
  32. </form></tr>  
  33. </table>  
  34. <table class="shadow" cellpadding="0" cellspacing="0" border="0">  
  35. <tr>  
  36. <td class="shleft"><img src="{I_SPACER}" alt="" width="8" height="4" /></td>  
  37. <td class="shbottom"><img src="{I_SPACER}" alt="" width="8" height="4" /></td>  
  38. <td class="shright"><img src="{I_SPACER}" alt="" width="8" height="4" /></td>  
  39. </tr>  
  40. </table>  
  41. <!-- BEGIN in_admin -->  
  42. <br clear="all" />  
  43. <!-- END in_admin --> 


CHMOD is now correct. I'll wait to see if I get this error again.

Profile PM  
Subject: Re: Deleting Pictures: Won't Delete
Thought the template appears strange compared to the standard phpbb template, it looks like it should work OK.
I'm not familiar with CH at all, but I wonder if CH could be causing the problem.

Go back to the page where it prompts Yes or No to Are you sure to delete these pic(s)?

View the source here and see it is where it is directing you to when clicking Yes or No.

Should see something like this:
form action="album_delete.php?pic_id=XX and input type="submit" name="confirm" value="Yes" and input type="submit" name="cancel" value="No"

Profile PM  
Subject: Re: Deleting Pictures: Won't Delete
Well, the URL at the page with the "Are you sure to delete these pics?" is this http://www.mysite.com/album_delete.php?pic_id=12&user_id=2

I see no other indication of other code. Where am I supposed to look?

Profile PM  
Subject: Re: Deleting Pictures: Won't Delete
From your browser choose to View the Page Source and look at the html code of the page.

Profile PM  
Subject: Re: Deleting Pictures: Won't Delete
Artie wrote: [View Post]
Should see something like this:
form action="album_delete.php?pic_id=XX and input type="submit" name="confirm" value="Yes" and input type="submit" name="cancel" value="No"


I have the following:

Code: [Download] [Hide] [Select]
<tr><form action="album_delete.php?pic_id=10" method="post">


and this

Code: [Download] [Hide] [Select]
<left><input class="mainoption" type="submit" value="Search" /></left></span>


and this

Code: [Download] [Hide] [Select]
<td class="row1" align="center"><span class="gen"><br />Are you sure to delete these pic(s)?<br /><br /><input type="image" src="./templates/gg_Hierarchy_pro/../gg_Hierarchy_pro_red/images/lang_english/bm_yes.gif" name="confirm" value="Yes" title="Yes" alt="Yes" align="top" />&nbsp;&nbsp;&nbsp;<input type="image" src="./templates/gg_Hierarchy_pro/../gg_Hierarchy_pro_red/images/lang_english/bm_no.gif" name="cancel" value="No" title="No" alt="No" align="top" /><br /><br /></span></td>


That seems to have all the particular sets of code in there.

Profile PM  
Subject: Re: Deleting Pictures: Won't Delete
Looks okay to me, too.

Sorry, but I can see no reason why you would have this problem with only this template.

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.122s (PHP: 17% SQL: 83%)
SQL queries: 10 - Debug Off - GZIP Enabled