Bug #23525 Bug Fixed

failed update to 4.1.2

Version: 4.1.2 Reporter: Büro Ballmann Weber

dear ee-support,

I just tried to install your newest update when I ran into this error-message right after hitting “update”:

Warning Zend OPcache API is restricted by “restrict_api” configuration directive ee/EllisLab/ExpressionEngine/Service/Updater/Runner.php, line 108

Severity: E_WARNING

kindest regards, matthias

  • In system/ee/installer/controllers/wizard.php around line 2019 edit to:

    // Clear any caches of the config file
         if (function_exists('apc_delete_file'))
         {
          @apc_delete_file($this->config->config_path) || apc_clear_cache();
         }
    
         if (function_exists('opcache_invalidate'))
         {
          // Check for restrict_api path restriction
          if (($opcache_api_path = ini_get('opcache.restrict_api')) && stripos(SYSPATH, $opcache_api_path) !== 0)
          {
           return TRUE;
          }
    
          opcache_invalidate($this->config->config_path);
         }
    
         return TRUE;
        }

    and in system/ee/installer/updater/EllisLab/ExpressionEngine/Updater/Service/Updater/Runner.php around 277

    if (function_exists('opcache_reset'))
       {
          // Check for restrict_api path restriction
          if (($opcache_api_path = ini_get('opcache.restrict_api')) && stripos(SYSPATH, $opcache_api_path) !== 0)
          {
           return;
          }
    
        opcache_reset();
       }
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases