Warning: imagecreatetruecolor

Moresi
Moresi
Offline
0
Hello,
I imported an Album from Discogos and then I assigned a picture. The picture is a JPG with a dimension of 300x300 (18 KB).

If you look this site

http://www.musicalatina.net/component/muscol/l/1-jennifer-lopez/1-love

You will see this error:

======================================================================
Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /var/www/virtual/musicalatina.net/htdocs/components/com_muscol/helpers/graphics.php on line 111

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /var/www/virtual/musicalatina.net/htdocs/components/com_muscol/helpers/graphics.php on line 114

Warning: imagejpeg(): supplied argument is not a valid Image resource in /var/www/virtual/musicalatina.net/htdocs/components/com_muscol/helpers/graphics.php on line 120
======================================================================

How to remove these warnings?
Responses (2)
  • Accepted Answer

    Wednesday, July 04 2012, 09:24 PM - #Permalink
    0
    oh, sorry about that.
    you need to put this on file /components/com_muscol/helpers/graphics.php line 2:

    error_reporting(0);

    can you do that?
    The reply is currently minimized Show
  • Accepted Answer

    Moresi
    Moresi
    Offline
    Thursday, July 05 2012, 08:23 AM - #Permalink
    0
    Thank you for the fast reply. OK, problem solved. I could modify myself the code...
    The reply is currently minimized Show
Your Reply