Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: solved: PHP 5.4.9 event and location pictures not displayed

solved: PHP 5.4.9 event and location pictures not displayed 11 years 10 months ago #19497

  • nfj-admin
  • nfj-admin's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Hi all,

I've made tests with dtregister and PHP 5.4.9 since our webhoster 1&1 won't support PHP 5.2 any more April 1st 2013 - and I have good news: :D

During the holidays, I was able to debug the problem with event and location pictures not displayed when PHP 5.4.9 is enabled (DTRegister 2.8.4) on our homepage http://www.nfj-hannover.de

First: the problem I described in the thread "DTRegister doesn't work with PHP 5.4.9" in this forum apply's ONLY to JPG files. GIF and PNG file's are still working.

Second: I found in "/components/com_dtregister/lib" the file "thumbnail.inc.php" which generates the thumbnails. This file has a public function in line 691:
"puplic function show($quality=100,$name = '') {...
header('Content-type: image/jpeg');
ImageJpeg($this->newImage,'',$quality)....; " which displays the JPG image.

I changed ImageJpeg($this->newImage,'',$quality);
to ImageJpeg($this-newImage,NULL,$quality); !!!! NULL seems to be imporant! and that was the solution.

I'm not sure, but I suppose that PHP 5.4.9 doesn't accept the apostrophes in the "ImageJpeg" function, the function "ImageJpeg" expects NULL as second Operator when no file is specified.

Website is now running stable with PHP 5.4.9 and I hope, my post will help other customers who stumble into the same problem.

Would also be glad, if the Admin staff of Dtregister would respond to my
post.

Regards,
Stefan

Please Log in or Create an account to join the conversation.

solved: PHP 5.4.9 event and location pictures not displayed 11 years 10 months ago #19500

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Hi Stefan.

Thank you for the update. It was on our list for testing next month. I will let our developers know what you discovered. Thank you again.

Rich

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.101 seconds