You are not logged in.

#1 2017-12-15 20:17:06

maxmoon
Member
Registered: 2014-11-30
Posts: 16

PHP 7 issue with mcrypt (TT-RSS & Owncloud don't work anymore)

After updating my system, the websites on my server tt-rss and owncloud don't work anymore. The command

php -m

gives me:

PHP Warning:  PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20170718
These options need to match
 in Unknown on line 0
[PHP Modules]
apcu
bz2
Core
ctype
curl
date
dom
fileinfo
filter
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
soap
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

The Website tt-rss shows the message:

Startup failed
Tiny Tiny RSS was unable to start properly. This usually means a misconfiguration or an incomplete upgrade. Please fix errors indicated by the following messages:

FEED_CRYPT_KEY requires mcrypt functions which are not found.
You might want to check tt-rss wiki or the forums for more information. Please search the forums before creating new topic for your question.

Owncloud only says HTTP ERROR 500 after login in.

I once had the same issue, but I downgraded back to PHP5, because I had no time. But this is no solution anymore! Now I sit for hours in front of this issue and have no idea what the problem is? Can you help me please?

Last edited by maxmoon (2017-12-15 20:17:41)

Offline

#2 2017-12-15 20:46:11

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: PHP 7 issue with mcrypt (TT-RSS & Owncloud don't work anymore)

Let the tt-rss and owncloud devs know things break with php 7.2, check their bug trackers as most probably someone already reported the problem and maybe there are workarounds. In the mean time downgrade php to a version that is supported by the things you want to use.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2017-12-15 21:03:36

maxmoon
Member
Registered: 2014-11-30
Posts: 16

Re: PHP 7 issue with mcrypt (TT-RSS & Owncloud don't work anymore)

R00KIE wrote:

Let the tt-rss and owncloud devs know things break with php 7.2, check their bug trackers as most probably someone already reported the problem and maybe there are workarounds. In the mean time downgrade php to a version that is supported by the things you want to use.

Is there some kind of script which can downgrade all PHP packages to version 5.6, because I don't have those packages in my cache anymore sad

If someone knows a more comfortable way to downgrade without downloading every package by hand, please let us know.

Offline

#4 2017-12-15 21:27:25

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: PHP 7 issue with mcrypt (TT-RSS & Owncloud don't work anymore)

If tt-rss and owncloud only work with php 5.6 then I suppose you'd have to build it again from the AUR, if they work with php 7.1 it _might_ be enough to downgrade using Arch Linux Archive[1]. There is always a chance that you might have to recompile php 7.1 yourself if it depends on some library that had a soname bump in the meantime.

[1] https://wiki.archlinux.org/index.php/Arch_Linux_Archive


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2017-12-16 20:41:30

AbaddonOrmuz
Member
Registered: 2014-07-05
Posts: 43
Website

Re: PHP 7 issue with mcrypt (TT-RSS & Owncloud don't work anymore)

I had issues with mcrypt too.

The package php-mcrypt was removed in PHP 7.2, and it seems [1] that it was replaced with php-sodium

https://git.archlinux.org/svntogit/pack … 065a44c137
https://wiki.php.net/rfc/mcrypt-viking-funeral

Offline

#6 2017-12-17 06:23:20

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: PHP 7 issue with mcrypt (TT-RSS & Owncloud don't work anymore)

R00KIE wrote:

If tt-rss and owncloud only work with php 5.6 then I suppose you'd have to build it again from the AUR, if they work with php 7.1 it _might_ be enough to downgrade using Arch Linux Archive[1]. There is always a chance that you might have to recompile php 7.1 yourself if it depends on some library that had a soname bump in the meantime.

[1] https://wiki.archlinux.org/index.php/Arch_Linux_Archive

It has been exhaustively confirmed that php 7.1 is linked to old versions of ICU, e.g. https://bugs.archlinux.org/task/56553#comment163996


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB