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

Ini configuration files loading on extensions, problems on index.php

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.0.6, 4.0.7, 4.1.3, 4.1.4, 4.2.0, 4.3.0alpha1
    • Legacy > Extensions
    • None

    Description

      The ini files are not loaded properly in the index.php. If you move the ForceVirtualHost configuration to an extension the system does not take it, here is the code

           
      eZSys::init( 'index.php', $ini->variable( 'SiteAccessSettings', 'ForceVirtualHost' ) == 'true' );
      
      eZDebug::addTimingPoint( "Script start" );
      
      $uri = eZURI::instance( eZSys::requestURI() );
      $GLOBALS['eZRequestedURI'] = $uri;
      require_once "pre_check.php";
      
      // Check for extension
      require_once( 'kernel/common/ezincludefunctions.php' );
      eZExtension::activateExtensions( 'default' );
      
      

      As can be seen in the code the ForceVirtualHost policy is loaded before the ini files for extensions so if you configure that policy in a extension it won't be loaded by the system

      Steps to reproduce

      Put the ForceVirtualHost within an extension and remove it from the site.ini.append preset on the override setting folder, it will load the default configuration.

      Attachments

        Activity

          People

            unknown unknown
            manxon manxon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: