Upload Header Image Fail

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

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
waluyo
Posts: 64
Joined: Wed Mar 14, 2012 4:46 pm
Location: UTHM - Malaysia

Upload Header Image Fail

Postby waluyo » Tue Mar 12, 2013 1:01 am

Previously I have defined an image for the conference header.
Since I want to change the new image, then I delete.
Now I cannot upload any image file, always

Code: Select all

Errors occurred processing this form:
Invalid homepage header title image format or upload failed. Accepted formats are .gif, .jpg, or .png.


I am really confused I have deleted the header, but I cannot replace the new one.
How can I solve this problem?

regards
waluyo

waluyo
Posts: 64
Joined: Wed Mar 14, 2012 4:46 pm
Location: UTHM - Malaysia

Re: Upload Header Image Fail

Postby waluyo » Tue Mar 12, 2013 1:17 am

Oh.. I am sorry, just found the solution.
http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=9456&p=36651&hilit=mime_magic#p36651

for OCS, /ocs/lib/pkp/classes/core/String.inc.php
changed:
from

Code: Select all

if (function_exists('mime_content_type')) {

to

Code: Select all

if (false && function_exists('mime_content_type')) {


then, I can upload image file again.

regards
waluyo


Return to “OCS Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 1 guest