Question
After installing
PublishAddOn, I can only get it to publish one page. I finally got it to do my entire web, but I had to comment out some code.
In Publish.pm in publishWeb subroutine around line 308, I commented to the two next statements.
my $zip = Archive::Zip->new();
# Attempt to render each included page.
my %copied;
foreach my $topic (@topics) {
# next unless grep { /^$topic/ } @include;
# next if grep { /^$topic/ } @exclude;
publishTopic($web, $topic, $skin, \%copied,
$topicsearch, $zip);
}
In attempting to diagnose what was going on, I added the die statement, the results are below the code. I enter the URL
I tried 3 different inputs, and they all got the same results, one or no pages. That is on the publish form I would enter
WebHome (the default pleaced in the form after entering the URL or
".*" or nothing.
my $zip = Archive::Zip->new();
my $gg = grep { /^$topic/ } @include;
die "gg=$gg topic1=$topic topic2=@topics include=@include exclude=@exclude";
# Attempt to render each included page.
my %copied;
foreach my $topic (@topics) {
next unless grep { /^$topic/ } @include;
next if grep { /^$topic/ } @exclude;
publishTopic($web, $topic, $skin, \%copied,
$topicsearch, $zip);
}
Results:
Software error:
gg=1
topic1=WebHome
topic2=AbstractDbObjectStructure AbstractTable AppServer BrandNewUser CalendarClasses CodeGenerators CompetitiveProductOne DataBaseDesign DataBaseDesignHierarchy DataBases DataField DataObjects DdlJobStep DesignPointDataModel DesignPointDomains DesignPointRecoverability DesignPointUi DesignPoints EndUsers ExecutableObject FuncreqLaunch FunctionalDesign FunctionalRequirements GlideDataBaseExample1 GlideDataBaseWmsJob GlideDataListExample1 GlideTableDefines GuiConsiderations JesInterfaces JobObjects NTierArchitecture NleafAgent NleafAgentNotes NleafCalendars NleafDefine NleafDependencies NleafExecute NleafJobs NleafQueues NleafSchedule NleafScheduler NleafVariables ObjUser PersonalScheduler ProductCustomer QueueingDiscussion SchedEngine SchedEngineExample1 SchedMethodExecute ScheduleObject SchedulerObjects SecurityConsiderations SmfConsiderations SqlJobStepDdMysql StructureObject TableSchedData TableSchedHistory TableSchedInstance TwikiFilePage TwikiTags WebBottomBar WebChanges WebChangesAlert WebHome WebIndex WebLeftBar WebLeftBarCookbook WebLeftBarExample WebLeftBarPersonalTemplate WebNotify WebPreferences WebRss WebRssBase WebSearch WebSearchAdvanced WebSiteTools WebStatistics WebTopBar WebTopicEditTemplate WebTopicList WebTopicNonWikiTemplate WebTopicViewTemplate WorkLoadManagement XmlJobStep XmlJobStepDd
include=WebHome
exclude=
at /var/www/twiki/lib/TWiki/Contrib/Publish.pm line 304.
For help, please send mail to the webmaster (
root@localhost), giving this error message and the time and date of the error.
Environment
--
BradTaylor - 04 Feb 2005
Answer
Thanks, posted note to
PublishAddOnDev
--
PeterThoeny - 06 Apr 2005