• Avrohomd

    (@avrohomd)


    Hello! I’ve been ‘away’ for about a year. I’d like to get my WP site up again — but with a new URL: .net at the end, instead of .com

    I managed to upload my site to my new webhost. And I managed to change my site URL in the table: WP_Options for siteurl and home.

    So I see my site:
    https://choveveitzion.net/
    but the photos are not showing. And I can’t enter the dashboard. I get an error message:

    Warning: require_once(/home/a6450800/public_html/wp-admin/includes/template.php) [function.require-once]: failed to open stream: No such file or directory in /home/a6450800/public_html/wp-admin/includes/admin.php on line 40

    Please advise… Thank you!

    Avrohom

Viewing 15 replies - 1 through 15 (of 15 total)
  • peter achutha

    (@peter-achutha)

    I checked you site and noticed your photos are located in /upload/… sub-directory.

    1. Did you copy the contents of the /uploads/ sub directory across? Zip and copy across and unzip.

    2. All your links to pictures are point to https://choveveitzion.com/wp-content/uploads/… and not https://choveveitzion.net/wp-content/uploads/… you will need to change the address of your links to your pictures as they are pointing to the old site.

    peter achutha

    (@peter-achutha)

    I looked again. I went to https://choveveitzion.net/wp-admin/ to see if you could log in and it ‘failed to open stream ….’. How did you copy WP across? Did you do a new installation of WP, same version as of previous site?

    Thread Starter Avrohomd

    (@avrohomd)

    Thank you Peter for addressing my problems! Yes I figured this was the kind of problem with my photos.

    I didn’t exactly understand your first question about the photos.

    I used the same version of WP as my previous site. I just uploaded everything “as is” from the download I had on my computer.

    Before addressing the photos issue, I think I need to get access to my dashboard. Any suggestions how to do that?

    Avrohom

    peter achutha

    (@peter-achutha)

    1. I think you are using cPanel. My guess is that you will need to install WP using a script … like Fantistico… to have WP installed in your site. I am not sure whether you did this or just copied the WP files across. Because I think WP (or your server) looks for some file or data written at root level, above /public_html/.

    2. Normally, you would want to import your database either through phpmyadmin (your database is less than 20MB) or upload the file (which was exported from your old site phpmyadmin) to /public_html/ and ask your tech support to import it for you – if your database is larger than 20MB. But before you do any exporting (assuming you will close down the old host – don’t need the site anymore) go to the WP administrator panel in you OLD HOST WP and set siteURL and WordPress URL to your new site address. This ensures your database works correctly when loaded into the new site. Then export the database.(see below)

    3. Then copy all the files (zip it up) from your old host /uploads/ directory and unzip it into your new host /uploads/ directory.

    or follow the instructions at

    If You Don’t Care If Your Old Blog Works https://codex.www.ads-software.com/Moving_WordPress
    —- extract —-
    Download a copy of the main wordpress files from your OLD blog to your hard drive and edit wp-config.php to suit the new server.
    Go back to your OLD blog and go to Administration > Settings > General and change the url (both of them) to that of your new site.
    Login on your server and go to phpmyadmin and export as file and save your database (but keep the old one just in case), upload this new database and the copy of the wordpress core files with the edited wp-config.php to your new server. Thats it!

    — end of extract —

    If you did step 1. then do step 2. and step 3. And it should work.

    If your old host is still intact backup everything up to your PC before you make any changes and export … just in case…

    I hope this helps

    Thread Starter Avrohomd

    (@avrohomd)

    My old blog has been down since a year ago.

    I decided, based on your suggestions, to just go ahead and update my site to the new WP. (I was also concerned, I originally uploaded everything under htdocs — and then moved it. Perhaps something wrong happened in the shuffle)

    I did a manual update — and now everything is working fine!

    I also did a find/replace on the contents folder of my database to fix my photos problems — also successful.

    Now I still need to fix my widget photos and header. But everything should be downhill from here.

    Thank you, Peter, for your assistance!!!

    Avrohom
    [ Signature moderated ]

    Thread Starter Avrohomd

    (@avrohomd)

    I am still a bit confused:

    I have a plugin: Sidebar Login

    It appears on my site in the left side bar. If I click on “dashboard” it still has my previous address. How do I update this to .net?

    peter achutha

    (@peter-achutha)

    I just checked and found that your old site is not active! That means you cannot access the old WP control panel. Let us come to the plugins later.

    The menu links are still pointing to your old site. You can log into your new site, right? Log in as administrator and go to Settings > General. There set ‘Site Address URL’ to https://choveveitzion.net/ and set WordPress Address (URL)to https://choveveitzion.net/ and ‘Save Changes’ and see what happens.

    peter achutha

    (@peter-achutha)

    Clear your browser cache and try to login to your control panel a two or three times and then try to view your site a few times. Checking to see if updating site URL and WordPress URL works.

    peter achutha

    (@peter-achutha)

    Just in case that does not work then you need to hard code the url into the wp-config.php

    1. make a back up of your wp-config.php, just in case your accidently type something wrong or delete something, by copying to, say, wp-configORG.php

    2. Edit your wp-config.php file an insert these two lines of code

    define(‘WP_HOME’,’https://choveveitzion.net/’);
    define(‘WP_SITEURL’,’https://choveveitzion.net/’);

    Place it right after the <?php so the file would look like :-
    <?php
    define(‘WP_HOME’,’https://choveveitzion.net/&#8217;);
    define(‘WP_SITEURL’,’https://choveveitzion.net/&#8217;);
    /**
    .
    .
    .

    This will hard code WP to always use the new URL. Hence you will not be able to change it from your WP Administrator dashboard / control panel.

    I hope this helps

    Thread Starter Avrohomd

    (@avrohomd)

    Thanks Peter.

    I had hard coded my site URL and home earlier. With that I was able to see my home page.

    The tabs I knew I could fix by editing the header.

    But still my sidebar plugin is not working when I click on ‘dashboard’. It still sends me to .com. I’m not sure how to fix that.

    Avrohom

    Good to see that the links are working correctly and your pictures are being picked up correctly.

    I installed and checked ‘Sidebar Login’ plugin in my temp WordPress site. It appears that at the point of installation it picks up the URL that was used when it was being installed and saves it in its own area. So it still remembers the old URL. Now that you have changed your URL it looks like you would have to uninstall SideBar Login ( Deactivate plugin and then Delete plugin to remove any files or database records holding info on the old URL) and install it back again.

    Then go to Appearance > Widgets and add the widget to your right sidebar, if you want it on the right.

    See how that goes, I hope this helps.

    do that with your other plugins.

    Thread Starter Avrohomd

    (@avrohomd)

    Well, I thought your advice was sound.
    So I deactivated the plugin. Then deleted it. Downloaded the new version. Uploaded. Activated.

    But still same thing happens — to .com.

    However, I see now this is not such a big problem. My subscribers won’t have this problem (they don’t go to the dashboard). And I see there are many ways to hop to your dashboard from your site now.

    Thread Starter Avrohomd

    (@avrohomd)

    I FOUND IT!

    In my dashboard, under ‘settings’ there is a page for this plugin. So I corrected the address and now it works!

    Thank you Peter for walking me through!

    Avrohom

    I am glad that it is running well now.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘New URL for site’ is closed to new replies.