I have the strangest error, and I can't seem to solve it. I have tracked down the error to this function call
$image->getImageID()
where $image is an instance of a class 'Image'. However, I get the error
Fatal error: Call to a member function getImageID() on a non-object in /Applications/MAMP/htdocs/kittens.php on line 51
To debug, I did this:
PHP Code:
echo '<pre>' . print_r($image, true) . '</pre>';
and I get a correct output of the whole object, telling me that it is indeed an Image object.
Code:
Image Object
(
[imageID:protected] => 138
[mimeType:protected] => image/png
[name:protected] => 2n4wSPCG2jeqrsE4ljD8Q7mu1y0ENm
[uploaded:protected] => 2009-09-30 15:36:57
[width:private] => 515
[height:private] => 489
[fields:protected] => Array
(
[imageID] =>
[mimeType] => 1
[name] => 1
[uploaded] =>
)
[id:protected] => imageID
)
If I change that row to
PHP Code:
echo '<pre>' . print_r($image->getImageID(), true) . '</pre>';
(or any other function which this class have) I get the same error again.
Any ideas?
__________________
34343639363436653237373432303635373837303635363337 34323037343638363137343263323036343639363432303739 366637353366
|