Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can't add a parent from another space.

Stephen Lawrence January 25, 2013

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?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2013

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?

Stephen Lawrence January 30, 2013

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.

TAGS
AUG Leaders

Atlassian Community Events