07-17-2007 07:06 AM
07-17-2007 08:31 AM
07-17-2007 09:03 AM
07-18-2007 06:48 AM
07-20-2007 09:02 AM
Hi,
I think I'm nearly there but i have an error on when saving or eding a wiki page.
I've installed mediaWiki and an apache HTTP server on my localhost.
Alfresco is also installed on localhost and running on port 8095
AlfrescoConfig.php
$alfDebug = true;
/** The web service end point that will be used when accessing the Alfresco repository **/
$alfURL = "http://localhost:8095/alfresco/api";
/** Store that should be used to store the wiki content in **/
$alfWikiStore = "workspace://SpacesStore";
/** 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";# -------------------------------------------------------------------------------
# Alfresco Extension Configuration
# -------------------------------------------------------------------------------
# include the alfresco extensions classes
require_once("extensions/ExternalStoreAlfresco.php");
# Configure in some external stores
$wgDefaultExternalStore = array("alfresco://localhost:8095/alfresco/api");
$wgExternalStores = array("alfrescoComm21");By the way, I'm assuming the $wgExternalStores = array() is the name of the mysql database ?
The error I get when I try to save after editing/adding a wiki page. It looks like it's looking up localhost:8080.
Is there default port setting I need to change in the Alfresco PHP library. ??
Quote:
...
[error] [client 127.0.0.1] PHP Warning: SoapClient:oapClient(http://localhost:8080/alfresco/api/AuthenticationService?wsdl) [function.SoapClient-SoapClient]: failed to open stream: Connection refused in /www/alfresco-php-library/Alfresco/Service/WebService/AlfrescoWebService.php on line 42, referer: http://localhost/alfresco/Examples/
[Fri Jul 20 14:43:12 2007] [error] [client 127.0.0.1] PHP Warning: SoapClient:oapClient() [function.SoapClient-SoapClient]: I/O warning : failed to load external entity "http://localhost:8080/alfresco/api/AuthenticationService?wsdl" in /www/alfresco-php-library/Alfresco/Service/WebService/AlfrescoWebService.php on line 42, referer: http://localhost/alfresco/Examples/
[Fri Jul 20 14:43:12 2007] [error] [client 127.0.0.1] PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:8080/alfresco/api/AuthenticationService?wsdl' in /www/alfresco-php-library/Alfresco/Service/WebService/AlfrescoWebService.php on line 42, referer: http://localhost/alfresco/Examples/
[Fri Jul 20 14:43:12 2007] [error] [client 127.0.0.1] PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:8080/alfresco/api/AuthenticationService?wsdl' in /www/alfresco-php-library/Alfresco/Service/WebService/AlfrescoWebService.php:42\nStack trace:\n#0 /www/alfresco-php-library/Alfresco/Service/WebService/AlfrescoWebService.php(42): SoapClient->SoapClient('http://localhos...', Array)\n#1 /www/alfresco-php-library/Alfresco/Service/WebService/WebServiceFactory.php(35): AlfrescoWebService->__construct('http://localhos...', Array)\n#2 /www/alfresco-php-library/Alfresco/Service/Repository.php(65): WebServiceFactory::getAuthenticationService('http://localhos...')\n#3 /www/alfresco-php-library/Examples/SimpleBrowse/index.php(41): Repository->authenticate('admin', 'admin')\n#4 {main}\n thrown in /www/alfresco-php-library/Alfresco/Service/WebService/AlfrescoWebService.php on line 42, referer: http://localhost/alfresco/Examples/
...
Thanks in advance.
Finner
07-23-2007 05:46 AM
public function __construct($connectionUrl="http://localhost:8080/alfresco/api")
Unable to store text to external storage http://localhost:8095/alfresco/api
Backtrace:
#0 /usr/local/apache2/htdocs/wiki/includes/Article.php(1336): Revision->insertOn(Object(DatabaseMysql))
#1 /usr/local/apache2/htdocs/wiki/includes/Article.php(1205): Article->doEdit('this is page 2?…', '', 98)
#2 /usr/local/apache2/htdocs/wiki/includes/EditPage.php(865): Article->updateArticle('this is page 2?…', '', false, false, '', '')
#3 /usr/local/apache2/htdocs/wiki/includes/EditPage.php(426): EditPage->attemptSave()
#4 /usr/local/apache2/htdocs/wiki/includes/EditPage.php(279): EditPage->edit()
#5 /usr/local/apache2/htdocs/wiki/includes/Wiki.php(432): EditPage->submit()
#6 /usr/local/apache2/htdocs/wiki/includes/Wiki.php(48): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#7 /usr/local/apache2/htdocs/wiki/index.php(89): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest))
#8 {main}
[error] [client 127.0.0.1] PHP Notice: Only variable references should be returned by reference in /usr/local/apache2/htdocs/wiki/includes/ExternalStore.php on line 41, referer: http://localhost/wiki/index.php?title=Page2&action=edit
./php -m does list soap as an extension.07-23-2007 09:04 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.