https://www.icyphoenix.com/viewtopic.php?f=26&t=1848
-----------------------------------
ignorantnewguy
Sat 05 May, 2007 21:36

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

Re: Deleting Pictures: Won't Delete
-----------------------------------
[quote user="ignorantnewguy" post="13456"]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?[/quote]
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

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

Re: Deleting Pictures: Won't Delete
-----------------------------------
[quote user="Mighty Gorgon" post="13604"]
This could be a bug... I have never deleted a picture so far! :icy_lol_flag:
[/quote]
I've deleted several ..... never had any problems.  :wink:


-----------------------------------
ignorantnewguy
Tue 08 May, 2007 07:54

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

Re: Deleting Pictures: Won't Delete
-----------------------------------
[quote user="ignorantnewguy" post="13691"]UPDATE:  Seems only to be a problem in the style Hierarchy_pro_red.  Any thoughts on why that might be?[/quote]
Strange... could you post that template's [highlight=#FFFFAA]confirm_body.tpl[/highlight] file 

[quote user="ignorantnewguy" post="13691"]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[/quote]
Check your CHMOD of the upload and sub folders. Are you using Nuffload ?


-----------------------------------
ignorantnewguy
Tue 08 May, 2007 21:27

Re: Deleting Pictures: Won't Delete
-----------------------------------
Here you go: confirm_body.tpl from Hierarchy_pro template:

[code]{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">&nbsp;</td>
		<td class="thl-2" nowrap="nowrap">&nbsp;</td>
		<td class="thm-1" align="center"><span class="thtitle"><img src="{I_CRM_QUESTION}" alt="" align="top" border="0" />&nbsp;{MESSAGE_TITLE}</span></td>
		<td class="thr-2" nowrap="nowrap">&nbsp;</td>
		<td class="thr-1" nowrap="nowrap">&nbsp;</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}" />&nbsp;&nbsp;<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" />&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>
			<!-- 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 -->[/code]

CHMOD is now correct.  I'll wait to see if I get this error again.


-----------------------------------
Artie
Wed 09 May, 2007 00:15

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 [b]Yes[/b] or [b]No[/b] to [b]Are you sure to delete these pic(s)?[/b]

View the source here and see it is where it is directing you to when clicking Yes or No.

Should see something like this: 
[highlight=#FFFFAA]form action="album_delete.php?pic_id=[i]XX[/i][/highlight] and [highlight=#FFFFAA]input type="submit" name="confirm" value="Yes"[/highlight] and [highlight=#FFFFAA]input type="submit" name="cancel" value="No"[/highlight]


-----------------------------------
ignorantnewguy
Wed 09 May, 2007 08:17

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

Re: Deleting Pictures: Won't Delete
-----------------------------------
From your browser choose to [b]View[/b] the [b]Page Source[/b]  and look at the html code of the page.


-----------------------------------
ignorantnewguy
Wed 09 May, 2007 23:49

Re: Deleting Pictures: Won't Delete
-----------------------------------
[quote user="Artie" post="13724"]Should see something like this: 
[highlight=#FFFFAA]form action="album_delete.php?pic_id=[i]XX[/i][/highlight] and [highlight=#FFFFAA]input type="submit" name="confirm" value="Yes"[/highlight] and [highlight=#FFFFAA]input type="submit" name="cancel" value="No"[/highlight][/quote]

I have the following:

[code linenumbers=false]<tr><form action="album_delete.php?pic_id=10" method="post">[/code]

and this

[code linenumbers=false]<left><input class="mainoption" type="submit" value="Search" /></left></span>[/code]

and this

[code linenumbers=false]<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>[/code]

That seems to have all the particular sets of code in there.


-----------------------------------
Artie
Fri 11 May, 2007 00:12

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.


