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

Misleading error when using loadContent() incorrectly

    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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Nuno Oliveira (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: