• Resolved ioto

    (@ioto)


    I uploaded wordpress through 1and1 admin function and assigned one of my URLs phatspace.co.uk. Created the site and all was good. However, i wanted to change the URL to 3four.co.uk. This is also in my 1and1 account. I went into the WP admin and updated the URL directory details to be 3four.co.uk.

    I clicked on save and immediately got these details below. The site is still there but with out styling and no CSS. it appears that the files dont know where to look, etc. I cannot now access wp-admin. i do have access to files via ftp. Is there anyone who can help me please?

    ——————————————————————

    Deprecated: Assigning the return value of new by reference is deprecated in /homepages/34/d29008199/htdocs/wp-settings.php on line 520

    Deprecated: Assigning the return value of new by reference is deprecated in /homepages/34/d29008199/htdocs/wp-settings.php on line 535

    Deprecated: Assigning the return value of new by reference is deprecated in /homepages/34/d29008199/htdocs/wp-settings.php on line 542

    Deprecated: Assigning the return value of new by reference is deprecated in /homepages/34/d29008199/htdocs/wp-settings.php on line 578

    Deprecated: Function set_magic_quotes_runtime() is deprecated in /homepages/34/d29008199/htdocs/wp-settings.php on line 18

    Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /homepages/34/d29008199/htdocs/wp-includes/classes.php on line 1199

    Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /homepages/34/d29008199/htdocs/wp-includes/classes.php on line 1199

    Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /homepages/34/d29008199/htdocs/wp-includes/classes.php on line 1199

    Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /homepages/34/d29008199/htdocs/wp-includes/classes.php on line 1199

    Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /homepages/34/d29008199/htdocs/wp-includes/classes.php on line 1244

    Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /homepages/34/d29008199/htdocs/wp-includes/classes.php on line 1391

    Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /homepages/34/d29008199/htdocs/wp-includes/classes.php on line 1391

    Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /homepages/34/d29008199/htdocs/wp-includes/classes.php on line 1391

    Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /homepages/34/d29008199/htdocs/wp-includes/classes.php on line 1391

    Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /homepages/34/d29008199/htdocs/wp-includes/classes.php on line 1442

    Strict Standards: Redefining already defined constructor for class wpdb in /homepages/34/d29008199/htdocs/wp-includes/wp-db.php on line 306

    Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /homepages/34/d29008199/htdocs/wp-includes/cache.php on line 431

    Warning: require(/homepages/34/d29008199/htdocs/wp-includes/default-filters.php): failed to open stream: Permission denied in /homepages/34/d29008199/htdocs/wp-settings.php on line 272

    Fatal error: require(): Failed opening required ‘/homepages/34/d29008199/htdocs/wp-includes/default-filters.php’ (include_path=’.:/usr/lib/php5.5′) in /homepages/34/d29008199/htdocs/wp-settings.php on line 272

Viewing 11 replies - 1 through 11 (of 11 total)
  • I went into the WP admin and updated the URL directory details to be 3four.co.uk…

    …it appears that the files dont know where to look, etc.

    It looks like you have told WordPress where to find the files, but you have not told your servers to send 3four.co.uk to that installation. To do that, you might need to talk with your host if you do not have cPanel or some other way to do that yourself.

    You need to go to the Domain center in your control panel. There you can change the location of 3four.co.uk to point to your new location.

    Thread Starter ioto

    (@ioto)

    Hi Marko – will try that thanks. However which level folder do i point at?
    is it the root of the installation or a sub folder such as wp-content, etc.

    /htdocs/

    Thread Starter ioto

    (@ioto)

    Wahoo ?? Thanks Marko. Sorted – many thanks. Now understand how that feature works.

    Thread Starter ioto

    (@ioto)

    Thanks lee for your help ?? all sorted now. https://www.3four.co.uk

    Thread Starter ioto

    (@ioto)

    RESOLVED!

    It’s still pointing to phatspace.co.uk. We are currently working on making it easier for when you are using Click&Build Free Mode which I believe in this case that would be it. Unfortunately this
    will not happen in the near future.

    At least you have now both domains pointing to the same installation which is good. Now you can always change the domain in WordPress but that’s only one part. The second part is also change the domain in your content which a plugin like https://www.ads-software.com/plugins/search-and-replace/ could help out. It is however a bit tricky.

    And when you know SSH there is also something called WP CLI which can also do it for you.

    The second part is also change the domain in your content

    Do you have phpMyAdmin?

    UPDATE pref_options SET option_value = replace(option_value, 'https://www.olddomain.com', 'https://www.newdomain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
    
    UPDATE pref_posts SET guid = replace(guid, 'https://www.olddomain.com', 'https://www.newdomain.com');
    
    UPDATE pref_posts SET post_content = replace(post_content, 'https://www.olddomain.com', 'https://www.newdomain.com');
    
    UPDATE pref_postmeta SET meta_value = replace(meta_value, 'https://www.olddomain.com', 'https://www.newdomain.com');

    note: Change ‘pref’ to the proper table_prefix.

    @leejosepho: The first and third query are fine. Second can be done but not directly needed but the last one could break things. It can hit serialized data which is a PHP thing. If the length of the URL is different the value suddenly becomes corrupted and will not be read.

    Also in pref_options there could be options with urls in and again no SQL query what could fix it due to serialized data.

    I thank you, Marko, and I will add to my notes a link to your post. I am not aware of ever having any problem after using those queries, but then neither do I know for certain I do not have any of one kind or another. I had somewhere later read to *never* use that second query, but now it a bit reassuring to hear someone only say it is not directly needed.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘URL changed – now its all dead’ is closed to new replies.