• Resolved Hal

    (@halburgissnet)


    Just upgraded to 3.0.1. Got a license key and inserted that in Settings. Now when I click update, and many errors/warngings, and the update fails:

    ( ! ) Warning: ftp_nlist() expects parameter 1 to be resource, null given in /etc/apache2/dbs/Sites/ker/wp-admin/includes/class-wp-filesystem-ftpext.php on line 402
    Call Stack
    # Time Memory Function Location
    1 0.0005 480720 {main}( ) …/options-general.php:0
    2 0.0008 528240 require_once( ‘/etc/apache2/dbs/Sites/ker/wp-admin/admin.php’ ) …/options-general.php:10
    3 2.2124 62853120 do_action( ) …/admin.php:254
    4 2.2124 62853496 WP_Hook->do_action( ) …/plugin.php:478
    5 2.2124 62853496 WP_Hook->apply_filters( ) …/class-wp-hook.php:312
    6 2.2124 62854624 geoip_detect_option_page( ) …/class-wp-hook.php:288
    7 2.2258 62840080 YellowTree\GeoipDetect\DataSources\Auto\AutoDataSource->maxmindUpdate( ) …/admin-ui.php:116
    8 7.7308 63220392 YellowTree\GeoipDetect\DataSources\Auto\AutoDataSource->unpackArchive( ) …/auto.php:202
    9 8.1595 65183704 WP_Filesystem_FTPext->rmdir( ) …/auto.php:233
    10 8.1595 65183704 WP_Filesystem_FTPext->delete( ) …/class-wp-filesystem-ftpext.php:557
    11 8.1595 65183704 WP_Filesystem_FTPext->is_file( ) …/class-wp-filesystem-ftpext.php:377
    12 8.1595 65183704 WP_Filesystem_FTPext->exists( ) …/class-wp-filesystem-ftpext.php:420
    13 8.1595 65183704 ftp_nlist ( ) …/class-wp-filesystem-ftpext.php:402

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Hal

    (@halburgissnet)

    More info …

    The error occurred on a staging server before pushing to production. Running it on the production server worked fine. So I think we are good here. Maybe a missing php library? Thx.

    Plugin Author Benjamin Pick

    (@benjamin4)

    WP Filesystem tries to set up the access via FTP and fails … because I didn’t implement this, sorry ?? This happens when the Apache/PHP user is different to the owner who can write to /uploads (or maybe the whole wordpress) … so he’s falling back from direct acess to FTP. On my dev instances, I always had to choose direct access manually by setting a define in wp-config.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to update db after upgrade’ is closed to new replies.