• A simple ecommerce site uses the built in WP function to autogenerate login information which is then emailed to the purchaser so they can download their purchase. However, I’ve noticed that since we’ve upgrade our PHP from 7.3 to 7.4 (we have 7.4.2), the [user_pass} generation fails consistently, and all the user receives is the placeholder, not the password. WP version = 5.3.2

    Ideas on how to solve this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • How is that function triggered? Can you check PHP error log for any error?

    I assume it is custom coded? It could be the code not PHP 7.4 compatible. Does the password generation works if you downgrade to PHP 7.3?

    Try to enable WordPress debug mode to find out the error(s) https://wordpress.org/support/article/debugging-in-wordpress/

    Thread Starter mleder

    (@mleder)

    Put all the suggested code from the debugging article on the site, ran two test transactions, no errors thrown.

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    Transactions process, money is ported to payment processor, data is recorded as it should be in db, I get emails as I should. However, still no auto generated passwords, and the redirect is supposed to go to a “thank You” page, but circles back around to the sales page. Never did that before.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘New User Password Auto Generation Fails’ is closed to new replies.