coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: pretty-inside on December 12, 2005, 08:10:59 AM

Title: Images show up as a red x...
Post by: pretty-inside on December 12, 2005, 08:10:59 AM
I've tried to upload both FTP and HTTP, and both times the images show up as red x's.  I have all the permissions set, and I did the troubleshoot thing and got this message:

Sorry there is no album where you are allowed to upload files

File: /home/amour20/public_html/pretty-inside/vpgallery/upload.php - Line: 864

And the image was still a red X.

Here is the debug:

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

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => paradis
    [groups] => Array
        (
           
Title: Re: Images show up as a red x...
Post by: Joachim Müller on December 12, 2005, 08:30:28 AM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Title: Re: Images show up as a red x...
Post by: pretty-inside on December 12, 2005, 08:49:04 AM
When I created a test account and tried to upload, I got these messages:

upload.php
Notice line 2181: Undefined index: user1
Notice line 2182: Undefined index: user2
Notice line 2183: Undefined index: user3
Notice line 2184: Undefined index: user4
/include/picmgmt.inc.php
Notice line 205: Undefined index: OS
Notice line 210: Undefined variable: retval
Warning line 210: exec() has been disabled for security reasons
Notice line 214: Undefined variable: retval
Warning line 277: chmod(): No such file or directory
Warning line 279: getimagesize(albums/userpics/10002/thumb_b2.jpg): failed to open stream: No such file or directory
Warning line 282: unlink(albums/userpics/10002/thumb_b2.jpg): No such file or directory
Title: Re: Images show up as a red x...
Post by: Joachim Müller on December 12, 2005, 08:55:13 AM
those are notices, not errors. Disable notices_display if they don't mean anything to you. Do  as suggested instead on the page I refered to.
Title: Re: Images show up as a red x...
Post by: pretty-inside on December 12, 2005, 08:56:51 AM
Oh, I set group permissions and I got this:

The file 'albums/userpics/10002/misc30.jpg' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /home/amour20/public_html/pretty-inside/vpgallery/db_input.php - Line: 391

I found a few links that might help me with that
Title: Re: Images show up as a red x...
Post by: Abbas Ali on December 12, 2005, 08:59:32 AM
Quote from: pretty-inside on December 12, 2005, 08:49:04 AM
Warning line 210: exec() has been disabled for security reasons

This gives hint that you are using image magick for creating thumbnails. But exec() has been disbaled by your webhost. Either ask you webhost to enable that function or switch to gd. However switching to gd is recommended.


Abbas
Title: Re: Images show up as a red x...
Post by: pretty-inside on December 12, 2005, 09:14:41 AM
Hey, I fixed it!  Thanks very much  :)