Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Can't add screenshots to photo album

Asked Modified Viewed 3,847 times
C
CrueTrue
C
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Junior Member

Hello everyone,

I'm experiencing a few problems when accepting a user submitted screenshot to the photo album:

Quote

s_1577.jpg
Warning: copy(../images/photoalbum/album_5/s_1577.jpg) [function.copy]: failed to open stream: No such file or directory in /teras/upload/administration/submissions.php on line 356

Warning: chmod() [function.chmod]: No such file or directory in /teras/upload/administration/submissions.php on line 357

Fatal error: Call to undefined function imagesx() in /teras/upload/includes/photo_functions_include.php on line 28


First of all, I don't get why it's trying to copy from /album_5/, since the screenshots are obviously uploaded to photoalbum/submissions -- it's no wonder it can't find the file when it's searching the wrong place.

Any help here?

Thanks a lot.
0 replies

12 posts

G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Quote

Warning: chmod() [function.chmod]:

Check to see if all the folders that are supposed to be chmodded are chmodded correctly. And focus on /images and /images/photoalbum being chmodded to 777 correctly.
0 replies
C
CrueTrue
C
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Everything is chmodded as it should be. Thanks, though.
0 replies
C
CrueTrue
C
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

*bump*
0 replies
H
heavencore
H
Semper in excremento sum, sed solum profunditas mutat...
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

the fact imagesx() is being classed as an undefined function wont be helping (its the GD function that checks the width of an image), Check you have GD compiled into your PHP installation/configuration (a quick check of your php configuration should give you this info)

 phpinfo();
0 replies
C
CrueTrue
C
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Thanks for your response.

Can you tell me what exactly to look for in phpinfo?
0 replies
X
Xessive
X
I am not always right, but I'm never wrong.
http://www.xessive.nl
  • Senior Member, joined since
  • Contributed 327 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

Search for GD.
Below that is a table with info about this lib.

Can you upload any picture at all??
0 replies
C
CrueTrue
C
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

There's no results when searching for GD.

http://pcmdaily.com/info.php
Edited by CrueTrue on 10-08-2008 17:22,
0 replies
F
Falk
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

You seem to lack GD support wich is required for the resize functions.
You need to contact your ISP about how to get that implemented.
0 replies
C
CrueTrue
C
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Thanks.

After having installed GD support, I now get the following errors:

Quote

dog.jpg
Warning: copy(../images/photoalbum/album_13/dog.jpg) [function.copy]: failed to open stream: No such file or directory in /teras/upload/administration/submissions.php on line 356

Warning: chmod() [function.chmod]: No such file or directory in /teras/upload/administration/submissions.php on line 357

Notice: Undefined variable: origimage in /teras/upload/includes/photo_functions_include.php on line 28

Warning: imagesx(): supplied argument is not a valid Image resource in /teras/upload/includes/photo_functions_include.php on line 28

Notice: Undefined variable: origimage in /teras/upload/includes/photo_functions_include.php on line 29

Warning: imagesy(): supplied argument is not a valid Image resource in /teras/upload/includes/photo_functions_include.php on line 29

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /teras/upload/includes/photo_functions_include.php on line 51

Notice: Undefined variable: origimage in /teras/upload/includes/photo_functions_include.php on line 52

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /teras/upload/includes/photo_functions_include.php on line 52

Warning: touch() [function.touch]: Unable to create file ../images/photoalbum/album_13/dog_t1.jpg because No such file or directory in /teras/upload/includes/photo_functions_include.php on line 55
0 replies
C
CrueTrue
C
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Still no ideas on how to solve this?
0 replies
C
CrueTrue
C
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Yet another week has passed, making it legal for me to write: bump :P
0 replies
C
CrueTrue
C
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Arh, I finally fixed it.

A long story short, it's related to safe mode configuration. These changes did the trick in V6: http://flyingduck.dk/forum/viewthread.php?forum_id=20&thread_id=38

But in V7, you also have to make the same change in administration/submissions.php

There you go, problem fixed.

Thanks anyway, though.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 12 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

F
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
X
X
I am not always right, but I'm never wrong.
http://www.xessive.nl
  • Senior Member, joined since
  • Contributed 327 posts on the community forums.
  • Started 4 threads in the forums
H
H
Semper in excremento sum, sed solum profunditas mutat...
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 6 threads in the forums
G
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
C
C
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet