Bug #97826
closedCritical error with opcache_invalidate() function
100%
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/)
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
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
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
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
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
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
Updated by Shehfinaz Kadavil over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 5a8d863c81e9b0dbc6b4ba6190f641c256e89d6a.
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
Updated by Shehfinaz Kadavil over 2 years ago
- Status changed from Under Review to Resolved
Applied in changeset e05a1c8abe0f9dd97e65116cdd612dcaeaa4fbb5.
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 ?