Can't download attached files on wiki after upgrade to RC2

Frederico Madeira
Joined: 13 Aug 2006

Can't download attached files on wiki after upgrade to RC2

Posted:17 Nov 2008 (03:25 UTC)
After update my instalation to 2.1.0 beta I can't download files attached on my wiki pages.

If I attach a new file I can open it, but not the old one.

The files are in storage dir, in same path as it was in old version.

How can I fix this issue ?

Regards,

Fred
xing
Joined: 07 Mar 2004

Re: Can't download attached files on wiki after upgrade to RC2

Posted:18 Nov 2008 (19:49 UTC)
what version did you upgrade from? do the previous uploads still show up when you edit the wiki page?

x
Frederico Madeira
Joined: 13 Aug 2006

Re: Can't download attached files on wiki after upgrade to RC2

Posted:25 Nov 2008 (00:14 UTC)
1.3 to 2.1.

Att,

Fred
Lester Caine
Joined: 24 Apr 2004

Re: Can't download attached files on wiki after upgrade to RC2

Posted:27 Nov 2008 (07:37 UTC)
There were a few changes to the way storage was handled.
The links should give you the path that they expect the images at, are they the same between old and new links? Personally I have a different structure to 'storage' so I've not had any problems.
xing
Joined: 07 Mar 2004

Re: Can't download attached files on wiki after upgrade to RC2

Posted:28 Nov 2008 (11:37 UTC)
we still need more information:

  • do the attachments show up when you edit a wiki page?
  • can you display them using the {attachment} plugin?
  • do you have a public URL where we can look at this?
  • were there any errors during the upgrade process?
  • does this happen for all files or only images or not images?
  • when you say you can't download the files, what is the URL you are trying to download from?

please be more descriptive. the bug you are experiencing might be due to a number of causes and we need to work out what it is.

you can also come by ConnectingToIrc that we can work on this using a real-time chat to communicate and ask questions

x
Frederico Madeira
Joined: 13 Aug 2006

Re: Can't download attached files on wiki after upgrade to RC2

Posted:30 Nov 2008 (15:15 UTC)
Hi Xing,

Follow answers:

  • do the attachments show up when you edit a wiki page? yes
  • can you display them using the plugin? yes. All files are attached using this plugin
  • do you have a public URL where we can look at this? yes, check bellow
  • were there any errors during the upgrade process? no
  • does this happen for all files or only images or not images? only with pdf files. The images are ok.
  • when you say you can't download the files, what is the URL you are trying to download from? view below

Access this page of my website www.madeira.eng.br/wiki/index.php?page=TRC3NA+2008.2 and try to go to page bottom and try to download the file in section "12/08/2008 - Instalação Fedora". When I put mouse over the icon, I get this URL: www.madeira.eng.br/liberty/view_file.php?attachment_id=54

I think that this issue is related with the folder where bitweaver store the files. All my PDF files from old bitwaver are inside of folder images under my storage dir. Now, if I attach a new PDF file it would be stored at pdf dir under storage directory.

Where can I check if the bitweaver try to get file inside images or pdf directory ?

Regards,

Frederico Madeira
xing
Joined: 07 Mar 2004

Re: Can't download attached files on wiki after upgrade to RC2

Posted:01 Dec 2008 (08:54 UTC)
i think we should really try to solve this on IRC. we need to check values in the database and try to fix your issues. using the forums will take a while due to the slow responses. by the way, can you please go to the Admin --> Liberty --> Plugins page and view the Mime tab, select the desired plugins and hit Save if you haven't done so yet.

if you don't have access to IRC, please provide the following information:

from your database, please get:

SELECT * FROM liberty_attachments la LEFT OUTER JOIN liberty_files lf ON( la.foreign_id = lf.file_id ) WHERE la.attachment_id = 54;

SELECT * FROM kernel_config WHERE package = 'liberty' AND config_name LIKE '%status%';

x
Frederico Madeira
Joined: 13 Aug 2006

Re: Can't download attached files on wiki after upgrade to RC2

Posted:04 Dec 2008 (01:49 UTC)
Hi Xing,

I'm sorry for my delay to answer you.
Regarding IRC, I have limited access.
I alredy click on save in mime configuration.

First query:
attachment_id attachment_plugin_guid content_id foreign_id user_id pos hits error_code caption is_primary file_id user_id storage_path file_size mime_type

54 bitfile 13 52 3 NULL NULL NULL NULL NULL 52 3 storage/users/3/3/images/54/Aula 2 - Instalacao.pdf 846981 application/pdf

Second Query:
config_name package config_value
Editar Remover liberty_display_status liberty n
Editar Remover liberty_display_status_menu liberty n
Editar Remover liberty_plugin_status_dataaddtabs liberty y
Editar Remover liberty_plugin_status_dataattachment liberty y
Editar Remover liberty_plugin_status_databiticon liberty y
Editar Remover liberty_plugin_status_datacalendar liberty y
Editar Remover liberty_plugin_status_datacode liberty y
Editar Remover liberty_plugin_status_datacomment liberty y
Editar Remover liberty_plugin_status_datacreationtime liberty y
Editar Remover liberty_plugin_status_datadiv liberty y
Editar Remover liberty_plugin_status_dataflashvideo liberty y
Editar Remover liberty_plugin_status_dataimage liberty y
Editar Remover liberty_plugin_status_dataimg liberty y
Editar Remover liberty_plugin_status_datainclude liberty y
Editar Remover liberty_plugin_status_datajstabs liberty y
Editar Remover liberty_plugin_status_datarss liberty y
Editar Remover liberty_plugin_status_datatoc liberty y
Editar Remover liberty_plugin_status_datatr liberty y
Editar Remover liberty_plugin_status_datayoutube liberty y
Editar Remover liberty_plugin_status_filterattachment liberty n
Editar Remover liberty_plugin_status_filterbitlinks liberty y
Editar Remover liberty_plugin_status_filtermaketoc liberty y
Editar Remover liberty_plugin_status_filtersmileys liberty y
Editar Remover liberty_plugin_status_filterstencil liberty y
Editar Remover liberty_plugin_status_filterstylepure liberty y
Editar Remover liberty_plugin_status_mimedefault liberty y
Editar Remover liberty_plugin_status_mimeimage liberty y
Editar Remover liberty_plugin_status_tikiwiki liberty y
Editar Remover nexus_plugin_status_suckerfish liberty y
Editar Remover nexus_plugin_status_tikiwiki liberty y

Regards,

Fred
xing
Joined: 07 Mar 2004

Re: Can't download attached files on wiki after upgrade to RC2

Posted:04 Dec 2008 (09:43 UTC)
in the file liberty/download_file.php you have the following code around line 26

liberty/download_file.php


<?php
 26
: if( $download_function $gLibertySystem->getPluginFunction$attachment['attachment_plugin_guid'], 'download_function' )) {
 
27:     if( $download_function$attachment )) {
?>

Change the code to:

liberty/download_file.php


<?php
 26
: if( $download_function $gLibertySystem->getPluginFunction$attachment['attachment_plugin_guid'], 'download_function'TRUE )) {
 
27:     if( $download_function$attachment )) {
?>


that should fix it. i've submitted the fix to CVS and will be in the next release.

x
Frederico Madeira
Joined: 13 Aug 2006

Re: Can't download attached files on wiki after upgrade to RC2

Posted:07 Dec 2008 (14:33 UTC)
Hi Xing,

Thanks a lot, this solve the problem.

My students thanks you.

Regards,

Fred
  Page 1 of 1  1 
Post
If you are already registered, please enter your login credentials.
Anonymous Post