Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

XMLAPI Email:storefilter no error, but doesnt save

Discussion in 'cPanel Developers' started by cornfeedhobo, Dec 8, 2011.

  1. cornfeedhobo

    cornfeedhobo Member

    Joined:
    Dec 2, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    So I am pretty stumped. I am storing a filter and it says successful but then it just resets everything to null. As if I made a filter, gave it a name, and just hit save...

    array(9) {
    ["account"]=> string(34) "test@domain.org"
    ["filtername"]=> string(8) "sdfgsdfg"
    ["oldfiltername"]=> string(8) "sdfgsdfg"
    ["action"]=> string(4) "save"
    ["dest"]=> string(5) "INBOX"
    ["match"]=> string(2) "is"
    ["opt"]=> string(2) "or"
    ["part"]=> string(13) "$header_from:"
    ["val"]=> string(6) "234234"
    }
    array(1) {
    [0]=> array(1) {
    ["cpanelresult"]=> array(5) {
    ["data"]=> array(1) {
    [0]=> array(4) {
    ["error"]=> int(0)
    ["result"]=> string(13) "Filter Saved."
    ["account"]=> string(34) "test@domain.org"
    ["ok"]=> int(1)
    }
    }
    ["event"]=> array(1) {
    ["result"]=> int(1)
    }
    ["module"]=> string(5) "Email"
    ["apiversion"]=> int(2)
    ["func"]=> string(11) "storefilter"
    }
    }
    }

    xmlapi->api2_query(<cpaneluser>, 'Email', 'storefilter', $request);

    Let me know if I can post up anything else of value.
    This is the last thing standing in my way of finishing this plugin :-D
    Thanks in advance
    -cornfeedhobo
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Can you do a print_r on $request just before you call the api2_query function? That would be useful with assisting. Or is that what you posted there in your post?
     
  3. cornfeedhobo

    cornfeedhobo Member

    Joined:
    Dec 2, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Thank you, I solved my problem already.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice