PHP Thumb » Help & Bugs » Bugs

PHP Version 5.3.0 Issues

(5 posts)
  1. shockerusa
    Member

    Hello,

    In my error log, I'm getting these errors. The result of this, is that the plugins don't work anymore.

    PHP Notice: Undefined index: JPG Support in /home/images/public_html/functions/GdThumb.inc.php on line 1080

    and

    PHP Warning: Parameter 6 to GdReflectionLib::createReflection() expected to be a reference, value given in /home/images/public_html/functions/ThumbBase.inc.php on line 197

    Any ideas how to fix these issues?

    Notes: I'm using your latest version.
    PHP 5.3
    GD 2.0.34

    Thanks,

    Justin

    Posted 11 months ago #
  2. I thought I'd nailed down the issue with the "jpg" vs "jpeg" in the library... looks like that's not the case. Can you go ahead and file a ticket about these issues so I can take a look into it (I'll likely forget about it if it's just here in the forums).

    Here's the link to create a ticket: http://trac.gxdlabs.com/projects/phpthumb/newticket

    Posted 11 months ago #
  3. shockerusa
    Member

    Ticket submitted.

    Thanks,

    Justin

    Posted 11 months ago #
  4. mcangel
    Member

    about this error:
    PHP Notice: Undefined index: JPG Support in /home/images/public_html/functions/GdThumb.inc.php on line 1080
    if you don't want to wait for new release you just can fix it by yourself if don't know how look below:
    open file GdThumb.inc.php find
    case 'JPG':
    on 1078 line and add
    if (phpversion() >= "5.3.0") $this->format = 'JPEG';
    after it, then insert
    if ($this->format == 'JPEG') $this->format = 'JPG';
    between
    $isCompatible = $gdInfo[$this->format . ' Support'];
    and
    break;
    and I think that from this next part of code
    if (!$isCompatible)
    {
    // one last check for "JPEG" instead
    $isCompatible = $gdInfo['JPEG Support'];

    if (!$isCompatible)
    {
    $this->triggerError('Your GD installation does not support ' . $this->format . ' image types');
    }
    }

    you can save only this part
    if (!$isCompatible)
    {
    $this->triggerError('Your GD installation does not support ' . $this->format . ' image types');

    Posted 11 months ago #
  5. for this error:

    PHP Warning: Parameter 6 to GdReflectionLib::createReflection() expected to be a reference, value given in ThumbBase.inc.php on line 197

    - go on that line (197)
    - look at the previous one (196)

    change it from:

    $args[] = $this;

    to:

    $args[] = &$this;

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.