cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating Alfresco and MediaWiki

vinicius
Champ in-the-making
Champ in-the-making
I´m integrating Alfresco 2.1 and MediaWiki, with Alfresco PHP Library 2.1

The Alfresco PHP library works fine, including all tests and examples.
The MediaWiki works fine, when I try to create a file.
The MediaWiki not works, when I try to update a file.

The system show this errors:

alfresco://workspace/SpacesStore/sessionTICKET_8bdd03e0cd59b6d4dbbb039af6c2c2c95b84db8d0///SoapFault exception: [soapenv:Server.generalException] (null) in /var/www/alfresco/Alfresco/Service/WebService/AlfrescoWebService.php:64
Stack trace:
#0 /var/www/alfresco/Alfresco/Service/WebService/AlfrescoWebService.php(64): SoapClient->__soapCall('update', Array, Array, Array, Array)
#1 /var/www/alfresco/Alfresco/Service/WebService/AlfrescoWebService.php(47): AlfrescoWebService->__soapCall('update', Array)
#2 [internal function]: AlfrescoWebService->__call('update', Array)
#3 /var/www/alfresco/Alfresco/Service/Session.php(168): AlfrescoWebService->update(Array)
#4 /var/www/wiki/extensions/ExternalStoreAlfresco.php(159): Session->save()
#5 /usr/share/mediawiki1.7/includes/ExternalStore.php(65): ExternalStoreAlfresco->store('alfresco.fabric…', 'Teste1 Teste1')
#6 /usr/share/mediawiki1.7/includes/Revision.php(614): ExternalStore->insert('alfresco://alfr…', 'Teste1 Teste1')
#7 /usr/share/mediawiki1.7/includes/Article.php(1263): Revision->insertOn(Object(DatabaseMysql))
#8 /usr/share/mediawiki1.7/includes/Article.php(1139): Article->doEdit('Teste1 Teste1', '', 34)
#9 /usr/share/mediawiki1.7/includes/EditPage.php(789): Article->updateArticle('Teste1 Teste1', '', false, false, '', '')
#10 /usr/share/mediawiki1.7/includes/EditPage.php(364): EditPage->attemptSave()
#11 /usr/share/mediawiki1.7/includes/EditPage.php(217): EditPage->edit()
#12 /usr/share/mediawiki1.7/includes/Wiki.php(380): EditPage->submit()
#13 /usr/share/mediawiki1.7/includes/Wiki.php(50): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#14 /usr/share/mediawiki1.7/index.php(123): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest))
#15 {main}

Somebody can help me?
3 REPLIES 3

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

I'll have a look and see if I can reproduce this issue.

Out of interest, what version of MediWiki are you using?

Cheers,
Roy

vinicius
Champ in-the-making
Champ in-the-making
Hi,

I was using MediaWiki 1.71, but when I updated to MediaWiki 1.10 the this problem was solved!!!

Now, I have another problem:

I created a topic named "Test" in MediaWiki, The MediaWiki create a file named Test in Alfresco, with content. If I remove the file Test from Alfresco, and access and edit Test topic in MediaWiki, it´s not works!!!

I think that Alfresco MediaWiki Integration Library does not test if the file really exists, when we update a topic. The error say that it´s not possible update a file that not exists!!!

Thanks for all!

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Yes that is correct.  Removal both in Alfresco and MediaWiki is not yet supported by the integration.

The current integration is really just a proof of concept, although usable in its current state.  We plan to re-evaluate our approach and proceed with a much deeper integration in the future.

In the mean time feel free to continue to raise these issues as they give us some guidance as to the work that still needs to be done.

Cheers,
Roy