• Hi, I have a LAMP server on my local machine. Works well with other wordpress instances.

    I’d like to try the new Zion Builder so I downloaded the plugin, put its files into /wp-content/plugins and it appears in my back office.

    When I click on “Activate” this is the result I have :

    Fatal error: Uncaught Error: Call to undefined function wp_generate_password() in /home/lomic/websites/Zion/wp-admin/includes/file.php:669 Stack trace: #0 /home/lomic/websites/Zion/wp-admin/includes/class-wp-filesystem-ftpext.php(138): wp_tempnam('/home/lomic/web...') #1 /home/lomic/websites/Zion/wp-content/plugins/zionbuilder/includes/Environment.php(39): WP_Filesystem_FTPext->get_contents('/home/lomic/web...') #2 /home/lomic/websites/Zion/wp-content/plugins/zionbuilder/includes/Environment.php(55): ZionBuilder\Environment::get_config() #3 /home/lomic/websites/Zion/wp-content/plugins/zionbuilder/includes/Scripts.php(46): ZionBuilder\Environment::get_value('outputDir') #4 /home/lomic/websites/Zion/wp-content/plugins/zionbuilder/includes/Scripts.php(36): ZionBuilder\Scripts->setup_environment() #5 /home/lomic/websites/Zion/wp-content/plugins/zionbuilder/includes/Plugin.php(214): ZionBuilder\Scripts->__construct() #6 /home/lomic/websites/Zion/wp-content/plugins/zionbuilder/zionbuilder.php(77): ZionBuilder\Plugin->init() #7 in /home/lomic/websites/Zion/wp-admin/includes/file.php on line 669
    

    Seems that the culprit line is here :

    $manager = new Plugin( trailingslashit( dirname( __FILE__ ) ), plugin_dir_url( __FILE__ ), $plugin_data['Version'] );
    	$manager->init();

    If I test the value of __FILE__ on my server it returns a good value : “/var/www/html/test.php” so it doesn’t look like a path issue.

    I have to delete or rename its folder to take back control of this wordpress instance.

    Any idea ?

    Thanks !

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Zionbuilder

    (@zionbuilder)

    Hi,

    Thank you for taking the time to report this. From the error you’ve posted, it seems that your server doesn’t have proper permissions and the FTP File system is used. I have opened an internal ticket for this so we can resolve this.

    In order to bypass the error, please make sure that proper file/folder permissions are set and WordPress can write files on your server in plugins and wp-content folders.

    Best regards,
    Stefan

    Thread Starter Lomic

    (@lomic)

    Hi, thanks for your reply.

    I chmoded 777 my localhost directory, no possible access issues anymore.

    Still errors :

    Fatal error: Uncaught Error: Call to undefined function wp_generate_password() in /home/lomic/websites/Zion/wp-admin/includes/file.php:669 Stack trace: #0 /home/lomic/websites/Zion/wp-admin/includes/class-wp-filesystem-ftpext.php(138): wp_tempnam('/home/lomic/web...') #1 /home/lomic/websites/Zion/wp-content/plugins/zionbuilder/includes/Environment.php(39): WP_Filesystem_FTPext->get_contents('/home/lomic/web...') #2 /home/lomic/websites/Zion/wp-content/plugins/zionbuilder/includes/Environment.php(55): ZionBuilder\Environment::get_config() #3 /home/lomic/websites/Zion/wp-content/plugins/zionbuilder/includes/Scripts.php(46): ZionBuilder\Environment::get_value('outputDir') #4 /home/lomic/websites/Zion/wp-content/plugins/zionbuilder/includes/Scripts.php(36): ZionBuilder\Scripts->setup_environment() #5 /home/lomic/websites/Zion/wp-content/plugins/zionbuilder/includes/Plugin.php(214): ZionBuilder\Scripts->__construct() #6 /home/lomic/websites/Zion/wp-content/plugins/zionbuilder/zionbuilder.php(77): ZionBuilder\Plugin->init() #7 in /home/lomic/websites/Zion/wp-admin/includes/file.php on line 669

    It is local on my machine, so not sure why you suggest an FTP issue.

    Thanks.

    Plugin Author Zionbuilder

    (@zionbuilder)

    Hi,

    This line tells me that the FTP File system is used instead of Direct file system WP_Filesystem_FTPext->get_contents

    As mentioned above, please make sure you have correct permissions for your file and folders. You can read more about permissions here https://www.smashingmagazine.com/2014/05/proper-wordpress-filesystem-permissions-ownerships/

    Unfortunately, this being on a local pc we cannot investigate further than looking at the error you provided.

    As a note, can you try to install the plugin directly from WordPress directory by navigating to Admin > Plugins > Add new > Search for Zion Builder and install it from there?

    Please let me know if it worked.

    Best regards,
    Stefan

    Thread Starter Lomic

    (@lomic)

    Ok but I’ve chmoded the directory (and recursively the directories inside) with 777 which is all access to any user, so I don’t think I can do much more on that point.

    I’ve tried to install from the web as you suggest but it tries to use FTP and I don’t have a FTP server active nor open to internet on my local machine.

    Is it possible to force it to use direct file system instead of FTP, so that it will use the content of the plugin which is available inside “wp-content/plugins/zionbuilder” ?

    Thanks.

    I have the same Problems on a Web Server:

    Fatal error: Uncaught Error: Call to undefined function wp_generate_password() in /var/www/xxxx/xxxx/httpdocs/wp-admin/includes/file.php:669 Stack trace: #0 /var/www/xxxx/xxxx/httpdocs/wp-admin/includes/class-wp-filesystem-ftpext.php(138): wp_tempnam(‘/var/www/xxxx…’) #1 /var/www/xxxx/xxxx/httpdocs/wp-content/plugins/zionbuilder/includes/Environment.php(39): WP_Filesystem_FTPext->get_contents(‘/var/www/xxxx…’) #2 /var/www/xxxx/xxxx/httpdocs/wp-content/plugins/zionbuilder/includes/Environment.php(55): ZionBuilder\Environment::get_config() #3 /var/www/xxxx/xxxx/httpdocs/wp-content/plugins/zionbuilder/includes/Scripts.php(46): ZionBuilder\Environment::get_value(‘outputDir’) #4 /var/www/xxxx/xxxx/httpdocs/wp-content/plugins/zionbuilder/includes/Scripts.php(36): ZionBuilder\Scripts->setup_environment() #5 /var/www/xxxx/xxxx/httpdocs/wp-content/plugins/zionbuilder/includes/Plugin.php(215): ZionBuilder\Scripts->__construct() #6 /va in?/var/www/xxxx/xxxx/httpdocs/wp-admin/includes/file.php?on line?669

    I have test chmoded all directories with 777 and i testing the define(‘FS_METHOD’, ‘direct’); method from the Kallyas Troubleshooting Workaround.

    Does anyone have a solution in the meantime?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error when activating the plugin on a local machine’ is closed to new replies.