1
jjkaotw
news v1.67: problem for uploading image files
  • 2012/10/10 5:36

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


I installed the news module v1.67 on my XOOPS2.5.5.
When I upload an image file, e.g. a png file,
the file is successfully uploaded into $XOOPS_ROOT_PATH/uploads/news/image/,
but the web session is terminated.
I check the program, it seems the program is terminated
during converting the image file into a pre-specified max size.
But I donot know how to resolve the problem.

If anyone knows how to resolve this problem, please help.
Thank you.

-- jjkao

2
zyspec
Re: news v1.67: problem for uploading image files
  • 2012/10/10 12:53

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


If the png file is big the script may be timing out. You might need to adjust the max_execution_time value. If you can use .htaccess files you might try and add:

php_value max_execution_time 200


to your .htaccess file to see if that solves your problem - but note, this will let your code run for 200 seconds before failing so it might let you overflow your memory limits - which will cause other problems... It's best to use smaller .png files by reducing the max size of the .png file allowed if possible.

3
jjkaotw
Re: news v1.67: problem for uploading image files
  • 2012/10/11 4:38

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


Thanks a lot for your kindly help.

I increased the execution time to 200, but it did not resolve the problem.

The error mesage is the same: "The website cannot display the page HTTP 500."

jjkaotw

4
jjkaotw
Re: news v1.67: problem for uploading image files
  • 2012/10/14 2:13

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


I checked submit.php and the problem occurred while
calling the following function:
news_resizePicture($fullPictureName, $newName, $xoopsModuleConfig['maxwidth'], $xoopsModuleConfig['maxheight']);

Uploaded ok, but not sure why can not be resized?

Is it a SElinux problem?

jjkaotw

Login

Who's Online

274 user(s) are online (169 user(s) are browsing Support Forums)


Members: 0


Guests: 274


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits