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 -~----------~----~----~----~------~----~------~--~---
