• Hi all
    I initially created my wordpress site in a directory named mysite.com/new , then copied the files to the root directory mysite.com/

    Now images uploaded to mysite.com are still stored in mysite.com/new/wp-content/uploads/2024/ uploads folder instead of going to mysite.com/wp-content/uploads/2024 . In the image gallery of mysite.com, the newly uploaded images appear blank. I need to find the settings my root folder is using to save uploaded files

    have checked the wp-config file but nothing there to suggest file upload path. Any suggestions please help

Viewing 5 replies - 1 through 5 (of 5 total)
  • You can see what the paths are in the WP Admin under Tools > Site Health, then click on the Info Tab. Then go to Directories and Sizes.

    Alor Web

    (@jerrymayalor555)

    Hi @onyekat,

    To resolve this.

    • Just install the WPCode plugin on your website.  https://share.zight.com/4gu8wqRo
    • Go to Code Snippet > Add Snippet
    • Add a title for the snippet ex. “Changed default media upload location”
    • On the Code Type, choose PHP snippet. 
    • Add this line of code inside the Code Preview box.

      define('UPLOADS', 'wp-content/'.'uploads');

    Please try the recommended solution and let me know how it goes. If the issue persists, you may need to contact your hosting provider to better assist you.

     Hope this helps.

    Regards,
    Jerry

    • This reply was modified 7 months, 1 week ago by Alor Web.
    • This reply was modified 7 months, 1 week ago by Alor Web.
    Thread Starter onyekat

    (@onyekat)

    @katorymnd

    @jerrymayalor555

    @codente

    Thanks Raymond and every other helper on this. I followed Raymond’s suggestion and went into the database. I found the upload_path and upload_url_path.empty. So i added wp-content/uploads to upload_path and left upload_url_path empty as suggested

    Result- Blog images now upload fine but the other listing uploads are still white/blank

    I am using a listing theme for creators so photos are very important to the website. Is there another table i might need to look into to update this

    I have checked site health of the site it says the correct path

    So next, I renamed the mysite.com/new to mysite.com/newx and boom… it says there is no configuration file .

    Then i rename the /newx back to /new and i get a 500 internal server error

    Now i am locked out ..please, help is urgently needed

    Thread Starter onyekat

    (@onyekat)

    UPDATE

    From my last message , it seems mysite.com was using settings from mysite.com/new , so i rename mysite.com/new back to mysite.com/newx

    Then i renamed the htaccess file of mysite.com and a new one is generated. Now i can access my wp-admin , but cannot access mysite.com. I keep getting this message

    This page isn’t working

    mysite.com?is currently unable to handle this request.

    HTTP ERROR 500

    NEXT, I check Site health > Info > WordPress contant,

    WP_HOME Undefined

    WP_SITEURL Undefined

    NEXT, I check the wp_options table in database, the site and home url is there. Have tried adding it manually through my theme’s function.php, still no change.

    please help

    Thread Starter onyekat

    (@onyekat)

    Finally , I created a txt file and named it hi.txt

    opened it on my site.com/hi.txt , it opened fine . So where could the problem be coming from ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how can I check where wordpress media directory is set to upload files’ is closed to new replies.