Hello,
I encounter "Couldn't save image" error when using [Create Image] to add an icon even when the icon is actually inserted into the images table successfully.
I traced this error message and it's coming from add_image function inside the frontend code /http_doc_root/include/images.inc.php
So I changed, inside the add_image function
from
if(DBend($lobimage->save($image))){
error("Couldn't save image!\n");
return false;
to
if(!DBend($lobimage->save($image))){
error("Couldn't save image!\n");
return false;
and it's not complaining anymore.
Just wonder if anyone encounter this one before. Whether the fix I put in is correct and do I need to add
$lobimage->free();
OCIFreeStatement($stid);
before the "return false;" to free up memory
Thanks a lot
Mac
My setup is : Zabbix 1.6/Oracle 10g.
I encounter "Couldn't save image" error when using [Create Image] to add an icon even when the icon is actually inserted into the images table successfully.
I traced this error message and it's coming from add_image function inside the frontend code /http_doc_root/include/images.inc.php
So I changed, inside the add_image function
from
if(DBend($lobimage->save($image))){
error("Couldn't save image!\n");
return false;
to
if(!DBend($lobimage->save($image))){
error("Couldn't save image!\n");
return false;
and it's not complaining anymore.
Just wonder if anyone encounter this one before. Whether the fix I put in is correct and do I need to add
$lobimage->free();
OCIFreeStatement($stid);
before the "return false;" to free up memory
Thanks a lot
Mac
My setup is : Zabbix 1.6/Oracle 10g.
Comment