Question
Hi,
I've installed the
AttachContentPlugin - but get the following error when saving the PatternSkinColorSettings file.
Any suggestions appreciated.
"Error saving topic
During save of TWiki.PatternSkinColorSettings an error was found by the version control system. Please notify your TWiki administrator.
RCS: failed to create AttachContentPlugin work area: No such file or directory
Go back in your browser and save your changes locally. "
Environment
--
KirbyJames - 31 Jan 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Probable cause: The
twiki/pub/_work_areas directory is not writable by your webserver user (
nobody or
www-run or the like.)
--
PeterThoeny - 01 Feb 2007
Peter, Thanks for the suggestion
On my site
PUBURLPATH is /twiki/pub and
MAINWEB is Main so
Set USERCOLORSURL = %PUBURLPATH%/%MAINWEB%/TWikiPreferences/theme-colors.css
expands to Set USERCOLORSURL = /twiki/pub/Main/TWikiPreferences/theme-colors.css
there was no /twiki/pub/Main/TWikiPreferences directory, I've created one but it still fails in the same way.
What controls where theme-colors.css is written? are such files always written to the same directory?
Is the above directory the correct one for theme-colors.css ? - should it be overwritting /TWikiPreferences/PatternSkin/colours.css
Shoud I modify AttachContentPluggin to produce some debugging information?
Thanks Kirby
--
KirbyJames - 02 Feb 2007
Using
AttachContentPlugin the created attachment is saved to to pub directory of the topic the AttachContentPlugin tag is in, so in
pub/Yourdir/YourTopic.
It doesn't matter which topic you choose - but to evade problems when upgrading you better choose a topic in Main, for instance
pub/Main/TWikiPreferences. That means you need to copy the section of
TWiki/PatternSkinColorSettings to
Main/TWikiPreferences.
Once your color CSS attachment is created you point
TWIKICOLORSURL (or
USERCOLORSURL if you want to use that color set for all users) to that file.
--
ArthurClemens - 02 Feb 2007
Arthur, Thanks for the suggestion. I've moved the topic to Main/TWikiPreferences - but I still get the
"RCS: failed to create AttachContentPlugin work area: No such file or directory" error. I've added some debuggin entries into AttachContentPlugin.pm and it is clear that the plugin 'fails at
TWiki::Func::getWorkArea - how do I find out where this is? Thanks Kirby
--
KirbyJames - 02 Feb 2007
Please create the
twiki/pub/_work_areas directory; make sure it is writable by your webserver user.
--
PeterThoeny - 02 Mar 2007