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

Misleading error when using loadContent() incorrectly

    XMLWordPrintable

    Details

      Description

      When using the function loadContent() incorrectly, a misleading error is displayed:

       
      $content = $this->repository->getContentService()->loadContent( $location->getContentInfo() );
      

      "An exception has been thrown during the rendering of a template ("Warning: trim() expects parameter 1 to be string, object given")."

      The error should be improved to make more sense.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: