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

Call to undefined function ezi18n()

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • 4.3.0alpha1
    • Misc
    • None

    Description

      File: kernel/classes/ezcontentobjecttreenode.php
      Line: 5108
      Message: Call to undefined function ezi18n()
      Stacktrace:
      #0 eZContentObjectTreeNode::makeObjectsArray() called at [/home/patrick.allaert/Projets/ezpublish/kernel/classes/ezcontentobjecttreenode.php:5108]
      #1 eZContentObjectTreeNode::makeObjectsArray() called at [/home/patrick.allaert/Projets/ezpublish/kernel/classes/ezcontentobjecttreenode.php:3099]
      #2 eZContentObjectTreeNode::fetch() called at [/home/patrick.allaert/Projets/ezpublish/kernel/content/treemenu.php:148]
      #3 include(/home/patrick.allaert/Projets/ezpublish/kernel/content/treemenu.php) called at [/home/patrick.allaert/Projets/ezpublish/lib/ezutils/classes/ezprocess.php:66]
      #4 eZProcess->runFile() called at [/home/patrick.allaert/Projets/ezpublish/lib/ezutils/classes/ezprocess.php:41]
      #5 eZProcess::run() called at [/home/patrick.allaert/Projets/ezpublish/lib/ezutils/classes/ezmodule.php:1582]
      #6 eZModule->run() called at [/home/patrick.allaert/Projets/ezpublish/index_treemenu.php:172]

      A 'require_once' can be included at the top of kernel/classes/ezcontentobjecttreenode.php to solve this issue, however many files are using this function an don't require_once this file.

      In the current situation, the ezi18n() function is used from 261 different files while only 45 are including it.

      A better approach would be to have an eZi18n class to wrap this function so that the autoloader mechanism can do his job.

      Attachments

        Activity

          People

            andre1 andre1
            patrick.allaert patrick.allaert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: