• Hi,

    I really like asset cleanup (I discovered it through Oxygen Builder) but I’m moving my site to Pantheon and the plugin isn’t working there.

    I’ve updated the wp-config file with the suggested code line:

    define(‘WPACU_CACHE_DIR’, ‘/uploads/asset-cleanup/’);

    I still get this error at the bottom of the site:

    Warning: ftp_fget() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 143Warning: ftp_fput() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 208 Warning: ftp_chmod() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 280 Warning: ftp_fput() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 208 Warning: ftp_chmod() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 280 Warning: ftp_fput() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 208 Warning: ftp_chmod() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 280 Warning: ftp_fput() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 208 Warning: ftp_chmod() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 280 Warning: ftp_fput() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 208 Warning: ftp_chmod() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 280 Warning: ftp_fput() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 208 Warning: ftp_chmod() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 280 Warning: ftp_fput() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 208 Warning: ftp_chmod() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 280 Warning: ftp_fput() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 208 Warning: ftp_chmod() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 280 Warning: ftp_fput() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 208 Warning: ftp_chmod() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 280 Warning: ftp_fput() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 208 Warning: ftp_chmod() expects parameter 1 to be resource, null given in /srv/bindings/22c8a0a960224351907a94eb385a7609/code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 280

    When I deactivate asset cleanup the error message goes away completely.

    Is there something else I can add to the wp-config file to fix this?

    Thanks for your help!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @bhefley There’s a chance you’re getting this error because the path to the full generated path to the caching directory is incorrect.

    Can you please go to /wp-admin/admin.php?page=wpassetcleanup_tools&wpacu_for=storage (it’s the “Storage Info” tab from “Tools” page) and let me know if you can view there the “Current storage directory:” (its full path, not just relative) along with the “writable” status?

    If the status is the right one or the path is incorrect, then that should be the reason of the error. Otherwise, can you send me privately your “System Info” (from “Tools”) via https://gabelivan.com/contact/?

    Thread Starter bhefley

    (@bhefley)

    Thanks Gabe!

    I just sent you a private message to you through your website with this information.

    I appreciate your help.

    Brent

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pantheon Site’ is closed to new replies.