Page 1 of 1

Issues after version upgrade

Posted: Mon Apr 22, 2019 6:10 pm
by handleric
Hello,

after the last automatic upgrade hit my instance, im again seeing errors on the user interface and rerunning the installer is complaining about missing dependencies:

In the installer, it shows:
PHP Version: Unsupported (V7.3.3)
ZIP Enabled: Not Installed. (ZIP extension must be enabled)
PHP DISABLE_FUNCTIONS: Ok
PHP CLI Requirements: PHP CLI requirements failed while executing
"/usr/bin/php" "/var/www/html/timetrex/tools/unattended_upgrade.php" --config "/var/www/html/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer
Likely caused by having two PHP.INI files with different settings.

Detailed Error Messages

PHP CLI Requirements Output:
----WARNING----WARNING----WARNING-----
--------------------------------------
Minimum PHP Requirements are NOT met!!
--------------------------------------
Failed Requirements: PHPVersion,ZIP
--------------------------------------
PHP INI: /etc/php.ini
Process Owner: apache
--------------------------------------


My instance is running on CentOS 7 with Postgresql and PHP 7.3. Running yum list installed, I can see php73-php-pecl-zip.x86_64 listed as installed.

Re: Issues after version upgrade

Posted: Wed Apr 24, 2019 10:53 am
by mikeb
Can you please confirm the exact version of TimeTrex that you are using?

Re: Issues after version upgrade

Posted: Fri Apr 26, 2019 6:11 am
by handleric
the version on the login page states v11.5.0-20190301-035201

Re: Issues after version upgrade

Posted: Fri Apr 26, 2019 7:53 am
by mikeb
Please upgrade to the latest version (v11.5.1) and try again.

Re: Issues after version upgrade

Posted: Mon Apr 29, 2019 8:21 pm
by handleric
@mikeb - I manually upgraded to 11.5.1 as you suggested and it seems to have resolved the PHP version error, but i'm still getting an error about the ZIP extension dependency. Being that PHP_73 is the installed PHP package, php73-php-pecl-zip.x86_64 should be the proper package to run correct?


PHP CLI requirements failed while executing
"/usr/bin/php" "/var/www/html/timetrex/tools/unattended_upgrade.php" --config "/var/www/html/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer
Likely caused by having two PHP.INI files with different settings.Detailed Error Messages

PHP CLI Requirements Output:
----WARNING----WARNING----WARNING-----
--------------------------------------
Minimum PHP Requirements are NOT met!!
--------------------------------------
Failed Requirements: ZIP
--------------------------------------
PHP INI: /etc/php.ini
Process Owner: apache
--------------------------------------

Re: Issues after version upgrade

Posted: Tue Apr 30, 2019 11:29 am
by mikeb
Yes, you will need to install the PHP-ZIP extension in the normal way to do that for your specific PHP instance.

Re: Issues after version upgrade

Posted: Tue Apr 30, 2019 9:23 pm
by handleric
@mikeb - in initial inspection the extension was already installed (wasn't it always a requirement?). I did go ahead and remove and reinstall it which made the detailed error message go away and it no longer says "Failed PHP CLI Requirements Output", but although that message about the zip extension cleared the one above next to "Zip enabled" still says not installed.

How is it possible that one validation can determine the ZIP extension in installed and healthy, but the other function validating the same thing clears? Do you thing this is an application bug?

I have again confirmed that php-pecl-zip.x86_64 is installed and functioning.

Re: Issues after version upgrade

Posted: Wed May 01, 2019 9:30 am
by mikeb
PHP extensions can be "installed" but not "enabled". Please make sure that your ZIP extension is both installed and enabled.

Additionally, extensions can be installed/enabled for PHP when used from a web server, but not for PHP when used from the command line (CLI). So you need to make sure its installed/enabled for both the web server and CLI.