Project

General

Profile

Actions

Bug #97826

closed

Critical error with opcache_invalidate() function

Added by Fronzes Philippe over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-06-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

On a shared web hosting, i have this error :
typo3_src-11.5.12/typo3/sysext/core/Classes/Service/OpcodeCacheService.php, line 41: Call to undefined function TYPO3\CMS\Core\Service\opcache_invalidate()

It's because the opcache.restrict_api parameter is very restrictive, and deny TYPO3 scripts to access the function.

The isClearable() function in the OpcodeCacheService class should not only check if the function is enable, but also if the function exists (see for example this Wordpress check: https://developer.wordpress.org/reference/functions/wp_opcache_invalidate/)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #90838: Errors when opcache_invalidate or opcache_reset are disabled for security reasonsClosed2020-03-26

Actions
Actions #1

Updated by Fronzes Philippe over 2 years ago

  • Related to Bug #90838: Errors when opcache_invalidate or opcache_reset are disabled for security reasons added
Actions #2

Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75126

Actions #3

Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75126

Actions #4

Updated by Gerrit Code Review over 2 years ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75126

Actions #5

Updated by Gerrit Code Review over 2 years ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75126

Actions #6

Updated by Gerrit Code Review over 2 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75135

Actions #7

Updated by Shehfinaz Kadavil over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Gerrit Code Review over 2 years ago

  • Status changed from Resolved to Under Review

Patch set 2 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75135

Actions #9

Updated by Shehfinaz Kadavil over 2 years ago

  • Status changed from Under Review to Resolved
Actions #10

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions #11

Updated by Florian Rival almost 2 years ago

  • TYPO3 Version changed from 11 to 10

The problem is the same with TYPO3 V10, this correction could easily be set in TYPO3 V10.
Did you plan that ?

Actions

Also available in: Atom PDF