Bug 31060 - Unable to initialize module php-mcrypt
Summary: Unable to initialize module php-mcrypt
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Marc Krämer
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-31 17:16 CET by Jean Michel Varvou
Modified: 2022-11-02 06:50 CET (History)
0 users

See Also:
Source RPM: php-mcrypt-1.0.5-4.mga9
CVE:
Status comment:


Attachments

Description Jean Michel Varvou 2022-10-31 17:16:20 CET
Description of problem:
After install task-lamp, i have the following error in /var/log/www/httpd/error.log. I have the same error in visual code with extension php-debug which use /usr/bin/php

PHP Warning:  PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20210903
PHP    compiled with module API=20220829
These options need to match
 in Unknown on line 0

Version-Release number of selected component (if applicable):


How reproducible: Always


Steps to Reproduce:
1. execute /usr/bin/php in a terminal.
2.
3.
Comment 1 Lewis Smith 2022-10-31 20:28:55 CET
Thank you for this clear report.

'php-mcrypt' is done by MarcK, so assigning to you.

Assignee: bugsquad => mageia

Comment 2 Marc Krämer 2022-11-01 17:50:01 CET
Hi,
I assume you have installed backported php 8.1 and tried to install php-mcrypt from core.

I usally backport all relevant modules as well. Please also note, that mcrypt produces some warnings, as it is only added for compatibility. The mcrypt extension should not be used anymore.
Comment 3 Marc Krämer 2022-11-01 17:50:41 CET
So, try to install mcrypt from backport. It should fix your issue
Comment 4 Jean Michel Varvou 2022-11-01 18:20:57 CET
Hello Marc

I'm not sure I understand. I did a direct install via net installation to be under cauldron. I have no history or link to the mageia 8 branch. It is php 8.2 in RC. I don't see any new version in the backport cauldron branch...
Comment 5 Marc Krämer 2022-11-01 23:15:35 CET
oh, sorry - I didn't realize this was filed against cauldron.

Strange; it should already be linked against php 8.2 - new version will be on the mirrors soon.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 6 Jean Michel Varvou 2022-11-02 06:50:53 CET
Thank you Mark. The error message is gone.

Note You need to log in before you can comment on or make changes to this bug.