• Resolved joey2250

    (@joey2250)


    I am assuming this is an issue with my theme, but I want to make sure, and if you could possibly help out and see what the theme is doing wrong that I can be like hey, you’re doing this wrong (like not checking something with the filesystem first)

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.5.1
    Current theme: Avada Child (version 1.0.0)
    Current plugin: SSH SFTP Updater Support (version 0.8.2)
    PHP version 7.4.11

    Error Details
    =============
    An error of type E_ERROR was caused in line 262 of the file /opt/websites/wp-com/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php. Error message: Uncaught Error: Call to a member function stat() on bool in /opt/websites/wp-com/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php:262
    Stack trace:
    #0 /opt/websites/wp-com/wp-admin/includes/file.php(1438): WP_Filesystem_SSH2->is_dir()
    #1 /opt/websites/wp-com/wp-content/themes/Avada/includes/class-fusion-builder-demos-importer.php(304): unzip_file()
    #2 /opt/websites/wp-com/wp-content/themes/Avada/includes/class-fusion-builder-demos-importer.php(115): Fusion_Builder_Demos_Importer->extract_demo_data_zip()
    #3 /opt/websites/wp-com/wp-content/themes/Avada/includes/class-avada-init.php(198): Fusion_Builder_Demos_Importer->__construct()
    #4 /opt/websites/wp-com/wp-includes/class-wp-hook.php(287): Avada_Init->init_fb_demos_importer()
    #5 /opt/websites/wp-com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #6 /opt/websites/wp-com/wp-includes/plugin.php(478): WP_Hook->do_action()
    #7 /opt/websites/wp

    • This topic was modified 4 years ago by joey2250.

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

Viewing 1 replies (of 1 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Yes, your theme is using the WP_Filesystem API wrongly; it tries to get statistics for a file without checking whether the prior request for filesystem access succeeded or not. It compounds the error by not catching the exception which then results.

    David

Viewing 1 replies (of 1 total)
  • The topic ‘SSH error when creating new page’ is closed to new replies.