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

Error while indexing new objects : "Attribute 'owner_name' does not exist" ( eZContentObject::attribute: )

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Medium Medium
    • 4.0.0, 4.0.0beta1
    • 3.10.0beta1
    • None
    • Operating System: Debian 2.6.18.dfsg.1-13etch4
      PHP Version: PHP 5.2.0-8+etch7
      Database and version: MySQL 5.0.32-Debian_7etch1-log
      Browser (and version): N/A

    Description

      'owner_name' is listed as one of the meta attributes of a Lucene document in eZSolr::metaAttributes (they will end up as "m_<meta-attribute>")

      Its value is supposed to be set according to the 'owner' attribute of a contentobject :
      line 164

                  // Add owner information.
                  if ( $owner = $contentObject->attribute( 'owner' ) )
                  {
                      // Set owner name
                      $doc->addField( 'm_owner_name', $owner->name( false, $languageCode ) );
                      [...]
                  }
      

      The problem lies before, at line 105:

              foreach( eZSolr::metaAttributes() as $attributeName )
              {
                  $metaAttributeValues[$attributeName] = $contentObject->attribute( $attributeName );
              }
      

      => 'owner_name' is not an existing content object attribute, hence the error.

      Steps to reproduce

      Just basically perform a big (just so it's easy to catch) publishing operation (like a subtree copy in the admin interface) and watch for the error log file.

      Attachments

        Activity

          People

            unknown unknown
            rba_ic rba_ic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: