• Resolved devbd

    (@devbd)


    Hi, I hope you’re well.

    I’d like to request support with resolving a fatal error which is related to Visual Composer plugin. Please, see error and stack trace:

    PHP Fatal error:  Uncaught Error: Call to undefined function wp_generate_password() in /wp-admin/includes/file.php:690\nStack trace:\n#0 /wp-admin/includes/class-wp-filesystem-ftpext.php(138): wp_tempnam()\n#1/wp-content/plugins/visualcomposer/visualcomposer/Framework/Autoload.php(159): WP_Filesystem_FTPext->get_contents()\n#2 /wp-content/plugins/visualcomposer/visualcomposer/Modules/Autoload/AddonsAutoload.php(86): VisualComposer\\Framework\\Autoload->tokenizeComponents()\n#3 /wp-content/plugins/visualcomposer/visualcomposer/Modules/Autoload/AddonsAutoload.php(75): VisualComposer\\Modules\\Autoload\\AddonsAutoload->getSingleComponent()\n#4 /plugins/visualcomposer/visualcomposer/Modules/Autoload/AddonsAutoload.php(29): VisualComposer\\Modules\\Autoload\\AddonsAutoload->getComponents()\n#5 [internal function]: VisualComposer\\Modules\\Autoload\\Addons in /wp-admin/includes/file.php on line 690

    Our website uses ‘ftpext’ as FS_METHOD. If we change it to ‘direct’, then error is resolved, but we would prefer to keep ‘ftpext’. Could you please, check, if there are any code modifications you could complete on your side in order to resolve this error?

    Kind regards,

Viewing 1 replies (of 1 total)
  • Plugin Support Rohan Khandeparkar

    (@rohanvc)

    Hi,

    Based on the error message, it appears that the issue is related to the wp_generate_password() function not being available when Visual Composer attempts to access certain files via the ftpext method. The reason why changing FS_METHOD to direct resolves the issue is likely due to how WordPress handles file system operations under different methods.

    At the moment, Visual Composer relies on WordPress’s file system API to manage file access, and ftpext may have certain limitations in this regard. While we understand your preference to keep FS_METHOD as ftpext, we would need to investigate this further to determine whether adjustments can be made within the plugin.

    As we have not received additional reports of this issue, we will add it to our list and monitor similar requests. This will help us assess its impact and take the necessary steps accordingly in future updates if required.

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error: Call to undefined function wp_generate_password’ is closed to new replies.