SID-01274: Not Publishing Files
| Status: |
Answered |
TWiki version: |
5.1.0 |
Perl version: |
5.10.1 |
| Category: |
PublishWebPlugin |
Server OS: |
CentOS 6 |
Last update: |
3 years ago |
Hi there,
For some reason
PublishWebPlugin is not generating files on article save. I have tried both a manual install of the plugin, and installation through 'Find more extensions' via Config - neither of them successfully publish the HTML files.
I thought that this may be a permissions issue, but as far as I can see they should be fine (755 on directories, 644 on
PublishWebPlugin.pm). File ownerships are all set to apache.
If there are any files or details I can provide, please let me know and I will provide them asap.
Thank you.
--
KaraBurton - 2011-09-16
Discussion and Answer
1. Does the plugin show up in your
TWiki.InstalledPlugins page? No errors on that page?
2. Are the configure settings right?
3. Is the publish directory owned by apache and writable?
$TWiki::cfg{Plugins}{PublishWebPlugin}{PublishPath}
--
PeterThoeny - 2011-09-16
1.
InstalledPlugins page does not exist (unsure why?). Although
PublishWebPlugin is listed in activated plugins.
2. I have set up the publish directory, and tried both relative and absolute paths in the plugin file, as well as adding the settings to the
WebPreferences page in the wiki. The web name is set correctly in this page too.
3. Yes, all directories are owned by apache. Permissions are 755.
Thank you for your time Peter.
--
KaraBurton - 2011-09-19
My mistake - yes, it is listed in
InstalledPlugins correctly, with no errors. Ignore my previous comment.
--
KaraBurton - 2011-09-19
Don't change the plugin .pm file. Please read the installation instructions, you need to add a few configuration options to the
twiki/lib/LocalSite.cfg file.
--
PeterThoeny - 2011-09-19
Again my error. Although I still cannot get this plugin to publish the files - I have followed the installation instructions (after a reinstall of the plugin) with no luck.
My only difference to the installation instructions are that I wish to publish a currently existing web.
--
KaraBurton - 2011-09-20
Create a web called Website, and copy
data/Website/WebPublish.txt from the plugin zip file into that web.
If you have a different web for publishing, copy
WebPublish.txt from the plugin zip file into that web, and set the
PUBLISHWEBPLUGIN_PUBLISHWEBNAME plugin setting to point to that web.
--
PeterThoeny - 2011-09-20
It now works! My error was that in the
WebPreferences page, I had not referenced the plugin correctly before the setting name. I can't believe it was such a silly mistake - due to my incorrect reference, it was still trying to find topics in the (non-existent) Website web.
Thank you.
--
KaraBurton - 2011-09-21
Sorry to ask more questions, but I am having issues regarding applying skins to the published HTML files. Due to absolute paths within the published files, links to attachments (images, external style, etc.) are not working.
Is there any way to correct this? After some searching I presume that this problem occurs due to base urls - is there a way to change the urls generated to relative paths?
--
KaraBurton - 2011-09-21
Yes, simply remove the base tag from your publish skin.
--
TWikiGuest - 2011-09-21
I am having the same issue
--
TWiki Guest - 2022-07-06
I am also trying to use
WebPublish to publish an existing twiki site that is quite large with lots of pages. I created the Website directory in data/Website and copied
WebPublish.txt to it from data/DemoWebsite. But I don't understand how I'm suppose to point it to PUBLISHWEBPLUGIN_PUBLISHWEBNAME. Do I but put it in twiki/bin/view/DemoWebsite/WebPreferences ??? And if so how?
Website ???
--
TWiki Guest - 2022-07-06
Guest: Copy all
PUBLISH* settings from
DemoWebsite.WebPreferences to
Website.WebPreferences, and customize as needed.
--
Peter Thoeny - 2022-07-06
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.