No upload button when editing Wiki pages?

60 views
Skip to first unread message

Joanna Rutkowska

unread,
Nov 16, 2012, 9:15:36 AM11/16/12
to trac-...@googlegroups.com
Hi,

So, I don't see any button for adding attachments when editing Wiki
pages on my Trac installation. This is probably some stupid config
mistake, although I have done my best and couldn't find anything.

My trac.ini is attached, just in case. Also I'm using Trac 1.0.

The attachments for Tickets, does work, however.

This is how my files/ directory on the server looks like:

[root@wiki trac]# ls -alR files/
files/:
total 12
drwxr-xr-x 3 apache apache 4096 Nov 16 11:44 .
drwxr-xr-x 10 apache apache 4096 Nov 16 12:56 ..
drwxr-xr-x 3 apache apache 4096 Nov 16 11:44 attachments

files/attachments:
total 12
drwxr-xr-x 3 apache apache 4096 Nov 16 11:44 .
drwxr-xr-x 3 apache apache 4096 Nov 16 11:44 ..
drwxr-xr-x 4 apache apache 4096 Nov 16 14:07 ticket

files/attachments/ticket:
total 16
drwxr-xr-x 4 apache apache 4096 Nov 16 14:07 .
drwxr-xr-x 3 apache apache 4096 Nov 16 11:44 ..
drwxr-xr-x 3 apache apache 4096 Nov 16 11:44 157
drwxr-xr-x 3 apache apache 4096 Nov 16 14:07 ee4



Thanks.
joanna.
trac.ini
signature.asc

RjOllos

unread,
Nov 16, 2012, 3:12:33 PM11/16/12
to trac-...@googlegroups.com
On Friday, November 16, 2012 6:27:29 AM UTC-8, joanna wrote:
Hi,

So, I don't see any button for adding attachments when editing Wiki
pages on my Trac installation. This is probably some stupid config
mistake, although I have done my best and couldn't find anything.
 
The Attach file button isn't present on the wiki edit page (e.g. /wiki/WikiStart?action=edit), only on the wiki view page (e.g. /wiki/WikiStart), but that is probably what you were referring to anyway. The Attach file button should be present when the user has WIKI_MODIFY permission, provided that the attachment module is enabled: trac.attachment.* = enabled.

Joanna Rutkowska

unread,
Nov 16, 2012, 5:32:16 PM11/16/12
to trac-...@googlegroups.com, RjOllos
Ah, stupid me, actually I was looking for the button on the edit page,
while it is indeed on the view page. Anyway, after I click on it (e.g.
on a URL like this:
https://wiki.qubes-os.org/trac/wiki/QubesScreenshots), this generates a
redirect to:

https://wiki.qubes-os.org/trac?action=new&attachfilebutton=Attach+file

... which in turn is my Trac Start page... And then nothing happens.

I also added the trac.attachment.* = enabled under [components] section,
so that it now looks like this:

components]
includemacro.* = enabled
markdown.* = enabled
trac.attachment.* = enabled
trac.attachmentmodule = enabled
trac.attachment.legacyattachmentpolicy = enabled
trac.wiki.macros.titleindexmacro = disabled
tracopt.versioncontrol.svn.svn_fs.subversionconnector = enabled
tracopt.versioncontrol.svn.svn_prop.subversionmergepropertydiffrenderer
= enabled
tracopt.versioncontrol.svn.svn_prop.subversionmergepropertyrenderer =
enabled
tracopt.versioncontrol.svn.svn_prop.subversionpropertyrenderer = enabled


Yes it didn't help... :/

Thanks,
joanna.

signature.asc

RjOllos

unread,
Nov 18, 2012, 4:48:35 AM11/18/12
to trac-...@googlegroups.com, RjOllos
On Friday, November 16, 2012 2:32:35 PM UTC-8, joanna wrote:
Ah, stupid me, actually I was looking for the button on the edit page, 
while it is indeed on the view page. Anyway, after I click on it (e.g.
on a URL like this:
https://wiki.qubes-os.org/trac/wiki/QubesScreenshots), this generates a
redirect to:

https://wiki.qubes-os.org/trac?action=new&attachfilebutton=Attach+file

... which in turn is my Trac Start page... And then nothing happens.

Hmmm... not sure about this one. Any chance you have a plugin installed that is interfering? You have some images on that page now, maybe you've fixed the issue since Friday?
 
I also added the trac.attachment.* = enabled under [components] section,
so that it now looks like this:

components]
includemacro.* = enabled
markdown.* = enabled
trac.attachment.* = enabled

 
trac.attachmentmodule = enabled
trac.attachment.legacyattachmentpolicy = enabled

You don't need either of these entries, but they shouldn't hurt either. The first is a typo and should be `trac.attachment.attachmentmodule = enabled`, but is unnecessary since you have trac.attachment.* = enabled , as is the second entry.

Joanna Rutkowska

unread,
Nov 18, 2012, 5:20:11 AM11/18/12
to trac-...@googlegroups.com, RjOllos
On 11/18/12 10:48, RjOllos wrote:
> On Friday, November 16, 2012 2:32:35 PM UTC-8, joanna wrote:
>
>> > Ah, stupid me, actually I was looking for the button on the edit page,
>> > while it is indeed on the view page. Anyway, after I click on it (e.g.
>> > on a URL like this:
>> > https://wiki.qubes-os.org/trac/wiki/QubesScreenshots), this generates a
>> > redirect to:
>> >
>> > https://wiki.qubes-os.org/trac?action=new&attachfilebutton=Attach+file
>> >
>> > ... which in turn is my Trac Start page... And then nothing happens.
>> >
> Hmmm... not sure about this one. Any chance you have a plugin installed
> that is interfering? You have some images on that page now, maybe you've
> fixed the issue since Friday?
>

No, I just linked to images that were on external servers.

As for the plugins -- I only have the following two plugins:

http://trac-hacks.org/wiki/IncludeMacro
http://trac-hacks.org/wiki/MarkdownMacro

Full config of my trac can be seen here:
https://wiki.qubes-os.org/trac/about

>
>> > I also added the trac.attachment.* = enabled under [components] section,
>> > so that it now looks like this:
>> >
>> > components]
>> > includemacro.* = enabled
>> > markdown.* = enabled
>> > trac.attachment.* = enabled
>> >
>
>
>> > trac.attachmentmodule = enabled
>> > trac.attachment.legacyattachmentpolicy = enabled
>> >
> You don't need either of these entries, but they shouldn't hurt either. The
> first is a typo and should be `trac.attachment.attachmentmodule = enabled`,
> but is unnecessary since you have trac.attachment.* = enabled , as is the
> second entry.
>
>

Ok, I removed those extra lines from trac.ini, just in case. That didn't
help though.

joanna.

signature.asc
Reply all
Reply to author
Forward
0 new messages