Ad Widget

Collapse

Create Image issue Zabbix 1.6/Oracle 10g

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • macleung
    Junior Member
    • Oct 2008
    • 2

    #1

    Create Image issue Zabbix 1.6/Oracle 10g

    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.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Thanks for reporting this, registered as ZBX-549.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    Working...