cancel
Showing results for 
Search instead for 
Did you mean: 

Requesting help in setting up the Alfresco component

xstatik
Champ in-the-making
Champ in-the-making
Hello,

I tried to install the new Alfresco component on my Joomla 1.5 testing website.  I am running Alfresco 3c which works great on its own.  I installed and configured the component and added an Alfresco link to my main menu.  However, when I click the link, I receive the following error message:

Fatal error: Uncaught exception 'Zend_Uri_Exception' with message 'Illegal scheme supplied, only alphanumeric characters are permitted' in /mysite/administrator/components/com_alfresco/libraries/Zend/Uri.php:98 Stack trace: #0
/mysite/administrator/components/com_alfresco/libraries/Zend/Http/Client.php(223): Zend_Uri::factory('/service/api/lo…') #1
/mysite/administrator/components/com_alfresco/libraries/Zend/Http/Client.php(209): Zend_Http_Client->setUri('/service/api/lo…') #2
/mysite/components/com_alfresco/models/abstract.php(159): Zend_Http_Client->__construct('/service/api/lo…', Array) #3 /mysite/components/com_alfresco/models/abstract.php(216): AlfrescoModelAbstract->getXml('/service/api/lo…') #4 /mysite2/components/com_alfresco/models/abstract.php(62): AlfrescoModelAbstract->authenticate() #5 /mysite2/libraries/joomla/application/component/model.php(129): AlfrescoModelAbstract->_ in /mysite/administrator/components/com_alfresco/libraries/Zend/Uri.php on line 98

The component is configured as follows:

Name: Test Alfresco Repository
Server:  http://sitename:8080/alfresco
Share:  http://sitename:8080/share
I'm using a regular Alfresco user (not an admin) for the username/password fields.
Published: Yes

If anyone has any suggestions on getting the component up and running, I'd greatly appreciate the help.
8 REPLIES 8

johanjanssens
Champ in-the-making
Champ in-the-making
I'm unable to replicate this. Looks like the Zend Framework is shocking on your URI. What PHP version are you using ?

xstatik
Champ in-the-making
Champ in-the-making
Hi Johan,

Thanks for the reply.  I dug into the Uri.php script and printed out the contents of the $uri variable right before the explode() function is used on it in factory().  Here's what I get:

$uri: /service/api/login?u=&pw=

I am running PHP version 5.2.6 according to phpinfo() and I'm running Joomla v1.5.8 on OpenSUSE 11.0.

Also, after turning on notices, the following warnings were generated before the exception occurs:

Notice: Trying to get property of non-object in /home/wac/public_html/lor2/components/com_alfresco/models/abstract.php on line 215 Notice: Trying to get property of non-object in /home/wac/public_html/lor2/components/com_alfresco/models/abstract.php on line 215 Notice: Trying to get property of non-object in /home/wac/public_html/lor2/components/com_alfresco/models/abstract.php on line 215

johanjanssens
Champ in-the-making
Champ in-the-making
It looks like your profile data doesn't get loaded properly which results in a wrong url. Can you turn debugging on in Joomla! to see if you get any db errors ?

xstatik
Champ in-the-making
Champ in-the-making
I turned on debugging, but the debug output doesn't seem to be displayed when the exceptions are thrown since the full page is not being outputted.  I'll try digging into the code and printing out the results of the database queries manually.  I'll post my findings here.

johanjanssens
Champ in-the-making
Champ in-the-making
Oki, thnx !

xstatik
Champ in-the-making
Champ in-the-making
That was a very easy fix.

My menu link didn't have the proper ID of the alfresco server profile.  The profile has an ID of 1 and the link in my main menu was using an ID of 0.

Here's the proper link:
http://mysite/index.php?option=com_alfresco&view=folder&id=1&Itemid=61

Here's the incorrect link with an ID of zero:
http://mysite/index.php?option=com_alfresco&view=folder&id=0&Itemid=61

Problem solved.

johanjanssens
Champ in-the-making
Champ in-the-making
Great to hear you have been able to fix it ! Have fun with the integration.

phirschorn
Champ in-the-making
Champ in-the-making
Hey I am having the same issue as you are.  I have the same fix as well with changing the id from 0 to 1.  My question is how did you fix it so that when you click the link the correct id is used?  I dont see where I can change it within the CMS.

Thanks,

Paul