Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2019-10-02 07:32:22

peterj
Member
From: Melbourne, Australia
Registered: 2005-06-02
Posts: 37

mcrypt_create_iv warning when registering users

Hi, I’m getting a deprecated warning when trying to register new users, in debug mode. It’s a clean install, TXP 4.7.3 running on PHP 7.1. Any advice? Worried what will happen on PHP 7.2.

Thanks, Peter

WARNINGS:

8192 “Function mcrypt_create_iv() is deprecated”
in /*******/textpattern/vendors/Textpattern/Password/Random.php at line 74.
textpattern/vendors/Textpattern/Password/Random.php:74 adminErrorHandler()
textpattern/include/txp_admin.php:158 Textpattern\Password\Random->generate()
textpattern/include/txp_admin.php:55 author_save_new()
textpattern/index.php:255 include()

8192 “Function mcrypt_create_iv() is deprecated”
in /********/textpattern/vendors/Textpattern/Password/Random.php at line 74.
textpattern/vendors/Textpattern/Password/Random.php:74 adminErrorHandler()
textpattern/lib/txplib_misc.php:4250 Textpattern\Password\Random->generate()
textpattern/lib/txplib_admin.php:50 generate_user_token()
textpattern/include/txp_admin.php:163 send_account_activation()
textpattern/include/txp_admin.php:55 author_save_new()
textpattern/index.php:255 include()

==
Diagnostics
Textpattern version: 4.7.3 (7c46d1f4c8ac79e62a7d5e54a9ddac53)
Last update: 1970-01-01 00:00:00/2019-02-25 23:22:30
[…]
Article URL pattern: section_title
Production status: debug
[…]
PHP version: 7.1.32
GD Graphics Library: bundled (2.1.0 compatible); Supported formats: GIF, JPEG, PNG, WebP.
Server timezone: Australia/Melbourne
Server local time: 2019-10-02 17:21:41
Daylight Saving Time enabled?: 0
Automatically adjust Daylight Saving Time setting?: 0
Time zone (GMT offset in seconds): Australia/Melbourne (+36000)
MySQL: 5.6.45-cll-lve (MySQL Community Server (GPL))
Database server time: 2019-10-02 17:21:41
Database server time offset: 1 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: C
Site / Admin language: en / en
Web server: LiteSpeed
PHP server API: litespeed
RFC 2616 headers:
Server OS: Linux 3.10.0-962.3.2.lve1.5.26.3.el7.x86_64
Admin-side theme: hive 4.7.3
Active plugins: adi_menu-1.3.1 bot_image_upload-0.6.6.1beta bot_write_tab_customize-8.0 com_connect-4.6.0-beta.3 glz_custom_fields-2.0 beta smd_macro-0.41 smd_thumbnail-0.4.0 smd_wrap-0.20 stm_article_order-0.3.3

Offline

#2 2019-10-02 08:10:00

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,588
Website

Re: mcrypt_create_iv warning when registering users

That function has been removed in php 7.2 and the line before, line 73 of /textpattern/vendors/Textpattern/Password/Random.php, says if that function exists, use it. So my understanding is:

  • PHP 7.1. still has that function and therefore lets you know the function is deprecated.
  • PHP 7.2+ no longer has that function, so that method will be skipped entirely and another password randomisation method is used.

Long story short: it should work fine with PHP 7.2+ and you shouldn’t see that message.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2019-10-02 08:41:59

etc
Developer
Registered: 2010-11-11
Posts: 3,418
Website

Re: mcrypt_create_iv warning when registering users

Should be fixed in dev, thanks for the report.

Offline

#4 2019-10-03 00:10:14

peterj
Member
From: Melbourne, Australia
Registered: 2005-06-02
Posts: 37

Re: mcrypt_create_iv warning when registering users

Thank you both.

Offline

Board footer

Powered by FluxBB