• Resolved joshkern

    (@joshkern)


    Hi,

    I moved my site from a subdirectory to the root directory, but WP Smush shows the following error:

    Could not find /home/craftnow/public_html/craftnow/wp-content/uploads

    Why is it looking in the subdirectory? It should be looking in the following:

    Could not find /home/craftnow/public_html/wp-content/uploads

    Thanks,
    Josh

    https://wordpress.org/plugins/wp-smushit/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @joshkern,

    Could not find /home/craftnow/public_html/craftnow/wp-content/uploads

    Why is it looking in the subdirectory? It should be looking in the following:

    Smush uses the WordPress function get_attached_file() to get the full path for the image, so if the function is still returning the old path, you might want to lookup the config and other required changes for your WP setup.

    Does the image appears fine in Media Library?

    Cheers

    Thread Starter joshkern

    (@joshkern)

    The images appear fine in Media.

    I just checked the config file and everything looks in order. Where else should I be checking?

    Thread Starter joshkern

    (@joshkern)

    I found the issue under Settings > Media. The path to the Uploads folder was pointing to the old location.

    @ joshkern, Is it resolved then?

    I’ve never seen that under Media settings though, is it added by some plugin?

    Cheers

    Thread Starter joshkern

    (@joshkern)

    The issue is resolved.

    I noticed this option to set up a different path wasn’t visible on my other WordPress site too. It must just automatically appear when WordPress is set up in a subdirectory or something. The field disappeared and reverted to default after removing the custom path.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Could not find – Moved to Root Directory’ is closed to new replies.