Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory fusiondirectory
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #4522
Something went wrong while setting issue due date.
Closed
Open
Issue created 9 years ago by bmortier@bmortierMaintainer
  • New related issue

  • New related issue

setup: __fusiondirectory_autoload tries to load smarty classes

Closed

setup: __fusiondirectory_autoload tries to load smarty classes

When starting index.php, I got the error message:

      Fatal error: cannot instantiate class 'Smarty_Internal_Compile_T' - try running 'fusiondirectory-setup --update-cache' to fix this

However, smarty is not part of the fusiondirectory class cache. I commented out the part which throws the error in includes/function.inc (line 130 - 140) and everything works fine, fusiondirectory is fully operational.

So the question is: Why does above smarty class get on the list of autoloaded classes?

Smarty is not in the php include_path. It is only defined in include/php_setup.inc : require(""/usr/local/share/smarty3/Smarty.class.php"); And in include/variables.inc: define("SMARTY", "/usr/local/share/smarty3/Smarty.class.php"); (Does this have any effect?)

(from redmine: issue id 4522, created on 2016-02-18, closed on 2016-08-23)

  • Relations:
    • relates #4828
  • Custom Fields:
    • Bug in version: 1.0.9.3

    Tasks

    0

    No tasks are currently assigned. Use tasks to break down this issue into smaller parts.

    Linked items
    0

    Link issues together to show that they're related. Learn more.

    Activity


    • bmortier
      bmortier @bmortier · 9 years ago
      Author Maintainer

      __fusiondirectory_autoload is called on any class which is not found by PHP. So here it means it did not found Smarty_Internal_Compile_T while it was somehow needed.

      Which distribution are you using?

      In php_setup.inc I have require(SMARTY); So it does use the define from variables.inc Is this path valid on your system?

      (from redmine: written on 2016-02-29)

      By Côme Chilliet on 2017-09-02T15:26:38 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 8 years ago
      Author Maintainer

      Since 1.0.14 autoload ignore any Smarty_* classes to support for new smarty versions which uses their own autoloader.

      (from redmine: written on 2016-07-11)

      By Côme Chilliet on 2017-09-02T15:26:38 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 8 years ago
      Author Maintainer

      Close issue

      (from redmine: written on 2016-08-23)

      By bmortier on 2017-09-02T15:26:38 (imported from GitLab)

    • bmortier closed 7 years ago

      closed

      By bmortier on 2017-09-02T15:26:39 (imported from GitLab)

    • bmortier added Fixed label 6 years ago

      added Fixed label

      By bmortier on 2018-09-24T14:04:36 (imported from GitLab)

    • bmortier removed Fixed label 2 years ago

      removed Fixed label

    • bmortier removed Bugs label 2 years ago

      removed Bugs label

    • bmortier added PJ1802-0188 fusiondirectory-core labels 2 years ago

      added PJ1802-0188 fusiondirectory-core labels

    Please register or sign in to reply
    Assignee
    bmortier's avatar
    bmortier
    Assign to
    Labels
    0
    None
    0
    None
      Assign labels
    • Manage project labels

    Milestone
    No milestone
    None
    Due date
    None
    None
    None
    Time tracking
    No estimate or time spent
    Confidentiality
    Not confidential
    Not confidential

    You are going to turn on confidentiality. Only project members with at least the Reporter role, the author, and assignees can view or be notified about this issue.

    Lock issue
    Unlocked
    0
    0 Participants
    Reference:

    Menu

    Explore Projects Groups Topics Snippets