• Resolved antsthebul

    (@antsthebul)


    I have no idea what else to do. Any help would be fantastic. My goal is for the my site to display tonytuned.us, not tonytuned.us/wordpress..
    Background:
    My hosting provider does this interesting thing where it gives you a temporary URL if a domain has not been purchased. For example i started out as tonytuned-us.stackstaging.com/wordpress, then actually purchased the domain and routed it to their nameservers. The reason i explain this is when i initially installed wordpress, the wordpress address and site urls were the long “hashed” version of my domain. I did not want this. This was the strucutre of my server in the begining

    /
    |–.wp-cli
    |–public_html/
    | |–index.php (default, provided by server)
    | |–wordpress/
    |
    |–.htaccess(default on server, provides php info)

    My files seem to be served from public_html/. I say this becuase I cant access my site via my main ip, and when accessing the temp website, this is the file (public_html/index.php) which is served.

    I followed the instructions https://wordpress.org/support/article/giving-wordpress-its-own-directory/ to be able to change my site adress. I created a copies of index.php and .htaccess in my “root” which going by what is server, would be public_html/. After the files were created i changed the site address only (to tonytuned.us), not the wordpress address. This enabled me to login to the dashboard but i was not able to access my theme. I then read they need to be identical, so i changed wordpress address. This change then prevented me from being able to login correclt and none of the URLS were working for the site. After changing the actual html in the form submission i was able to login to a poorly displayed html page but none of the links would work. I followed the instruction https://wp-me.com/cant-access-wordpress-after-changing-site-url/, and now can login and my site is working but is display the /wordpress/ path at the end. This is not the desired result and i dont know what else to do. My final dirstruct is the same as above but with public_html/inidex.php(modified version) and public_html/.htaccess. Any help would be aprreciated thank you.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • HI,
    Interesting well did you try to change the structure by copying all the files from your wordpress folder to just

    public.html

    file means

    public.html->all the file in worpdress folder

    and you can refer to link

    tell me if that works for you.

    Thank you

    • This reply was modified 3 years, 2 months ago by danielbora123.
    Thread Starter antsthebul

    (@antsthebul)

    I had previously followed those instructions for “Changing The Site URL”. I thought those methods made it so the directories did not need to be moved on the same server. Either way, I did try moving all directories to the public_html/ but now the site does not work at all(public view or to login), I am diplayed a “critical error” and the “debugging in wordpress link”. I added the code to wp_config.php(directing to the new location of the core files) and even commented it out just to make sure, and I still cannot log in to the dashboard. I changed debug to ‘true’ and the error is “file found: path/to/class-tgm-plugin-activation.php”. I checked my backup and this file is not even there in my backup file. Im using the Pro theme from themeco.

    I did find out my site is hosted on a shared hosting package which is why the name was “mangled” in the beginning (tonytuned-us.stackstaging.com/wordpress), and probably is reason why files are served from the public_html dir. To maybe clarify what the intention was mentioned in the 1st post. Thank you for your help

    • This reply was modified 3 years, 2 months ago by antsthebul.
    • This reply was modified 3 years, 2 months ago by antsthebul.
    Thread Starter antsthebul

    (@antsthebul)

    Update: According to my server’s dir structure above, I left the wordpress/ dir but changed the name to backup/. Now accessing backup/ , I added the 2 define functions that will point WP_HOME and WP_SITEURL to this dir according to Changing the site, so both function calls getting the path of ‘tonytuned.us/<backup_dir>’ inside the backup/wp_config.php file. Now my site is back up and working, but works only if the URL is the same as what is specified in the backup/wp_config.php, obviously. So I’m wondering why this wont work when the domain specified is simply “tonytuned.us” ,with all of the core files being inside public_html/, the public_html/wp_config being correctly changed, and the error given is saying that the

    Warning: require_once(/home/sites/14a/f/fdc70d3d08/public_html/wp-content/themes/pro/framework/functions/updates/class-tgm-plugin-activation.php): failed to open stream: No such file or directory in /home/sites/14a/f/fdc70d3d08/public_html/wp-content/themes/pro/functions.php on line 213

    Fatal error: require_once(): Failed opening required ‘/home/sites/14a/f/fdc70d3d08/public_html/wp-content/themes/pro/framework/functions/updates/class-tgm-plugin-activation.php’ (include_path=’.:/usr/share/pear’) in /home/sites/14a/f/fdc70d3d08/public_html/wp-content/themes/pro/functions.php on line 213

    . Even in the backup (backup/wp-content/themes/pro/framework/functions/updates) this file class-tgm-plugin-activation.phpdoes not even exist. Sorry if my post is confusing. But it seems somewhere WP is getting informed that theme is “activated”, when using the URL tonytuned.us/backup and its not from this plugin activation file.

    • This reply was modified 3 years, 2 months ago by antsthebul.
    • This reply was modified 3 years, 2 months ago by antsthebul.
    • This reply was modified 3 years, 2 months ago by antsthebul.
    Thread Starter antsthebul

    (@antsthebul)

    Final Update: So after reading this Difference between Site_URL and Home_URL and re-reading that article “giving wordpress its own directory” linked in the aboves posts, I conluded I am idiot LOL, and seemed to be mostly a battle against my own browsers cache, I think. I changed so much I lost track. I accessed the site in an icognito window and it was diplsayed fine.

    The way WP decided to name the addresses is confusing so after finally getting a handle on what the user enter(home address/home_url) vs where WP core files live(WP address/site_url) vs what WP refers to in the documentation as the “site”(wordpress site ie core file location), I then realized that my installation was done in a subdir intially, so all i had to so was move the 2 files from the subdir to my root (WP said from root to blog address, this was also confusing since i dont have a blog per se) andd change the site URL to what I wanted the users to see. All is well now. I just overly complicated things and once again, cache lead me down a dark path of insanity…. And of course the missing activation file..upload failed when copying dirs so, that was fixed as well. Its definitely there and should be if its a validated theme

    • This reply was modified 3 years, 2 months ago by antsthebul.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP URL will not change correctly’ is closed to new replies.