Publishing boolean

thugsb's Avatar

thugsb

07 Aug, 2012 02:32 PM

I see that you've added an "unpublish" boolean option to the WSDL. However, it seems to be causing problems for me.

First, it says it's optional, yet when I try to run a script without setting it, it gives me this error: http://d.pr/i/tGdu

Secondly, when I am including "'unpublish' => 'false'", it seems to be unpublishing some of my configs, rather than publishing them. This is the script I'm using: http://github.com/thugsb/wsdl-cascade/blob/master/publishCatalogueD...

  1. 1 Posted by thugsb on 07 Aug, 2012 03:02 PM

    thugsb's Avatar

    Hmm, weird. I wonder if this is a problem with the page. The page in question has 5 publishable configurations: http://d.pr/i/upDg
    However, when I try to publish the page, it only shows 4: http://d.pr/i/aFuc

    Is there a maximum of publishing 4 configurations? When I publish the page, or the site it's located in (via Cascade GUI), all the configurations are published correctly. It's just WSDL that's not working.

  2. 2 Posted by Ryan Griffith on 07 Aug, 2012 04:07 PM

    Ryan Griffith's Avatar

    Hi thugsb,

    First, it says it's optional, yet when I try to run a script without setting it, it gives me this error...

    We have a known defect logged for this flag not properly defaulting to false and causing the error message you encountered. Feel free to track its progress to see if it is resolved in a future version of Cascade.

    Secondly, when I am including "'unpublish' => 'false'", it seems to be unpublishing some of my configs, rather than publishing them.

    Does this seem to only occur for this specific page, or all pages?

    Is there a maximum of publishing 4 configurations? When I publish the page, or the site it's located in (via Cascade GUI), all the configurations are published correctly. It's just WSDL that's not working.

    There shouldn't be a maximum number of configurations. Let me see if our developers could take a look into this behavior and see if they can provide any insight.

    Please let us know if you have any questions.

    Thanks.

  3. 3 Posted by thugsb on 07 Aug, 2012 04:34 PM

    thugsb's Avatar

    | Does this seem to only occur for this specific page, or all pages? It seems to be just for some configs of certain pages. It doesn't unpublish other configs.

    Thanks for contacting the devs for me.

  4. Support Staff 4 Posted by Tim on 09 Aug, 2012 09:14 PM

    Tim's Avatar

    Hi,

    When you have a chance, can you try changing your code from:

    'unpublish' => 'false'
    

    to:

    'unpublish' => false
    

    We are curious to see if it behaves any differently.

    Let us know what you find.

    Thanks!

  5. 5 Posted by thugsb on 10 Aug, 2012 01:02 PM

    thugsb's Avatar

    Ah yes, that makes the difference. Thanks!

  6. thugsb closed this discussion on 10 Aug, 2012 01:02 PM.

  7. thugsb re-opened this discussion on 10 Aug, 2012 01:05 PM

  8. 6 Posted by thugsb on 10 Aug, 2012 01:06 PM

    thugsb's Avatar

    So that solves that part, but do you have any idea why the GUI is only showing 4 publishable configs, instead of the 5 the page has? Thanks!

  9. 7 Posted by thugsb on 10 Aug, 2012 01:07 PM

    thugsb's Avatar

    Haha, wait, sorry - someone had made the 1 config unpublishable! Doh!

  10. thugsb closed this discussion on 10 Aug, 2012 01:07 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac