Question
I have installed
PublishAddOn and have set variables in the site preferences as follows.
The next two settings should be in
TWikiPreferences or
WebPreferences
* Root directory for static-published HTML
* Set PUBLISH_DIR = /var/www/twiki/pub/pete/
* Root URL for static-published HTML (should point to the same dir as PUBLISH_DIR)
* Set PUBLISH_URL_PATH =
http://pcsdt2.cern.ch/twik/var/www/twiki/pub/pete/
Twiki has been installed on the directory
/var/www/twiki
When I substitute the word view for publish in the URL I get the error.
Attention
Publish configuration error
Can't publish web TWiki because no publish directory was configured. Please notify your TWiki administrator.
As I have configuered the Publish directory in the Twiki preferences what else could be wrong.
Thanks for any help
Environment
--
PeterJones - 09 Feb 2005
Answer
I installed
PublishAddOn recently and set the following in
TWikiPreferences
* Set PUBLISH_DIR = /var/www/twiki/publish
* Set PUBLISH_URL_PATH = var/www/twiki/publish
and I was able to get onto my next issue.
Remember 6 spaces then * then Set var = value is syntax for a TWiki variable
--
BradTaylor - 10 Feb 2005
Making progress but I get the error
Publish configuration error
Can't publish web TWiki because no publish directory was configured. Please notify your TWiki administrator.
All variables are set correctly. Whats the best way to debug this? How can I resolve to see what Twiki thinks are the variables PUBLISH_DIR and PUBLISH_URL_PATH?
--
PeterJones - 02 Mar 2005
I did have the same problem which led me to print debug message in the code. And I finally found the root cause...
Just make sure that you've got a
single whitespace between
Set and the equal sign for your
PUBLISH_DIR variable (I had two !)... And it will start working.
Note: This
should be fixed in
PublishAddOn raw text so that people (like me and you) can cut and paste without this difficult to troubleshoot problem.
And now I'm stuck with
PublishAddOnOnlyOneTopicPublished... :!
--
PascalDavoust - 04 Apr 2005