Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RH Linux
Web server: apache
Perl version: 5
Client OS: Linux, Windows
Web Browser: Mozilla, IE
Categories: Add-Ons

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

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-04-04 - PascalDavoust
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.