Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 171
Total: 171

Author Topic: Error - Not a valid picture file  (Read 7961 times)

0 Members and 1 Guest are viewing this topic.

Offline surelaris

  • Member
  • *
  • Posts: 20
    • View Profile
Error - Not a valid picture file
« on: June 07, 2008, 08:24:14 am »
Hi,

Error msg while uploading new photo " Not a valid picture file " . FYI, the image file is " jpg and gif "

It's happend since last week. Don't know what happend, before that it's running fine without any problem.

Pls help

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Error - Not a valid picture file
« Reply #1 on: June 07, 2008, 08:44:24 am »
Sometimes some images are corrupt and do not work with GD. Check your forum's error log. usually it is caused by this issue. If not attach the image to this post and I can upload it to my gallery and see what error I get back.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline surelaris

  • Member
  • *
  • Posts: 20
    • View Profile
Re: Error - Not a valid picture file
« Reply #2 on: June 07, 2008, 10:58:06 am »
Hi,

This is the image. u can try to upload it.

or

u can try to upload to my forum site. http://www.onlinecafe.com.my

Thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Error - Not a valid picture file
« Reply #3 on: June 07, 2008, 11:11:32 am »
That image worked on my test site.

Are you able to upload any images into the gallery?

Are there any errors in the forum's error log?

Check under Admin -> Support and Credits and see if GD is installed
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline briankstan

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: Error - Not a valid picture file
« Reply #4 on: June 08, 2008, 01:20:25 am »
I'm also getting this error now,  since my hosting change.   I have check and I have GD installed.... GD version: bundled (2.0.34 compatible)

it will upload a smaller size .jpg picture, but no a lagre one.
« Last Edit: June 08, 2008, 01:38:57 am by briankstan »

Offline briankstan

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: Error - Not a valid picture file
« Reply #5 on: June 08, 2008, 02:58:36 am »
I was able to fix it by adjusting the setting in the php.ini file

thanks.

Offline Glenfiddich

  • Member
  • *
  • Posts: 2
    • View Profile
Re: Error - Not a valid picture file
« Reply #6 on: June 27, 2008, 03:53:00 am »
Hi Brian, can you share what setting you changed in php.ini?

Offline briankstan

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: Error - Not a valid picture file
« Reply #7 on: June 27, 2008, 09:41:35 am »
Hi Brian, can you share what setting you changed in php.ini?

here are the lines I changed  the changes I made are in red,  the just increase the time and size limits.  it was timing out and giving me the error.  this fixed it.

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 50M

and

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 300     ; Maximum execution time of each script, in seconds
max_input_time = 600   ; Maximum amount of time each script may spend parsing request data
memory_limit = 50M      ; Maximum amount of memory a script may consume (50MB)

Offline Glenfiddich

  • Member
  • *
  • Posts: 2
    • View Profile
Re: Error - Not a valid picture file
« Reply #8 on: July 05, 2008, 04:24:02 pm »
thanks, i had filesize and exec time fixed but not memory and input

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
8744 Views
Last post June 17, 2007, 05:46:04 pm
by SMFHacks
9 Replies
7740 Views
Last post August 04, 2007, 03:21:00 pm
by veldfire
6 Replies
8149 Views
Last post April 02, 2008, 07:35:24 pm
by SMFHacks
1 Replies
4327 Views
Last post October 09, 2008, 07:45:11 pm
by SMFHacks
6 Replies
7366 Views
Last post March 02, 2009, 07:11:17 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal