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

Call to undefined function ezi18n()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.3.0alpha1
    • Fix Version/s: None
    • Component/s: Misc
    • Labels:
      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

          Issue Links

            Activity

              People

              Assignee:
              andre1 André R
              Reporter:
              patrick.allaert Patrick Allaert
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: