Brotli compression errors on php level

speedy200man

Member
Feb 20, 2017
16
1
53
Bucharest, Romania
cPanel Access Level
Root Administrator
Hi!
I follow these steps ( https://yeahlinux.com/install-brotli-apache-module-and-php-extension-in-cpanel-ea-4/ ) to enable and install brotli compression and now I have some errors. Can you please tell me how I can fix these errors?

php -i

Use of uninitialized value $cwd in string ne at /var/cpanel/ea4/ea_php_cli.pm line 322.
Use of uninitialized value $cwd in string eq at /var/cpanel/ea4/ea_php_cli.pm line 325.


Thank you!
Cezar
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
Hey there! Since cPanel doesn't provide that tool, our support is going to be extremely limited. Can you confirm that the PHP script works properly without that tool enabled? That section of the ea_php_cli.pm file is just establishing the environment for PHP.
 

speedy200man

Member
Feb 20, 2017
16
1
53
Bucharest, Romania
cPanel Access Level
Root Administrator
The PHP works properly with or without the brotli library. I installed the library through EasyApache (Apache modules) and then just installed the php extension via that script that takes care of the extension for all avalabile php versions.
Is it something I should be worried about? Could it be problematic for cpanel or apache or is that just a warning?
Thank you!