OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Uploading PNG file error, other Image errors

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Uploading PNG file error, other Image errors

Postby thetwentyone » Wed Oct 27, 2010 4:36 pm

When trying to upload a .png file for any of the Header/Logos/Titles, OJS returns the error "Invalid homepage header title image format or upload failed. Accepted formats are .gif, .jpg, or .png."

Uploading a .jpg does not return an error, but the image does not display. It displays one of those "image is supposed to be here but isn't" pictures (a blue x in Safari or broken file in Chrome).

I've tried clearing browser cache, Data Cache, and Template Cache.

Any ideas?
thetwentyone
 
Posts: 9
Joined: Tue Oct 26, 2010 9:21 pm

Re: Uploading PNG file error, other Image errors

Postby jmacgreg » Thu Oct 28, 2010 2:46 pm

Hi thetwentyone,

Which version of OJS are you using, and what's your PHP version as well?

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: Uploading PNG file error, other Image errors

Postby thetwentyone » Thu Oct 28, 2010 5:31 pm

OJS version 2.3.3.2 and PHP 5.2.10

Thanks,
thetwentyone
thetwentyone
 
Posts: 9
Joined: Tue Oct 26, 2010 9:21 pm

Re: Uploading PNG file error, other Image errors

Postby jmacgreg » Fri Oct 29, 2010 10:48 am

Hi thetwentyone,

Hrm, I can't replicate this. Are you sure files are being identified properly on your site? See this FAQ entry for troubleshooting information. (I'm assuming that you aren't having problems uploading files that aren't being checked for filetype.)

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: Uploading PNG file error, other Image errors

Postby max » Fri Oct 29, 2010 2:57 pm

Hi James,

Im working with thetwentyone on this, the section of the sight for journal submissions is properly checking for filetype as is another script we were previously using for file submissions before switching to OJS so I don't think it has to do with that.

Any insight is greatly appreciated thanks,
Max
max
 
Posts: 1
Joined: Fri Oct 29, 2010 2:52 pm

Re: Uploading PNG file error, other Image errors

Postby mcrider » Thu Nov 04, 2010 2:42 pm

Hi thetwentyone,

I've tested on php 5.2.6 and basically the same OJS version as yours, and can't replicate either. Are you sure the images you are using are correctly formed? Have you tried other images, e.g. one's you've downloaded off of the web?

Cheers,
Matt
mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: Uploading PNG file error, other Image errors

Postby nino » Mon Jan 28, 2013 1:23 am

Is this isssue fixed now? I have exactly the same problem!
nino
 
Posts: 1
Joined: Mon Jan 28, 2013 1:19 am

Re: Uploading PNG file error, other Image errors

Postby roscao » Tue Feb 05, 2013 2:12 am

I also have the same problem, cannot upload a logo image (gif).
Rosca Bogdan
roscao
 
Posts: 3
Joined: Wed Aug 08, 2012 1:30 am

Re: Uploading PNG file error, other Image errors

Postby asmecher » Tue Feb 05, 2013 10:19 am

Hi all,

There are numerous threads in image format identification problems like the one posted here, including in the FAQ. Please investigate those first, and if they don't resolve the problem, post what you've tried and the results you got.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9049
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 4 guests