coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: SpArKs on October 02, 2006, 07:36:19 PM

Title: Cant upload - The previous file could not be placed.
Post by: SpArKs on October 02, 2006, 07:36:19 PM
Hey, my first time using coppermine and have got this error. No clue how to fix it lol.

When i try uploading a file it says that the upload was successfull, though when i click continue i get this message:

"The previous file could not be placed.

You have successfully placed all the files."


Could someone give me a breif step by step guide on how to fix it please? any help is greatly appreciated, thanks.

www.ff-hq.net/gallery
Title: Re: Cant upload - The previous file could not be placed.
Post by: Sami on October 02, 2006, 07:45:12 PM
Do exacly as suggested under this doc.:
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Title: Re: Cant upload - The previous file could not be placed.
Post by: SpArKs on October 02, 2006, 07:52:32 PM
ok i tried that, and now i get this error message. Again i haven't a clue what it means, sorry for being a noob :(

Critical error
The file 'albums/userpics/spnova~4.gif' can't be inserted in the album

Error executing ImageMagick - Return value: 127


Cmd line :
convert -quality 80 -antialias -geometry 100x75 'albums/userpics/spnova~4.gif' 'albums/userpics/thumb_spnova~4.gif'



The convert program said:



File: /home/sparks05/public_html/gallery/db_input.php - Line: 402



The test account uname: test
pass: test

Title: Re: Cant upload - The previous file could not be placed.
Post by: kegobeer on October 02, 2006, 08:00:55 PM
Either you don't have ImageMagick, or it isn't properly configured.  Switch your method to resize pics to GD2.
Title: Re: Cant upload - The previous file could not be placed.
Post by: SpArKs on October 02, 2006, 08:53:06 PM
ok i did that and it works now, thanks alot.


but now for a different but related error. I'm using a custom theme and when i upload a pic, it uploads sucessfully but i get a "template error". I've spent a bit of time trying to improve this theme so it would be quite gay to have to switch to a different one, unless we have to of course. I can handle a little HTML, though i don't know anything about coppermine themeing. The same error page comes up when you click the thumbnail under Random Files/Last additions.

This is the error page we get:

Template error
Failed to find block 'report_file_button'(#(<!-- BEGIN report_file_button -->)(.*?)(<!-- END report_file_button -->)#s) in :

        <tr>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="images/folder.gif" width="16" height="16" align="absmiddle" border="0" alt="{THUMB_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" alt="{PIC_INFO_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}"><img src="images/slideshow.gif" width="16" height="16" border="0" align="absmiddle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" witdh="100%">
                        {PIC_POS}
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" title="{ECARD_TITLE}"><img src="images/ecard.gif" width="16" height="16" border="0" align="absmiddle" alt="{ECARD_TITLE}"></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="images/prev.gif" width="16" height="16" border="0" align="absmiddle" alt="{PREV_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="images/next.gif" width="16" height="16" border="0" align="absmiddle" alt="{NEXT_TITLE}" /></a>
                </td>
        </tr>




Anyone have any ideas?

thanks for the help btw, really couldn't have done it on my own.
Title: Re: Cant upload - The previous file could not be placed.
Post by: watchman on October 02, 2006, 10:36:07 PM
Quote from: Sami on October 02, 2006, 07:45:12 PM
Do exacly as suggested under this doc.:
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble

I'm having the same problem. I followed your instructions above. Here is the output I got from the debugger. It's Greek to me as far as spotting the problem:

USER:
------------------
Array
(
    [ID] => 1df25e5325e0829cbf1d30a0bfadbf3a
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => bmurch
    [groups] => Array
        (
           
Title: Re: Cant upload - The previous file could not be placed.
Post by: Nibbler on October 02, 2006, 10:39:46 PM
SpArKs - your original issue is solved, start a new thread for a new issue.
watchman - make your own thread after reading the troubleshooting guide and doing exactly as suggested there.

Locking.