Closed guydavis closed 4 years ago
you can try installing composer and updating dibi.
Thanks for the quick response. I've installed composer
as mentioned:
sudo apt-get install curl php-cli php-mbstring git unzip
cd /tmp && curl https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
sudo apt install php7.4-ldap
cd /opt/organizr/html/api
However, it shows Nothing to install or update
for dibi\dibi:
root@gandalf:/opt/organizr/html/api# composer outdated
Do not run Composer as root/super user! See https://getcomposer.org/root for details
adldap2/adldap2 v10.0.2 v10.2.3 A PHP LDAP Package for humans.
composer/semver 1.4.2 1.5.1 Semver library that offers utilities, version constraint parsing and validation.
dibi/dibi v3.2.3 v4.1.2 Dibi is Database Abstraction Library for PHP
guzzlehttp/guzzle 6.3.3 6.5.2 Guzzle is a PHP HTTP client library
guzzlehttp/psr7 1.4.2 1.6.1 PSR-7 message implementation that also provides common utility methods
illuminate/contracts v5.8.0 v7.3.0 The Illuminate Contracts package.
layershifter/tld-database 1.0.64 1.0.69 Database abstraction for Public Suffix List
layershifter/tld-extract 2.0.0 2.0.1 TLDExtract, library for extracting parts of domain, e.q. domain parser
Package layershifter/tld-extract is abandoned, you should avoid using it. No replacement was suggested.
layershifter/tld-support 1.1.1 1.1.1 Support package for TLDDatabase and TLDExtract
Package layershifter/tld-support is abandoned, you should avoid using it. No replacement was suggested.
lcobucci/jwt 3.2.2 3.3.1 A simple library to work with JSON Web Token and JSON Web Signature
paragonie/constant_time_encoding v2.2.2 v2.3.0 Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)
paragonie/sodium_compat v1.6.4 v1.13.0 Pure PHP implementation of libsodium; uses the PHP extension if it exists
phpmailer/phpmailer v6.0.3 v6.1.5 PHPMailer is a full-featured email creation and transfer class for PHP
pragmarx/google2fa v3.0.3 v7.0.0 A One Time Password Authentication package, compatible with Google Authenticator.
psr/log 1.1.0 1.1.3 Common interface for logging libraries
pusher/pusher-php-server v3.2.0 v4.1.1 Library for interacting with the Pusher REST API
symfony/polyfill-mbstring v1.10.0 v1.14.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56 v1.9.0 v1.14.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php72 v1.10.0 v1.14.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-util v1.9.0 v1.14.0 Symfony utilities for portability of PHP codes
symfony/var-dumper v4.2.3 v5.0.5 Symfony mechanism for exploring and dumping PHP variables
tightenco/collect v5.7.27 v7.3.0 Collect - Illuminate Collections as a separate package.
root@gandalf:/opt/organizr/html/api# composer update dibi/dibi
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package layershifter/tld-extract is abandoned, you should avoid using it. No replacement was suggested.
Package layershifter/tld-support is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
root@gandalf:/opt/organizr/html/api#
The composer.json file I have seems to require:
"dibi/dibi": "^3.1",
Any further tips are greatly appreciated.
edit that composer file to:
"dibi/dibi": "^4.1",
then run the update again.
Thanks. Tried that and got:
root@gandalf:/opt/organizr/html/api# composer update dibi/dibi
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
- Updating dibi/dibi (v3.2.3 => v4.1.2): Downloading (100%)
Package layershifter/tld-extract is abandoned, you should avoid using it. No replacement was suggested.
Package layershifter/tld-support is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
Then systemctl restart php7.4-fpm
and checked the Organizr login. No change and still see this in the nginx error.log:
2020/03/25 14:29:52 [error] 1137#1137: *1505 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteResult.php on line 99PHP message: PHP Notice: Undefined offset: 0 in /opt/organizr/html/api/vendor/dibi/dibi/src/Dibi/Drivers/SqliteRes
Hmmm, can you open an issue here:
https://github.com/dg/dibi/issues
Also what is the full php version installed?
Done, created dibi issue
PHP Version: 7.4.4-1+ubuntu16.04.1+deb.sury.org+1
Thanks for the help,
Edit: Turns out I can't rollback due to the PPA provider. Stuck without Organizr for now.
On my test machine - I'm running 7.4.1. I will update to 7.4.4 some time this week to test. Thanks!
It seems that PHP 7.4.4 is broken, probably related to https://bugs.php.net/bug.php?id=79294
Woah, dibi fixed this real quick by releasing 4.1.3 just this evening. Earlier update to 4.1.2 this afternoon had failed, but 4.1.3 is now working. I have Organizr home page again! Thanks very much.
Organizr Version: V 2.x
Branch: Develop
WebServer: Nginx + Php7.4-fpm
Operating System: Ubuntu 16.04
Problem Description:
Existing Organizr install was working well, until I applied recently updates which included php7.4 updates such as php7.4-sqlite3. After restarting the next day, I am no longer to login into Organizr (Plex SSO) login which was working fine. The login succeeds with Plex, but never returns Organizr homepage. It just times out spinning as shown:
/opt/organizr/db/organizrLog.json shows successful login:
/var/log/nginx/error.log shows this error however:
/var/log/apt/history.log last update