Icy Phoenix
Archived phpBB Topics (Styles, Mods, Support) - FAP SUPPORT - Deleting Pictures: Won't Delete
ignorantnewguy [ Sat 05 May, 2007 21:36 ]
Post 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?
Mighty Gorgon [ Mon 07 May, 2007 01:48 ]
Post subject: Re: 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?
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.
ignorantnewguy [ Mon 07 May, 2007 08:00 ]
Post 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 : )
Artie [ Mon 07 May, 2007 18:22 ]
Post subject: Re: Deleting Pictures: Won't Delete
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:
ignorantnewguy [ Tue 08 May, 2007 07:54 ]
Post 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?
Artie [ Tue 08 May, 2007 17:53 ]
Post 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?
Strange... could you post that template's
confirm_body.tpl file
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 ?
ignorantnewguy [ Tue 08 May, 2007 21:27 ]
Post subject: Re: Deleting Pictures: Won't Delete
Here you go: confirm_body.tpl from Hierarchy_pro template:
- {NAVIGATION_BOX}
-
- <table width="100%" cellpadding="0" cellspacing="0" border="0">
- <tr><td height="2"><img src="{I_SPACER}" alt="" height="2" border="0" /></td></tr>
- </table>
-
- <!-- BEGIN in_admin -->
- <!-- BEGINELSE in_admin -->
- <table class="tht" cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td class="thl-1" nowrap="nowrap"> </td>
- <td class="thl-2" nowrap="nowrap"> </td>
- <td class="thm-1" align="center"><span class="thtitle"><img src="{I_CRM_QUESTION}" alt="" align="top" border="0" /> {MESSAGE_TITLE}</span></td>
- <td class="thr-2" nowrap="nowrap"> </td>
- <td class="thr-1" nowrap="nowrap"> </td>
- </tr>
- </table>
- <!-- END in_admin -->
- <table class="forumline" width="100%" cellpadding="3" cellspacing="1" border="0">
- <!-- BEGIN in_admin -->
- <tr>
- <td class="cat-1"><span class="thtitle">{MESSAGE_TITLE}</span></td>
- </tr>
- <!-- END in_admin -->
- <tr><form action="{S_CONFIRM_ACTION}" method="post">
- <td class="row1" align="center"><span class="gen"><br />{MESSAGE_TEXT}<br /><br />{S_HIDDEN_FIELDS}
- <!-- BEGIN in_admin -->
- <input type="submit" class="mainoption" name="confirm" value="{L_YES}" /> <input type="submit" class="liteoption" name="cancel" value="{L_NO}" /><br /></td>
- <!-- BEGINELSE in_admin -->
- <input type="image" src="{I_CMD_YES}" name="confirm" value="{L_YES}" title="{L_YES}" alt="{L_YES}" align="top" /> <input type="image" src="{I_CMD_NO}" name="cancel" value="{L_NO}" title="{L_NO}" alt="{L_NO}" align="top" /><br /><br /></span></td>
- <!-- END in_admin -->
- </form></tr>
- </table>
- <table class="shadow" cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td class="shleft"><img src="{I_SPACER}" alt="" width="8" height="4" /></td>
- <td class="shbottom"><img src="{I_SPACER}" alt="" width="8" height="4" /></td>
- <td class="shright"><img src="{I_SPACER}" alt="" width="8" height="4" /></td>
- </tr>
- </table>
- <!-- BEGIN in_admin -->
- <br clear="all" />
- <!-- END in_admin -->
CHMOD is now correct. I'll wait to see if I get this error again.
Artie [ Wed 09 May, 2007 00:15 ]
Post 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"
ignorantnewguy [ Wed 09 May, 2007 08:17 ]
Post 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?
Artie [ Wed 09 May, 2007 23:10 ]
Post 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.
ignorantnewguy [ Wed 09 May, 2007 23:49 ]
Post subject: Re: Deleting Pictures: Won't Delete
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:
<tr><form action="album_delete.php?pic_id=10" method="post">
and this
<left><input class="mainoption" type="submit" value="Search" /></left></span>
and this
<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" /> <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.
Artie [ Fri 11 May, 2007 00:12 ]
Post 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.