• Resolved braven1612

    (@braven1612)


    I moved wordpress from directory to root.

    I had previously moved just index and htaccess to the root, so those had to be edited. Plus needed to redo menus, run two different search and replace plugins.

    Site looks fine now, links working BUT..

    Cannot perform downloads or uploads, plugin installs because the site cannot locate wp-content.

    What could I run to find what needs to be updated to new location?

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

Viewing 14 replies - 1 through 14 (of 14 total)
  • Can you please share error screen shot?
    Also please explain in detail from where you have moved your code.

    Thread Starter braven1612

    (@braven1612)

    wordpress was in directory, utahlandsale_com/topics/
    I moved it to the root
    all links and menus and htaccess and index urls corrected now
    but installing or uploading or downloading fails
    cannot find wp-content as seen in screenshot
    I ran Better Search Replace and Velvet Blues Update URLs

    thanks so much for helping me
    SCREENSHOT

    It look like you have directory permission issue.
    Paste below code in wp-config.php

    if(is_admin()) {
       add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
       define( 'FS_CHMOD_DIR', 0751 );
    }

    For more detail refer this and this

    Thread Starter braven1612

    (@braven1612)

    Thank you!
    QUESTION:
    exactly where do I insert this?
    Like this?

    /* That's all, stop editing! Happy blogging. */
    if(is_admin()) {
       add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
       define( 'FS_CHMOD_DIR', 0751 );
    }
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    Yes anywhere in wp-config.php

    Thread Starter braven1612

    (@braven1612)

    sorry, site disappeared.
    Will keep trying

    Thread Starter braven1612

    (@braven1612)

    If it is a permissions issue, can’t that be fixed with chmod? I did check the permissions seem to be correct but I’m guessing what you are discussing is far more complicated than that.

    Yes, you can with chmod or use chown(its better).

    chown www-data:www-data  -R * # Let Apache be owner
    find . -type d -exec chmod 755 {} \;  # Change directory permissions rwxr-xr-x
    find . -type f -exec chmod 644 {} \;  # Change file permissions rw-r--r--
    

    Reference: https://stackoverflow.com/questions/18352682/correct-file-permissions-for-wordpress/23755604#23755604

    Thread Starter braven1612

    (@braven1612)

    oh thank you!
    Never heard of chown.. will look into that.
    Really appreciate your time and expertise, I might even be able to get my host to do this, will report back!

    Sure. If you don’t know about file ownership(chown), then do not run this command on live site. Better to run this command on local/test server OR ask your hosting provider.

    Thread Starter braven1612

    (@braven1612)

    OK, and if CHMOD is possible to use, I’ve checked the permissions on all directories and compared to other wp on my sites and I have permissions set the same..
    so maybe you are talking about permissions to something I’m not looking at that would make the location of wp-content not found.

    I’m worried that I did something in using the url replace and search and replace plugins to make some path wrong to begin with, to that directory..

    Thread Starter braven1612

    (@braven1612)

    My host fixed it!

    This is an issue we have seen with WordPress and the particular FTP subsystem on your server. I have gone ahead and switched this to an alternate FTP server,

    thanks for all your help, Firoz!

    Thread Starter braven1612

    (@braven1612)

    thanks for all your help, Firoz!

    Your most welcome ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘cannot locate wp-content after move to root’ is closed to new replies.