Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19585

Undefined variable sectionID when running XML installer

    XMLWordPrintable

Details

    Description

      When running the teamroom XML installer, the following output is visible in the console, showing PHP notices regarding an undefined variable "sectionID" being referenced:

      Checking requirements...
      Trying to install data from XML ...
      Step 1: Check requirements
      Step 2: Creating sections
      PHP Notice:  Undefined variable: sectionID in /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/xmlinstallerhandler/ezcreatesection.php on line 48
      PHP Stack trace:
      PHP   1. {main}() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/bin/php/xmlinstaller.php:0
      PHP   2. eZXMLInstaller->proccessXML() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/bin/php/xmlinstaller.php:144
      PHP   3. eZXMLInstallerHandlerManager->executeHandler() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/classes/ezxmlinstaller.php:70
      PHP   4. eZCreateSection->execute() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/classes/ezxmlinstallerhandlermanager.php:99
      
      Notice: Undefined variable: sectionID in /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/xmlinstallerhandler/ezcreatesection.php on line 48
      
      Call Stack:
          0.0005     673584   1. {main}() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/bin/php/xmlinstaller.php:0
          0.9169   29145192   2. eZXMLInstaller->proccessXML() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/bin/php/xmlinstaller.php:144
          0.9313   30604384   3. eZXMLInstallerHandlerManager->executeHandler() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/classes/ezxmlinstaller.php:70
          0.9313   30605624   4. eZCreateSection->execute() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/classes/ezxmlinstallerhandlermanager.php:99
      
      PHP Notice:  Undefined variable: sectionID in /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/xmlinstallerhandler/ezcreatesection.php on line 48
      PHP Stack trace:
      PHP   1. {main}() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/bin/php/xmlinstaller.php:0
      PHP   2. eZXMLInstaller->proccessXML() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/bin/php/xmlinstaller.php:144
      PHP   3. eZXMLInstallerHandlerManager->executeHandler() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/classes/ezxmlinstaller.php:70
      PHP   4. eZCreateSection->execute() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/classes/ezxmlinstallerhandlermanager.php:99
      
      Notice: Undefined variable: sectionID in /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/xmlinstallerhandler/ezcreatesection.php on line 48
      
      Call Stack:
          0.0005     673584   1. {main}() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/bin/php/xmlinstaller.php:0
          0.9169   29145192   2. eZXMLInstaller->proccessXML() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/bin/php/xmlinstaller.php:144
          0.9432   30604536   3. eZXMLInstallerHandlerManager->executeHandler() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/classes/ezxmlinstaller.php:70
          0.9433   30605880   4. eZCreateSection->execute() /var/www/apache2php53/ezp5/app/ezpublish_testsystem/.run/extension/ezxmlinstaller/classes/ezxmlinstallerhandlermanager.php:99
      
      Step 3: Creating classes
      	Class 'image' will be updated.
      		Class 'image' will be extended.
      		Class 'image' will get updated Attribute 'name'.
      		Class 'image' will get updated Attribute 'caption'.
      		Class 'image' will get updated Attribute 'image'.
      		Class 'image' will get updated Attribute 'tags'.
      		Adjusting attributes placement.
      	Class 'quicktime' will be updated.
      		Class 'quicktime' will be extended.
      		Class 'quicktime' will get updated Attribute 'name'.
      		Class 'quicktime' will get updated Attribute 'description'.
      		Class 'quicktime' will get updated Attribute 'file'.
      		Class 'quicktime' will get updated Attribute 'tags'.
      		Adjusting attributes placement.
      	Class 'real_video' will be updated.
      		Class 'real_video' will be extended.
      		Class 'real_video' will get updated Attribute 'name'.
      		Class 'real_video' will get updated Attribute 'description'.
      		Class 'real_video' will get updated Attribute 'file'.
      		Class 'real_video' will get updated Attribute 'tags'.
      		Adjusting attributes placement.
      	Class 'file' will be updated.
      		Class 'file' will be extended.
      		Class 'file' will get new Attribute 'lock'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'windows_media' will be updated.
      		Class 'windows_media' will be extended.
      		Class 'windows_media' will get updated Attribute 'name'.
      		Class 'windows_media' will get updated Attribute 'description'.
      		Class 'windows_media' will get updated Attribute 'file'.
      		Class 'windows_media' will get updated Attribute 'tags'.
      		Adjusting attributes placement.
      	Class 'user' will be updated.
      		Class 'user' will be extended.
      		Class 'user' will get updated Attribute 'first_name'.
      		Class 'user' will get updated Attribute 'last_name'.
      		Class 'user' will get updated Attribute 'user_account'.
      		Class 'user' will get updated Attribute 'signature'.
      		Class 'user' will get updated Attribute 'image'.
      		Adjusting attributes placement.
      	Class 'teamroom_comment' will be updated.
      		Class 'teamroom_comment' will be newly created.
      		Class 'teamroom_comment' will get new Attribute 'subject'.
      		Class 'teamroom_comment' will get new Attribute 'message'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_blog' will be updated.
      		Class 'teamroom_blog' will be newly created.
      		Class 'teamroom_blog' will get new Attribute 'name'.
      		Class 'teamroom_blog' will get new Attribute 'description'.
      		Class 'teamroom_blog' will get new Attribute 'tags'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_blog_post' will be updated.
      		Class 'teamroom_blog_post' will be newly created.
      		Class 'teamroom_blog_post' will get new Attribute 'title'.
      		Class 'teamroom_blog_post' will get new Attribute 'body'.
      		Class 'teamroom_blog_post' will get new Attribute 'publication_date'.
      		Class 'teamroom_blog_post' will get new Attribute 'unpublish_date'.
      		Class 'teamroom_blog_post' will get new Attribute 'tags'.
      		Class 'teamroom_blog_post' will get new Attribute 'enable_comments'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_frontpage' will be updated.
      		Class 'teamroom_frontpage' will be newly created.
      		Class 'teamroom_frontpage' will get new Attribute 'name'.
      		Class 'teamroom_frontpage' will get new Attribute 'billboard'.
      		Class 'teamroom_frontpage' will get new Attribute 'left_column'.
      		Class 'teamroom_frontpage' will get new Attribute 'center_column'.
      		Class 'teamroom_frontpage' will get new Attribute 'right_column'.
      		Class 'teamroom_frontpage' will get new Attribute 'bottom_column'.
      		Class 'teamroom_frontpage' will get new Attribute 'tags'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_wiki' will be updated.
      		Class 'teamroom_wiki' will be newly created.
      		Class 'teamroom_wiki' will get new Attribute 'title'.
      		Class 'teamroom_wiki' will get new Attribute 'body'.
      		Class 'teamroom_wiki' will get new Attribute 'tags'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_wiki_page' will be updated.
      		Class 'teamroom_wiki_page' will be newly created.
      		Class 'teamroom_wiki_page' will get new Attribute 'title'.
      		Class 'teamroom_wiki_page' will get new Attribute 'body'.
      		Class 'teamroom_wiki_page' will get new Attribute 'tags'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_infobox' will be updated.
      		Class 'teamroom_infobox' will be newly created.
      		Class 'teamroom_infobox' will get new Attribute 'header'.
      		Class 'teamroom_infobox' will get new Attribute 'box_icon'.
      		Class 'teamroom_infobox' will get new Attribute 'content'.
      		Class 'teamroom_infobox' will get new Attribute 'url'.
      		Class 'teamroom_infobox' will get new Attribute 'module_url'.
      		Class 'teamroom_infobox' will get new Attribute 'check_access'.
      		Class 'teamroom_infobox' will get new Attribute 'relates_to'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_file' will be updated.
      		Class 'teamroom_file' will be newly created.
      		Class 'teamroom_file' will get new Attribute 'name'.
      		Class 'teamroom_file' will get new Attribute 'category'.
      		Class 'teamroom_file' will get new Attribute 'description'.
      		Class 'teamroom_file' will get new Attribute 'thumbnail'.
      		Class 'teamroom_file' will get new Attribute 'file'.
      		Class 'teamroom_file' will get new Attribute 'tags'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_forum' will be updated.
      		Class 'teamroom_forum' will be newly created.
      		Class 'teamroom_forum' will get new Attribute 'name'.
      		Class 'teamroom_forum' will get new Attribute 'description'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_forum_topic' will be updated.
      		Class 'teamroom_forum_topic' will be newly created.
      		Class 'teamroom_forum_topic' will get new Attribute 'subject'.
      		Class 'teamroom_forum_topic' will get new Attribute 'message'.
      		Class 'teamroom_forum_topic' will get new Attribute 'sticky'.
      		Class 'teamroom_forum_topic' will get new Attribute 'notify_me'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_forum_reply' will be updated.
      		Class 'teamroom_forum_reply' will be newly created.
      		Class 'teamroom_forum_reply' will get new Attribute 'subject'.
      		Class 'teamroom_forum_reply' will get new Attribute 'message'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_event' will be updated.
      		Class 'teamroom_event' will be newly created.
      		Class 'teamroom_event' will get new Attribute 'title'.
      		Class 'teamroom_event' will get new Attribute 'short_title'.
      		Class 'teamroom_event' will get new Attribute 'text'.
      		Class 'teamroom_event' will get new Attribute 'category'.
      		Class 'teamroom_event' will get new Attribute 'event_date'.
      		Class 'teamroom_event' will get new Attribute 'location'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_event_calendar' will be updated.
      		Class 'teamroom_event_calendar' will be newly created.
      		Class 'teamroom_event_calendar' will get new Attribute 'title'.
      		Class 'teamroom_event_calendar' will get new Attribute 'short_title'.
      		Class 'teamroom_event_calendar' will get new Attribute 'view'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_news_folder' will be updated.
      		Class 'teamroom_news_folder' will be newly created.
      		Class 'teamroom_news_folder' will get new Attribute 'short_name'.
      		Class 'teamroom_news_folder' will get new Attribute 'name'.
      		Class 'teamroom_news_folder' will get new Attribute 'short_description'.
      		Class 'teamroom_news_folder' will get new Attribute 'description'.
      		Class 'teamroom_news_folder' will get new Attribute 'show_children'.
      		Class 'teamroom_news_folder' will get new Attribute 'tags'.
      		Class 'teamroom_news_folder' will get new Attribute 'publish_date'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_personal_frontpage' will be updated.
      		Class 'teamroom_personal_frontpage' will be newly created.
      		Class 'teamroom_personal_frontpage' will get new Attribute 'title'.
      		Class 'teamroom_personal_frontpage' will get new Attribute 'short_title'.
      		Class 'teamroom_personal_frontpage' will get new Attribute 'description'.
      		Class 'teamroom_personal_frontpage' will get new Attribute 'num_of_columns'.
      		Class 'teamroom_personal_frontpage' will get new Attribute 'allow_minimization'.
      		Class 'teamroom_personal_frontpage' will get new Attribute 'default_arrangement'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_room' will be updated.
      		Class 'teamroom_room' will be newly created.
      		Class 'teamroom_room' will get new Attribute 'name'.
      		Class 'teamroom_room' will get new Attribute 'access_type'.
      		Class 'teamroom_room' will get new Attribute 'description'.
      		Class 'teamroom_room' will get new Attribute 'default_arrangement'.
      		Class 'teamroom_room' will get new Attribute 'feature_list'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_task_list' will be updated.
      		Class 'teamroom_task_list' will be newly created.
      		Class 'teamroom_task_list' will get new Attribute 'name'.
      		Class 'teamroom_task_list' will get new Attribute 'description'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_task' will be updated.
      		Class 'teamroom_task' will be newly created.
      		Class 'teamroom_task' will get new Attribute 'title'.
      		Class 'teamroom_task' will get new Attribute 'description'.
      		Class 'teamroom_task' will get new Attribute 'progress'.
      		Class 'teamroom_task' will get new Attribute 'planned_end_date'.
      		Class 'teamroom_task' will get new Attribute 'end_date'.
      		Class 'teamroom_task' will get new Attribute 'est_hours'.
      		Class 'teamroom_task' will get new Attribute 'est_minutes'.
      		Class 'teamroom_task' will get new Attribute 'tags'.
      		Class 'teamroom_task' will get new Attribute 'users'.
      		Class 'teamroom_task' will get new Attribute 'documents'.
      		Class 'teamroom_task' will get new Attribute 'priority'.
      		Class 'teamroom_task' will get new Attribute 'milestone'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_file_folder' will be updated.
      		Class 'teamroom_file_folder' will be newly created.
      		Class 'teamroom_file_folder' will get new Attribute 'name'.
      		Class 'teamroom_file_folder' will get new Attribute 'description'.
      		Class 'teamroom_file_folder' will get new Attribute 'tags'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_file_subfolder' will be updated.
      		Class 'teamroom_file_subfolder' will be newly created.
      		Class 'teamroom_file_subfolder' will get new Attribute 'name'.
      		Class 'teamroom_file_subfolder' will get new Attribute 'description'.
      		Class 'teamroom_file_subfolder' will get new Attribute 'tags'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_box_folder' will be updated.
      		Class 'teamroom_box_folder' will be newly created.
      		Class 'teamroom_box_folder' will get new Attribute 'name'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_milestone' will be updated.
      		Class 'teamroom_milestone' will be newly created.
      		Class 'teamroom_milestone' will get new Attribute 'title'.
      		Class 'teamroom_milestone' will get new Attribute 'closed'.
      		Class 'teamroom_milestone' will get new Attribute 'description'.
      		Class 'teamroom_milestone' will get new Attribute 'date'.
      		Class 'teamroom_milestone' will get new Attribute 'tags'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_milestone_folder' will be updated.
      		Class 'teamroom_milestone_folder' will be newly created.
      		Class 'teamroom_milestone_folder' will get new Attribute 'name'.
      		Class 'teamroom_milestone_folder' will get new Attribute 'short_name'.
      		Class 'teamroom_milestone_folder' will get new Attribute 'short_description'.
      		Class 'teamroom_milestone_folder' will get new Attribute 'description'.
      		Class 'teamroom_milestone_folder' will get new Attribute 'tags'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      	Class 'teamroom_lightbox' will be updated.
      		Class 'teamroom_lightbox' will be newly created.
      		Class 'teamroom_lightbox' will get new Attribute 'lightbox'.
      		Class 'teamroom_lightbox' will get new Attribute 'category'.
      		Adjusting attributes placement.
      		Updating content object attributes.
      Step 4: Content in media section
      	Created: Teamroom Image Pool
      	Created: Title Image
      	Created: Teamroom Box Icons
      	Created: Icon 1
      	Created: Icon 2
      	Created: Icon 3
      	Created: Icon 4
      	Created: Icon 5
      	Created: Icon 6
      	Created: Icon 7
      	Created: Icon 8
      	Created: Icon 9
      	Created: Icon 10
      	Created: Icon 11
      	Created: Icon 12
      	Created: Icon 13
      	Created: Icon 14
      	Created: Icon 15
      	Created: Icon 16
      	Created: Icon 17
      Step 5: Create teamroom content
      	Created: Teamrooms
      	Created: Boxes
      	Created: Lightbox selection
      	Created: My Teamrooms
      	Created: All Teamrooms
      	Created: Create Teamroom
      	[2_createteamroom_box] Object exists: Create Teamroom. Creating new version.
      	Created: Create Teamroom
      	Created: Lightboxes
      	Created: Latest Messages
      	Created: My Tasks
      	[2_teamrooms] Object exists: Teamrooms. Creating new version.
      	Created: Teamrooms
      Step 6: Creating siteaccess
      	Setting settings: settings/siteaccess/ezteamroom/site.ini
      	Setting settings: settings/siteaccess/ezteamroom/content.ini
      	Setting settings: settings/siteaccess/ezteamroom/event.ini
      	Setting settings: settings/siteaccess/ezteamroom/teamroom.ini
      	Setting settings: settings/siteaccess/ezteamroom/upload.ini
      	Setting settings: settings/siteaccess/ezteamroom/browse.ini
      	Setting settings: settings/override/teamroom.ini
      Step 7: Activating siteaccess
      	Setting settings: settings/override/site.ini
      	Setting settings: settings/siteaccess/ezwebin_site_admin/site.ini
      	Setting settings: settings/siteaccess/ezwebin_site_admin/contentstructuremenu.ini
      Step 8: Creating workflows
      	Workflow Group 'Teamroom' will be created.
      	Workflow 'Create Teamroom' will be created.
      	Workflow 'Approve Member Registration' will be created.
      	Workflow 'Set Teamroom Section' will be created.
      	Workflow 'Set Current Teamroom' will be created.
      	Workflow 'Post Publish Multiplexer' will be created.
      	Workflow 'Set Teamroom Membership' will be created.
      	Trigger 'content/publish/after' will be created/updated.
      	Trigger 'teamroom/register/before' will be created/updated.
      Step 9: Creating roles
      	Role 'Use Teamroom' will be created.
      	Role 'Use Lightbox' will be created.
      	Role 'Teamroom Member' will be created.
      	Role 'Teamroom Moderator' will be created.
      	Role 'Teamroom Read Forum' will be created.
      	Role 'Teamroom Use Forum' will be created.
      	Role 'Teamroom Read Blog' will be created.
      	Role 'Teamroom Use Blog' will be created.
      	Role 'Teamroom Read Calendar' will be created.
      	Role 'Teamroom Use Calendar' will be created.
      	Role 'Teamroom Read Documents' will be created.
      	Role 'Teamroom Use Documents' will be created.
      	Role 'Teamroom Read Wiki' will be created.
      	Role 'Teamroom Use Wiki' will be created.
      	Role 'Teamroom Read Tasks' will be created.
      	Role 'Teamroom Use Tasks' will be created.
      	Role 'Teamroom Read Milestones' will be created.
      	Role 'Teamroom Use Milestones' will be created.
      Step 10: Registering Role IDs
      	Setting settings: settings/override/teamroom.ini
      Step 11: Assigning roles
      	Assigned role 6: 11
      	Assigned role 7: 11
      Finished.
      

      Note: `ezpublish_testsystem/.run == ezpublish_legacy`

      Steps to reproduce

      Execute XML Installer for ezteamroom:
      php extension/ezxmlinstaller/bin/php/xmlinstaller.php --template=teamroom/installezteamroom --siteaccess=<SITEACCESS_NAME>

      Attachments

        Activity

          People

            Unassigned Unassigned
            filiped filiped
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m