News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

OPcache API is restricted by "restrict_api"

Started by dodos26, August 22, 2022, 03:59:45 PM

Previous topic - Next topic

dodos26

I have thousands of bugs since yesterday. Dont change web files.

2: Zend OPcache API is restricted by "restrict_api" configuration directive
File: /www/Sources/Load.php
Line: 2824

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

dodos26

My provider says it didn't change anything. and the mistakes disappeared the next day.  :o

Doug Heffernan

Quote from: dodos26 on August 22, 2022, 03:59:45 PMI have thousands of bugs since yesterday. Dont change web files.

You mean error messages, right?

Anyways, this error is related to Zend OPCache API access being restricted.

https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.restrict-api

The OPCache setting in php.ini need to be edited and set to blank:

i.e:

opcache.restrict_api=""
Quote from: dodos26 on August 24, 2022, 02:10:28 PMMy provider says it didn't change anything. and the mistakes disappeared the next day.  :o

I take it that the issue has been solved then? In that case I am marking this as solved. In case I misunderstood you, please feel free to mark it as unsolved.

dodos26

It again back 2.0.19:
2822: // Invalidate the opcode cache
2823: if (function_exists('opcache_invalidate'))
==>2824:     opcache_invalidate($cachedir . '/data_' . $key . '.php', true);
2825:
2826: if (function_exists('apc_delete_file'))
2827: @apc_delete_file($cachedir . '/data_' . $key . '.php');

/Sources/Load.php
Created on every page refresh, one for Guest one for Me (admin user) in this same time.
What i did i was using incognito trubu in chrome for guest test.

You cannot view this attachment.
You cannot view this attachment.

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

dodos26

#6
He insists they didn't change anything. Please help.. let some developer clearly admit that it is the fault of the service provider. I installed a test new clean forum, the problem I still have, I informed them about it.

"On the OVHcloud side, the configuration was not changed. In order to make the proper configuration, I recommend contacting a forum system specialist.

If the information provided does not exhaust the topic, I invite you to describe your expectations in detail in response to my message."

QuoteAnd where is such an option, I looked for it and I do not see such a contact category.

QuoteContacting a specialist for your forum system is independent of OVHcloud. If in doubt about this contact, I recommend contacting your IT specialist.

QuoteAfter all, I wrote that I contacted the developers.. Who the fool are you trying to make, I gave you a link to a discussion where the dev says that something in the opcache_invalidate area must have been blocked.
I looked through php ini and I see clearly in black and white it is limited.. A few years ago, the problem suddenly appeared, of course, when I wrote to you, the problem disappeared and you claimed that nothing had changed. And now you've blocked something again and pretend that you found a fool who will let go..

*Links removed as requested by user -Lex *
https://www.simplemachines.org/community/index.php?topic=583355.0

The setting should be:
opcache.restrict_api=""
And you put limits
opcache.restrict_api /home/ovh/fpm7.4/opcache-status.php /home/ovh/fpm7.4/opcache-status.php

Advertisement: