• Resolved maculko

    (@maculko)


    Dear all,

    Im using All in One SEO Pro 4.0.6 With Worpdress 5.6. Im getting issue “ftp_nlist() expects parameter 1 to be resource, null given” with stack trace:

    wp-admin/includes/class-wp-filesystem-ftpext.php:420
    ftp_nlist()
    wp-admin/includes/class-wp-filesystem-ftpext.php:420
    WP_Filesystem_FTPext->exists()
    wp-content/plugins/all-in-one-seo-pack-pro/app/Common/Tools/BadBotBlocker.php:207
    AIOSEO\P\C\T\BadBotBlocker->init()
    wp-content/plugins/all-in-one-seo-pack-pro/app/AIOSEO.php:308
    AIOSEO\P\AIOSEO->loadInit()
    wp-includes/class-wp-hook.php:287
    do_action('init')
    wp-settings.php:557

    could you please help me fix this issue

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author benjaminprojas

    (@benjaminprojas)

    @maculko,

    Thanks for reaching out! I’d love to get a little more information about your environment to see how we can resolve this for you.

    We are using the WordPress Filesystem (wpfs) to check if the log file exists. It seems like that error is thrown right when we are doing that check. The file we are looking for usually is:

    yoursite.com/wp-content/uploads/aioseo-bad-bot-blocker.log

    Do you have any custom upload directories (not in the above location)?
    Do you have any non-standard restrictions on your uploads folder?

    Let us know!

    Thread Starter maculko

    (@maculko)

    thanks for reply, i dont think that i have any special permissions or any upload folder. If i look into upload folder i can see this:

    drwxrwxr-x+ 17 apache  apache  4096 Dec 21 17:29 .
    drwxrwxr-x+ 11 touchit touchit 4096 Dec 21 17:29 ..
    drwxrwxr-x+ 14 apache  apache  4096 Dec 22  2015 2015
    drwxrwxr-x+ 14 apache  apache  4096 Dec  1  2016 2016
    drwxrwxr-x+ 14 apache  apache  4096 Nov 30  2017 2017
    drwxrwxr-x+ 14 apache  apache  4096 Nov 28  2018 2018
    drwxrwxr-x+ 14 apache  apache  4096 Nov 27  2019 2019
    drwxrwxr-x+ 14 apache  apache  4096 Dec  1 00:00 2020
    drwxrwxr-x+  3 apache  apache  4096 Dec 16 15:45 2021
    drwxrwxr-x+  2 apache  apache  4096 Dec  4 02:00 aioseo-logs
    drwxr-xr-x+  2 apache  apache  4096 May  5  2020 ao_ccss
    drwxrwxrwx+  6 apache  apache  4096 Dec  9 12:10 filebase
    lrwxrwxrwx   1 root    root      35 Oct  5  2016 software -> /home/ssh-chroot/redaktori/software
    drwxr-xr-x+  2 apache  apache  4096 Jan 11  2017 wp-clone
    drwxrwxr-x+  2 apache  apache  4096 Mar 17  2015 wp-slimstat
    drwxrwxr-x+  2 apache  apache  4096 Feb 13  2015 wp-statistics
    drwxrwxr-x+  2 apache  apache  4096 Apr 25  2015 wpcf7_captcha
    drwxr-xr-x+  7 apache  apache  4096 May 12  2015 wysija

    as i see there is aiose-log folder with aioseo-bad-bot-blocker.log and date 4.12.2020 i think this is the date when i installed latest major version update. the file itself is empty.

    Plugin Author benjaminprojas

    (@benjaminprojas)

    @maculko,

    It looks like I forgot to add our folder to the example above. If you go inside your uploads folder and then into the aioseo-logs folder, do you see the aioseo-bad-bot-blocker.log file?

    Is there anything inside the file?

    Plugin Author benjaminprojas

    (@benjaminprojas)

    @maculko,

    I completely missed your text where the log file exists in that folder. I’ll have our team take a closer look to see if we can figure out what is going on.

    Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @maculko,

    We just released another update that should have fixed this. Can you take a look and let us know how it goes?

    Thread Starter maculko

    (@maculko)

    i still see same errors in log ?? : https://ibb.co/crHR9Tf

    Plugin Author benjaminprojas

    (@benjaminprojas)

    @maculko can you confirm the version of AIOSEO that you are currently using?

    Thread Starter maculko

    (@maculko)

    Im using version 4.0.11

    Plugin Author benjaminprojas

    (@benjaminprojas)

    @maculko okay so this is probably an issue with how your WordPress install is configured.

    AIOSEO uses the WordPress filesystem which will let us know if we can access files based on the way you have your install setup. It seems that your install is trying to use FTP credentials, but they are not set up properly.

    Do you have any special permissions set up on your server? Do you have to enter FTP information in order to install plugins or make updates?

    Can you check in your wp-config.php file to see if the FS_METHOD constant is defined? It would look something like:

    define( 'FS_METHOD', 'ftpext' );

    Let me know what you find.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘ftp_nlist() expects parameter 1 to be resource, null given’ is closed to new replies.