PHP error with the mediawiki integration

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2007 12:08 PM
Hello,
When I try to create a new page in my wiki, I get this error :
Maybe it come from my AlfrescConfig.php
I have created a spece called "wiki" in my Company Home
Thanks for your help
When I try to create a new page in my wiki, I get this error :
Fatal error: Call to a member function createChild() on a non-object in /home/hefbee/S5/wiki/extensions/ExternalStoreAlfresco.php on line 148
Maybe it come from my AlfrescConfig.php
$alfDebug = true;
/** The web service end point that will be used when accessing the Alfresco repository **/
$alfURL = "http://localhost:8080/alfresco/api";
/** Store that should be used to store the wiki content in **/
$alfWikiStore = "workspace://SpacesStore/wiki";
/** Path to the space the contains the wiki content **/
$alfWikiSpace = "app:company_home/cm:wiki";
/** User credentails used to connect to Alfresco with **/
$alfUser = "admin";
$alfPassword = "admin";
I have created a spece called "wiki" in my Company Home
Thanks for your help
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2007 09:52 AM
Hi,
Yes that error implies that that the wiki node could not be found. I suggest checking that the repo URL is correct (i assume you are running the repository locally to your mediawiki web server?)
Then check that the path query to the wiki space executes correctly (ie: youve named the Wiki space correctly) .. this can be done from the node browser on the admin panel of the standard web client.
Note that the name of the wiki space is case sensitive and should be "wiki" looking at the config you have posted.
Hope this helps,
Roy
Yes that error implies that that the wiki node could not be found. I suggest checking that the repo URL is correct (i assume you are running the repository locally to your mediawiki web server?)
Then check that the path query to the wiki space executes correctly (ie: youve named the Wiki space correctly) .. this can be done from the node browser on the admin panel of the standard web client.
Note that the name of the wiki space is case sensitive and should be "wiki" looking at the config you have posted.
Hope this helps,
Roy

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2007 11:10 AM
Hello,
Thanks for your answer.
To answer your question, Alfresco and mediawiki are installed on the same server (localhost !)
So, the alfresco url is : localhost:8080/alfresco
the mediawiki url is localhost/mediawiki.
When I check the path in the node browser, the reference to my space "wiki" is :
workspace://SpacesStore/8e790787-8177-11dc-a6b4-15a2119b1500
But the error is still here when I type this in my Alfrescoconfig.php
Actually, I don't understand how am I supposed to fill this file !
Maybe an exemple could help me.
Thanks again,
Hefbee
Thanks for your answer.
To answer your question, Alfresco and mediawiki are installed on the same server (localhost !)
So, the alfresco url is : localhost:8080/alfresco
the mediawiki url is localhost/mediawiki.
When I check the path in the node browser, the reference to my space "wiki" is :
workspace://SpacesStore/8e790787-8177-11dc-a6b4-15a2119b1500
But the error is still here when I type this in my Alfrescoconfig.php
Actually, I don't understand how am I supposed to fill this file !
Maybe an exemple could help me.
Thanks again,
Hefbee

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2007 11:42 AM
Well, I tried different configurations, and with one of them, I have a different error, so I think this configuration must be better.
My new alfroscoconfig.php :
I use Mediawiki 1.11, but I tryed with the 1.10.2, and the error is the still here…
Hope you can help, thanks
Hefbee
SoapFault exception: [soapenverver.generalException] (null) in /opt/alfresco/alfresco-php-library/Alfresco/Service/WebService/AlfrescoWebService.php:65 Stack trace: #0 /opt/alfresco/alfresco-php-library/Alfresco/Service/WebService/AlfrescoWebService.php(65): SoapClient->__soapCall('update', Array, Array, Array, Array) #1 /opt/alfresco/alfresco-php-library/Alfresco/Service/WebService/AlfrescoWebService.php(47): AlfrescoWebService->__soapCall('update', Array) #2 [internal function]: AlfrescoWebService->__call('update', Array) #3 /opt/alfresco/alfresco-php-library/Alfresco/Service/Session.php(168): AlfrescoWebService->update(Array) #4 /opt/mediawiki/extensions/ExternalStoreAlfresco.php(158): Session->save() #5 /opt/mediawiki/includes/ExternalStore.php(64): ExternalStoreAlfresco->store('localhost:8080/…', 'gfds') #6 /opt/mediawiki/includes/Revision.php(676): ExternalStore->insert('alfresco://loca…', 'gfds') #7 /opt/mediawiki/includes/Article.php(1443): Revision->insertOn(Object(DatabaseMysql)) #8 /opt/mediawiki/includes/Article.php(1213): Article->doEdit('gfds', '', 97) #9 /opt/mediawiki/includes/EditPage.php(743): Article->insertNewArticle('gfds', '', false, false, false, false) #10 /opt/mediawiki/includes/EditPage.php(413): EditPage->attemptSave() #11 /opt/mediawiki/includes/EditPage.php(285): EditPage->edit() #12 /opt/mediawiki/includes/Wiki.php(437): EditPage->submit() #13 /opt/mediawiki/includes/Wiki.php(48): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest)) #14 /opt/mediawiki/index.php(89): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest)) #15 {main}
My new alfroscoconfig.php :
/** Store that should be used to store the wiki content in **/
$alfWikiStore = "workspace://SpacesStore/wiki";
/** Path to the space the contains the wiki content **/
$alfWikiSpace = "app:company_home/cm:wiki";
I use Mediawiki 1.11, but I tryed with the 1.10.2, and the error is the still here…
Hope you can help, thanks
Hefbee
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2008 05:43 AM
In my experiences, this fault appears if the user in the Config does not have sufficient rights in the defined space.
Regards
Nico
Regards
Nico
