• Resolved ezimmerman9

    (@ezimmerman9)


    Once we updated to version 4.1.8 we got hit with this fatal error on every page load:

    PHP Fatal error: Uncaught Error: Call to undefined function wp_generate_password() in /webclient/default/bromilow/sites/v3.bromilow.com/html/wp/wp-admin/includes/file.php:677\nStack trace:\n#0 /webclient/default/bromilow/sites/v3.bromilow.com/html/wp/wp-admin/includes/class-wp-filesystem-ftpext.php(138): wp_tempnam()\n#1 /webclient/default/bromilow/sites/v3.bromilow.com/html/content/plugins/responsive-menu/v4.0.0/inc/classes/class-theme-manager.php(436): WP_Filesystem_FTPext->get_contents()\n#2 /webclient/default/bromilow/sites/v3.bromilow.com/html/content/plugins/responsive-menu/v4.0.0/inc/classes/class-theme-manager.php(850): RMP\\Features\\Inc\\Theme_Manager->get_themes_from_uploads()\n#3 /webclient/default/bromilow/sites/v3.bromilow.com/html/content/plugins/responsive-menu/responsive-menu.php(170): RMP\\Features\\Inc\\Theme_Manager->get_menu_active_themes()\n#4 /webclient/default/bromilow/sites/v3.bromilow.com/html/content/plugins/responsive-menu/responsive-menu.php(185): rm_includes_menu_theme_template()\n#5 /webclient/default/bromil in /webclient/default/bromilow/sites/v3.bromilow.com/html/wp/wp-admin/includes/file.php on line 677, referer: https://v3.bromilow.client.tagonline.com/wp/wp-admin/plugins.php

    This only happens when we have use the FS_METHOD of ftpext. Using any of the other FS_METHODs will not trigger this error. Using the FS_METHOD of ftpext was never an issue until now.

    There is a snippet of code in responsive-menu/v4.0.0/inc/classes/class-theme-manager.php which is

                  global $wp_filesystem;
                   if ( empty( $wp_filesystem ) ) {
                           require_once ABSPATH . 'wp-admin/includes/file.php';
                   }
    

    perhaps you need to require more than wp-admin/includes/file.php in order for the wp_generate_password function to be available. This is more of an educated guess as I haven’t dug too deep into the inner workings of the plugin. Please advise.

    • This topic was modified 2 years, 9 months ago by ezimmerman9.
    • This topic was modified 2 years, 9 months ago by ezimmerman9.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflict with this plugin and FS_METHOD of ftpext’ is closed to new replies.