cancel
Showing results for 
Search instead for 
Did you mean: 

Jommla 1.5 with Alfresco 3.2R2 not working

edugs
Champ in-the-making
Champ in-the-making
Hi Friends!!!

I'm showing this error message when you access the menu created to list the folders:
404 - Could not connect to server : Not Found

In Joomla adminisration´s console, specifically in components>Afresco I added Alfresco data:
Name:  Alfresco_test
Server: http://localhost:8080/alfresco
Share: http://localhost:8080/share
Username: admin
Password: admin
Published: yes

In menu> main menu i added a new entry and at Internal link >Alfresco>Repository >Spaces
In menu item details I added the information about link´s name.
In selected space i choose Alfresco_test which is the name i gave to it, as i show you in the configuration above.
But when I go in the front-end, the link created, the message error 404.

I've made the changes suggested in the link:
http://forums.alfresco.com/en/viewtopic.php?f=49&t=16107#p52822
Change any occurrences of <?= to <?php echo, in the following files mysite/components/com_alfresco/views/folder/tmpl/default_files.php and default_folders.php

But even so he is still with errors.

Any friend can help me?

Grateful!
16 REPLIES 16

edmacfly
Champ in-the-making
Champ in-the-making
Having exactly the same problems with these two versions. Also, when the integration does work with earlier versions of Alfresco the image preview doesn't work in Joomla. Is this module still being developed as it's a really fantastic piece of kit and fills a gap in the market really well  Smiley Tongue

li3283
Champ in-the-making
Champ in-the-making
I have found the solution!

I have changed the following code in: components/com_alfresco/models/folder.php

public function getFolders()
   {
      if (empty($this->_uuid)) {
         $uri = $this->getProfile()->server . '/service/api/path/workspace/SpacesStore/children';
         $data = $this->getXml($uri);
         $this->_uuid = $data->content;
      }
to
   public function getFolders()
   {
      if (empty($this->_uuid)) {
         $uri = $this->getProfile()->server . '/service/api/path/workspace/SpacesStore/';
         $data = $this->getXml($uri);
         $this->_uuid = $data->content;
      }
and
   public function getFiles() 
   {
      if (empty($this->_uuid)) {
         $uri = $this->getProfile()->server . '/service/api/path/workspace/SpacesStore/children';
         $data = $this->getXml($uri);
         $this->_uuid = $data->content;
      }
to
   public function getFiles() 
   {
      if (empty($this->_uuid)) {
         $uri = $this->getProfile()->server . '/service/api/path/workspace/SpacesStore/';
         $data = $this->getXml($uri);
         $this->_uuid = $data->content;
      }
Then I changed components/com_alfresco/models/abstract.php

   public function getBreadCrumbs() 
   {
      $uuid = $this->_uuid;
      $path = array();

      while (!empty($uuid))
      {
         $uri = $this->getProfile()->server . '/service/api/node/workspace/SpacesStore/' . $uuid . '/parent';
         $data = $this->getXml($uri);
to
   public function getBreadCrumbs() 
   {
      $uuid = $this->_uuid;
      $path = array();

      while (!empty($uuid))
      {
         $uri = $this->getProfile()->server . '/service/api/node/workspace/SpacesStore/' . $uuid . '/';
         $data = $this->getXml($uri);

After these changes Alfresco 3.2r2 worked perfectly again with Joomla 1.5.15.

You can also download the modified installer here: http://www.kubica.nl/com_alfresco-v1.0.1.zip

edmacfly
Champ in-the-making
Champ in-the-making
Great work. Been pulling my hair out trying to get this going. Only problem now is that the viewer doesn't work when you click on documents.
As covered in other posts, it appears that the problem of the full-preview not being present in the more recent Alfresco versions is causing this. Is there a definitive solution to this ongoing problem and is there any chance that anyone is still working on this very useful plugin?

edmacfly
Champ in-the-making
Champ in-the-making
Further breakthrough!

Firstly I downloaded the missing files that were from an older version of  Alfresco and added them into the Alfresco installation:

full-preview.css
full-preview.js
preview.css
preview.js

These didn't fix the problem on their own so I then made some changes to default_preview_flash.php. Firstly I tried changing line 18 from:

$document->addScript($this->profile->share.'/yui/selector/selector-min.jss');

to

$document->addScript($this->profile->share.'/yui/selector/selector-min.js');

This first fix didn't work so I started working through the page source of the preview page from within Firefox and I noticed an error with the following line, number 21:

$document->addScript($this->profile->share.'/js/bubbling.v1.5.0.js');

Upon checking on the file I found that version 1.5.0 was not there, instead, Alfresco was using the a later version 2.1.5.0 so I amended the line as follows:

$document->addScript($this->profile->share.'/js/bubbling.v2.1.js');

Quick refresh later and it's only gone and started working! I'm going to have a go at setting it up to use the new web-preview js and css…

edmacfly
Champ in-the-making
Champ in-the-making
Apologies if this is turning into a thread hijack…

Can't get this system to work with the new web-preview. Has anyone achieved this with Joomla 1.5 and Alfresco 3.2r2?

bergjes
Champ in-the-making
Champ in-the-making
Hi,

After adjusting all mentioned above, I still can´t get it working.
I still get error 404.

Does anybody get it working?

If so, can you please upload your com_alfresco?

Thanks,
Erik

marksss
Champ in-the-making
Champ in-the-making
Hi, but this component run only with admin?
I try to use with another users, but don't run!.. Smiley Sad

bergjes
Champ in-the-making
Champ in-the-making
Hi, but this component run only with admin?
I try to use with another users, but don't run!.. Smiley Sad

At least yours is running.

How did you manage to get it running?

Really like to know how you did it.

Erik

fulcrumgroup
Champ in-the-making
Champ in-the-making
I was able to get 3.2r2 working with Joomla 1.5.15, using the component + the directions above for changes to the
abstract.php and folder.php files.

Still working on issues around preview, but at least we can get the folder structures and files displayed.

1) Installed component
2) Joomla > Components > Alfresco > New
Name: New Test
Server: http://myservernamehere.com:8080/alfresco
Share: http://myservernamehere.com:8080/share
Username: admin
Password: the admin password
Published: Yes
3) Joomla > Menus > Main Menu > New
4) Select Alfresco..Repository..Spaces
Title: My New Alfresco Test
Alias: my_new_alfresco_test
Parameters (Basic): Select Space: picked the "New Test" I set up in step 2

At this point, when I went to my menu and hit it, I receive the "404" can't connect error.

I made the changes suggested above to abstract.php and folder.php and now can see folders.
This is a good little introductory guide to integrating Joomla with Alfresco….it gives us good insight into how to customize something to display our content in a bunch of different ways.  I'm a fan.