PHP Thumb » Help & Bugs

Fatal error Call to a member function adaptiveResize() on a non-object

(8 posts)
  1. infowire
    Member

    I moved my servers from a DDS to a VDS... same OS and everything. And for some reason cropping does not work now. I get an error:

    "Fatal error: Call to a member function adaptiveResize() on a non-object in /home/millen/public_html/crop.php on line 18"

    http://www.millenniumsunrooms.com/crop.php?pic=sunrooms/photo/11.jpg

    crop.php looks like this:

    <?php
    $pic = $_GET['pic'];

    require_once 'ThumbLib.inc.php';

    try
    {
    $thumb = PhpThumbFactory::create($pic);
    }
    catch (Exception $e)
    {
    // handle error here however you'd like
    }

    $thumb->adaptiveResize(238, 232);
    $thumb->show();

    ?>

    I copied all the files over exactly the way they were.

    New Server: http://66.90.103.163/~millen/info.php

    Old Server: http://66.90.104.118/~falcon/info.php

    It is supposed to re-size this picture:
    http://www.millenniumsunrooms.com/sunrooms/photo/11.jpg

    Where is the problem ??

    Thank You In Advance

    Posted 2 years ago #
  2. infowire
    Member

    Oops i mixed up in the previous post, the New Server is supposed to be the old server and old the new.

    Here is a link to the old server showing that crop works:

    http://66.90.103.163/~millen/crop.php?pic=sunrooms/photo/11.jpg

    Posted 2 years ago #
  3. Well, you're burying exceptions, so the first thing I'd do is put something in the catch block... could be as simple as:

    echo $e->getMessage();
    exit;

    Give that a shot and post the error message you're getting (if any) and we'll take it from there :)

    Posted 2 years ago #
  4. infowire
    Member

    I get is

    You must have either the GD or iMagick extension loaded to use this library

    and i have GD installed.... my php info says i do.

    Posted 2 years ago #
  5. infowire
    Member

    im updating Apache and made sure gd is checked its recompiling now hopefully that solves the prob.

    Posted 2 years ago #
  6. infowire
    Member

    fixed after new build of apache.

    Posted 2 years ago #
  7. good deal, glad you got squared away

    Posted 2 years ago #
  8. leafy34
    Member

    It might be worth mentioning that an incorrect path/to/image, I have found atleast, is the cause of this error.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.