Hi,

My posted solution has a disadvantage: Apache2 error.log shows:

[Sun Mar 08 20:34:14 2009] [error] [client 127.0.0.1] ValueError:
TracUriRoot set to /trac/wiki but request URL is
/trac/raw-attachment/wiki/BilderRepository/Ubuntu_Zertifikat.png, referer:
http://localhost/trac/wiki/wiki/WikiStart

This and the fact that the following Picture is missing:

{{{
#!html
</p><div class="wiki-toc"><img
src="/trac/raw-attachment/wiki/BilderRepository/Ubuntu_Zertifikat.png"
width=300 height=250><p>
}}}

The entry in the error.log follows the request of the appropriate side.

Now should i set the "PythonOption TracUriRoot /trac/wiki" in
/etc/apache2/sites-available/trac  back to "PythonOption TracUriRoot /trac"
to have my picture to show up or should i leave my change and have the
WikiToPDF-Plugin working?

And, on annother similar trac Installation where the plugin
http://trac-hacks.org/wiki/PageToPdfPlugin is installed, the change on
"PythonOption TracUriRoot" is not necessary for having the Pictures with
[[Image(wiki:file)]] (the short form [[Image(file)]] doesn't work) in the
PDF-Download!

There musst be an error in the path's of WikiToPDF-Plugin i think, but can't
find out where to look.

sincerely
  Ice





2009/3/6 Ice Polar <[email protected]>

> Hi,
>
> i got a solution for my trac 0.11.3 ubuntu 8.04 apache2 single project
> installation to run the WikiToPDF-Plugin with the images show up.
> First of all i set in file: /etc/apache2/sites-available/trac
>
> <Location /trac>
>    SetEnv TRAC_ENV "/var/trac/wiki"
>    SetHandler mod_python
>    PythonHandler trac.web.modpython_frontend
>    PythonPath "sys.path + ['/usr/share/trac']"
>    PythonOption TracEnv /var/trac/wiki
>    PythonOption TracUriRoot /trac/wiki
>    AuthType Basic
>    AuthName "Trac"
>    AuthUserFile /etc/apache2/trac.passwd
> #   Require valid-user
> </Location>
>
> The following parameter from PythonOption TracUriRoot /trac to PythonOption
> TracUriRoot /trac/wiki
>
> Then in file : /var/trac/wiki/conf/trac.ini
> [wikitopdf]
> base_dir = /var
> folder_name = trac
> link = http://localhost/trac/wiki
> pathtocover = /var/trac/wiki/cover
> titlefile =
>
> the parameter base_dir is set to  /var
>
> I've tested the following Image-Macro's in some wiki-sides:
> 1 .[[Image(wiki:TicketSystem:basic-workflow.png)]]
>
> 2.[[Image(TicketSystem:basic-workflow.png)]]
>
> 3.[[Image(basic-workflow.png)]]
>
> The first two are working the thrid throws an error-print-out in the PDF.
>
> sincerely
>   Ice
>
>
>
>
> 2009/3/5 yoheeb <[email protected]>
>
>>
>> On Mar 4, 4:18 am, Ice Polar <[email protected]> wrote:
>> > Hi,
>> >
>> > thanks for replying.
>> > It is definitvely not a problem of the third image which throws an
>> error.
>> > Without this third image the Log looks like this (the working things are
>> > snipped out):
>> > These yellow marked paths in the Log look strange for me. Is there e an
>> > interrelation between them and the trac.ini entries?
>> You realize this is an email list right?  I don't get anything marked
>> yellow
>> >
>> > [trac.ini]
>> > [wikitopdf]
>> > base_dir = /trac/raw-attachment
>> > folder_name = trac
>>
>> I still think these settings are incorrect.
>> [wikitopdf]
>> # base_dir is the >>>>>>>Apache DocumentRoot<<<<<<<, It is need to get
>> PDF files with images.
>>
>> my apache document root is:
>> on my system is c:/bin/tools/Apache2.2/htdocs
>> since I installed apache 2.2 on c:/bin/tools
>>
>> the folder_name parameter seems to be meant to work with the link
>> paramater, which is used for links inside the pdf to get absolute
>> URLs, which you don't seem to have entered.
>> seems like you "expect" the directory to place/fetch images to be /
>> trac/raw-attachment/trac  but that is not how/what these parameters
>> are used for.
>>
>> Now, I gleaned all this information from a quick glance at the
>> wikitopdf trac-hacks page, I don't even use the tool.  Did you READ
>> this?
>>
>> sorry, but you have to do some of the work here, more importantly you
>> need to slow down and work through this methodically.
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to