Hello,
I had my PHP API script working to add/update pages in confluence, but recently I have been getting this when adding a page:
PHP Fatal error: Uncaught exception 'XmlRpcClientException' with message 'java.lang.Exception: java.lang.IllegalArgumentException: Can't add a parent from another space.'
Any ideas?
Community moderators have prevented the ability to post new answers.
Without more information it's hard to say.
What were you doing that caused this? What data were you using? What calls were you making?
Without any detail, the best i can say is that it looks like you maybe were trying to specify a page as parent that came from another space? It migh tsound obvious but a page can not have a parent/child relationship across spaces. They both have to be in the same pace.
Does that help?
Hi Matthew, thanks for the reply. Your response has led me to notice that I have a hard-coded "Space" name in my script which I did not remember putting in.
$rpc->confluence1->storePage($token, array(
'space' => 'MySpaceName',
'parentId' => $confluenceParentId,
'title' => "$selectedTable",
'content' => "$content")
);
I believe that space was renamed at some point and I never updated the script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.