Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, PublishAddOn
Server OS: linuxx
Web server: Apache/2.0.40 (Red Hat Linux)
Perl version: 5.8.6
Client OS: windows xp pro
Web Browser: firefox
Categories: Add-Ons

-- BradTaylor - 04 Feb 2005

Answer

Thanks, posted note to PublishAddOnDev

-- PeterThoeny - 06 Apr 2005

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2005-04-06 - PeterThoeny
 
  • 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.