• Resolved lagunas

    (@lagunas)


    Hi!

    I’m getting the following error after upgrading to version 6.6.0:

    Fatal error: Uncaught Error: Call to undefined function wp_generate_password()

    Uninstalling the plugin and reinstalling version 6.5.7 fixes the issue, so I’ll disable automatic updates for the time being.

    Do you have any idea what may be going on?

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Héctor Prieto

    (@priethor)

    Hi @lagunas, thanks for reporting the issue!

    What WordPress version are you using?

    Thread Starter lagunas

    (@lagunas)

    WP v 6.8.3

    Hi!

    As far as I understand, the wp_generate_password() function is called within the theme? If so, in what context? (file, action)

    kosmavision

    (@kosmavision)

    Hi,

    I’m seeing the exact same issue/error moving from ACF PRO to SCF. On WordPress 6.9 and SCP 6.7. Switching back to ACF PRO resolves the error. Using a very simple custom theme (headless) and wp_generate_password() is not being called anywhere. Seems somehow related to class-scf-json-schema-validator.

    Here is an instance of the error through wp cli (but it also occurs on the web side, though only for one particular site.

    PHP Fatal error: Uncaught Error: Call to undefined function wp_generate_password() in /srv/www/domain.redacted.com/html/wp-admin/includes/file.php:690
    Stack trace: #0 /srv/www/domain.redacted.com/html/wp-admin/includes/class-wp-filesystem-ftpext.php(138): wp_tempnam()
    #1 /srv/www/domain.redacted.com/html/wp-content/plugins/secure-custom-fields/includes/class-scf-json-schema-validator.php(150): WP_Filesystem_FTPext->get_contents()
    #2 /srv/www/domain.redacted.com/html/wp-content/plugins/secure-custom-fields/includes/class-scf-json-schema-validator.php(171): SCF_JSON_Schema_Validator->load_schema()
    #3 /srv/www/domain.redacted.com/html/wp-content/plugins/secure-custom-fields/includes/class-scf-json-schema-validator.php(55): SCF_JSON_Schema_Validator->validate_required_schemas()
    #4 /srv/www/domain.redacted.com/html/wp-content/plugins/secure-custom-fields/includes/acf-utility-functions.php(23): SCF_JSON_Schema_Validator->__construct()
    #5 /srv/www/domain.redacted.com/html/wp-content/plugins/secure-custom-fields/includes/class-scf-json-schema-validator.php(300): acf_new_instance()
    #6 /srv/www/domain.redacted.com/html/wp-content/plugins/secure-custom-fields/includes/acf-utility-functio
    ns.php(152): include_once('...')
    #7 /srv/www/domain.redacted.com/html/wp-content/plugins/secure-custom-fields/secure-custom-fields.php(192): acf_include()
    #8 /srv/www/domain.redacted.com/html/wp-content/plugins/secure-custom-fields/secure-custom-fields.php(832): ACF->initialize()
    #9 /srv/www/domain.redacted.com/html/wp-content/plugins/secure-custom-fields/secure-custom-fields.php(838): acf()
    Plugin Author Héctor Prieto

    (@priethor)

    Thanks, @kosmavision . The stacktrace was incredibly helpful to find the issue; a fix is underway and an updated version will be out as soon as possible, we’ll let you know.

    Plugin Author Héctor Prieto

    (@priethor)

    The recently lauched SCF 6.7.1 solves this issue. Apologies again for the inconvenience!

    @lagunas @kosmavision could you verify on your end?

    Thread Starter lagunas

    (@lagunas)

    Fixed! Thank you!!

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

You must be logged in to reply to this topic.