• jamesstcrice

    (@jamesstcrice)


    I am using WP 5.3 and Visualizer 3.3.4
    In the process of upgrading to WordPress 5.3, I noticed the plugin causes a series of php warnings in my test environment. Can you confirm why the plugin is trying to use these functions? and what can be done about this?

    Warning: ftp_nlist() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 402
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_nlist() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 402
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 681
    Warning: ftp_nlist() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 402
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_nlist() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 402
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /srv/bindings/fb6ca84aeb454a9798239ddbe192bece/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 681
Viewing 12 replies - 1 through 12 (of 12 total)
  • I updated to WP 5.3 on several servers without any problems. Then on a live(!) server I got the same output as described in the previous post. What is the reason and what to do?

    Plugin Support contactashish13

    (@rozroz)

    @hinjiriyo @jamesstcrice thank you for reporting this. We will check this at our end. In the meantime, since this are just warnings you can ignore them.

    @hinjiriyo if you say it happens only on specific instances, could you tell what’s different there so that we may get a clue to understand this?

    All sites use nearly the same PHP versions (7.2.x – 7.3.x), Apaches, SSL, Multisite yes/no, different themes, different sets of plugins – that is much work to detect the reason for the warnings. I searched in the themes files and all plugins files of the respective website for any call of those functions or of their wrapping class and had no results.

    At least I tweaked the WP file to suppress the warnings until the next WP upgrade. How I did this is described in my ticket I opened in the WP trac.

    • This reply was modified 2 months ago by Martin Stehle. Reason: Corrected typos
    Plugin Support contactashish13

    (@rozroz)

    @hinjiriyo I understand. Thank you for letting us know. We are unable to reproduce this at our end so we will wait to see if there is a specific idiosyncrasy that is responsible for this.

    We had this issue as well on a few sites visible on pantheon servers due to their default filesystem. Adding if ( ! defined( 'FS_METHOD' ) ) define( 'FS_METHOD', 'direct' ); fixed it for us. Looks like the plugin does not check if the wp_filesystem link is active before trying to use it which causes the errors.

    Plugin Support contactashish13

    (@rozroz)

    @jjpmann thank you for mentioning this. we will see if we are able to reproduce this and apply your patch.

    Please note I’m seeing similar errors in my logs, but I haven’t Visualizer installed. I landed here from Google while looking for the error message. In my case it seems to be related to the pretty-link plugin. Maybe Visualizer and pretty-link share some third party library, responsibile for this bug?

    Here is the error I get:

    ftp_nlist() expects parameter 1 to be resource, null given in wp-admin/includes/class-wp-filesystem-ftpext.php on line 402

    I also get the following warnings when I access the site: http://www.derryoperahouse.com
    This happened as soon as I upgraded WordPress today.

    You have to scroll past all these warning to see the site.

    Warning: ftp_nlist() expects parameter 1 to be resource, null given in /var/www/clients/derryoperahouse.com/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 402
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/clients/derryoperahouse.com/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/clients/derryoperahouse.com/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/clients/derryoperahouse.com/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_nlist() expects parameter 1 to be resource, null given in /var/www/clients/derryoperahouse.com/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 402
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/clients/derryoperahouse.com/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/clients/derryoperahouse.com/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/clients/derryoperahouse.com/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 681
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/clients/derryoperahouse.com/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/clients/derryoperahouse.com/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
    Warning: ftp_mkdir() expects parameter 1 to be resource, null given in /var/www/clients/derryoperahouse.com/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 539

    They a

    Plugin Support contactashish13

    (@rozroz)

    It looks like something is wrong in WP 5.3. Anyone who is using the WP_Filesystem is facing this so maybe we will have to wait for 5.3.1 to fix this. It is currently not a plugin issue.

    Reference: https://wordpress.org/support/topic/new-error-since-5-3-update-on-dev-server/#post-12143113

    jjpmann’s solution worked great for us. Thanks!

    For sites on Pantheon.io and other hosting companies that lock down the file systems, here is the solution:

    https://webidextrous.com/how-to-fix-divi-4-0-6-visual-builder-problems-on-pantheon-io-hosting/

    I found the plugin “Amazon Associates Link Builder” as the cause.

    PHP-Error-Log:
    “Error Creating Dir amazon-associates-link-builder/template/. Please set the folder permissions correctly.”

    But it is not enough to give write permissions from the folder “template”.
    The plugin expects write rights for “wp-content”.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.