I bumped into an error with the thumbnail generator for some Joomla library.
Each of the images generated would not having any image info inside but having error message instead.
So, upon checking , can’t trace from the log file.
I did tried to open up the file using the text edit , and found out it had the following content
instead of image data.
When can be read out as :
Warning : trim() expects parameter 1 to be string , resource given in /path/to/filename.php on line
Upon checking the said filename ,
found out it is using trim() function for php.
and these is just a warning message , not an error.
one of the quick solution is suppress the warning message by adding the following line before that line.
error_reporting(0);
$path = trim($path);
After that, the thumbnail was generated perfectly again.. :)
or maybe can also use something similar as below ( ** UNTESTED ** ):
Here are five key communication skills that help you speak with clarity and influence: Speak…
Are you ready to unlock your full potential as a man?Discover powerful insights, real-life transformations,…
One day we will set aside one whole day to review the whole lesson we…
Last weekend, 07/12/2024 I managed to join Dev Fest Kuala Lumpur 2024, organized by Google…
TIPS BACAAN AL-QURANOleh: Dr. Muhd al-Muhaysni.1. Jangan engkau berikan (fokus membaca) al-Quran pada lebihan waktumu…
Selawat yang ringkas, yang mana apabila kamu membacanya satu kali sebanding 100 ribu kali, jadi…
Leave a Comment