Error After Installing Shaper Helix Ultimate Template 2.1.2 - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

Error After Installing Shaper Helix Ultimate Template 2.1.2

Peter Spiegelenburg

Peter Spiegelenburg

Template 6 months ago

Hello,

I just installed the Plugin for Helix Ulitmate. Installation was good. Then I installed the Template Helix Ulitmate V2.1.2. This was not good. I get lots of errors, all the same

Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in /home/psw2019026/domains/dran**********.nl/public_html/joomla5/libraries/vendor/joomla/filesystem/src/File.php on line 337

I tried to remove the installation, removed the template and the plugin, reinstalled, but still the same error. Also reinstalled the Joomla Core Files, but no solution.

When editing the template, I get also errors:

Is there anyone here on the forum with the solution how to solve this?

Using: Joomla 5.3.0 PhP 8.3, OPCache is disabled. When enabling I get the same error. Helix Ultimate 2.1.2

Regards, Peter

0
5 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 6 months ago #191244

Hi Peter,

Probably you have that issue first time, and you're using Helix much longer, right?!


"Warning: Zend OPcache API is restricted by 'restrict_api' configuration directive"

...means that your PHP configuration has a setting that restricts access to OPcache functions (like opcache_get_status() or opcache_reset()) unless they're called from specific file paths.


How to Fix It

You’ll need to edit the php.ini file and either remove or adjust the opcache.restrict_api directive.


Option 1: Disable the restriction entirely

In your php.ini (or in .user.ini / .htaccess, depending on your setup):

opcache.restrict_api =

Just leave it empty, which removes the restriction.


Option 2: Allow a specific path

If you only want to allow OPcache access from certain directories, specify the full path:

opcache.restrict_api = /var/www/my-allowed-folder

This allows PHP scripts located in /var/www/my-allowed-folder to use OPcache functions. Path you already know from the error message, remember only folder, not file.


After changes, restart your web server or PHP-FPM. If above will not help, contact with Hosting Provider Support! From our side we cannot change anything on your server.

0
Peter Spiegelenburg
Peter Spiegelenburg
Accepted Answer
6 months ago #191256

Hi Paul,

thanks for your extended answers!

But, first issue: I am on a shared hosting, my other Joomla websites don't have these issues. And second, because I am on shared hosting, I don't have access to the mentioned php.ini files. At least, I don't think I do. I also looked with the file explorer but can't find them.

Do you think I have to contact the provider and ask them how to resolve it?

Regards, Peter

0
D
DSmith
Accepted Answer
6 months ago #191257

Not sure if this will help but in shared hosting enviroments you are correct, you will not have access to the php.ini. So you must user the .user.ini override file for your website. Create the file in your root directory and place the command it it. It should accept the override. If it does not, you should contact your hosting provider for complete instructions on how to add adjustments to php.

0
Peter Spiegelenburg
Peter Spiegelenburg
Accepted Answer
6 months ago #191272

Hi DSmith,

thanks for your answer. I have created a file called .user.ini.

And It is created in the root-folder: But I still have the error.

After some testing I decided to install a clean Joomla on the same account. Then installed onlyy the Helix Ulitmate Plugin and Helix Ultimate Template. Now there is no error. Should the fault than not be something else? Maybe an older plugin or component?

Thanks to all the people helping me with this. Regards, Peter

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 6 months ago #191292

You're welcome.

The Twilight Zone is also in Joomla World from time to time. This is not 0101 as they promised.

0