• Resolved Ginny12904

    (@ginny12904)


    Hi! I created my website through the domain Green Geeks. From there I used WordPress through Softaculous. Basically, I had gone into the settings and there was this page where it has your website url typed in. Mine had said ginnyontheskinny.com/blog but I had accidentally deleted a letter from the url and I clicked save changes before I realized it. Because right after I clicked save changes, this white error page showed up. So I clicked the back button and even though I changed the url back to how it was supposed to be, it still popped up the white error page. It says: Error: name not resolved. And there is also an error that says; DNS_PROBE_FINISHED_NXDOMAIN. please help me, I can’t access any of my site anymore.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Since you can login to your server, browse file manager for your website, find wp-config.php file, edit it, and add this code below if ginnyontheskinny.com/blog is your URL:

    define('WP_HOME','https://ginnyontheskinny.com/blog');
    define('WP_SITEURL','https://ginnyontheskinny.com/blog');

    Hopefully this gets you back access to the website..

    Hi Ginny,
    I hope Samuel’s suggestion get your site alive. Also there is another way which is edit the database directly from phpmyadmin.

    For this, open phpmyadmin from your hosting admin panel (cPanel) and from your database browse to wp_options (assume that your are using wp_ prefix to your database) and search for the option_name ‘siteurl’ and ‘home’ and edit those option_value to your actual URL (This is the value which you edit from your settings page.)

    Hope this also helps you.
    Cheers!

    Thread Starter Ginny12904

    (@ginny12904)

    Thank you so much for yall’s suggestions. Through your help I was able to fix the problem and access my website again. However, I have now run into another problem. I was trying to add in some code that would allow my website to have an icon on the tab bar up at the top of the screen. I had gone to ‘Edit Theme’and tried to put the code in the theme options .php file. After I clicked save changes, it said syntax error and so I went back and deleted the code. But even though I changed everything back to how it should be I got another Syntax error that read: “Parse error: syntax error, unexpected ‘<‘ in /home/ginnyont/public_html/Blog/wp-content/themes/pinboard/includes/theme-options.php on line 1116” I didn’t even do anything to that line but it is telling me I have an error. And there are so many lines of code, how could i possibly find this ‘error’ and fix it? Thank you for your help. I am new to WordPress so I don’t completely understand it yet.

    As Tapan mentioned before, login to your server ( CPanel ) or FTP and browse this directory using file manager: wp-content/themes/pinboard/includes/ you will find there a file named theme-options.php, right click, on context menu choose edit, and there you could remove what you added earlier which wasn’t added properly as it is causing a PHP syntax error ( you can’t mix between PHP and HTML unless you know what you were doing).

    Once fixed, you can tell us what you are trying to add and we will be glad to help ??

    Thread Starter Ginny12904

    (@ginny12904)

    Thank you so much! I did what you said and my website is back in order now. What I was trying to do was give my website a ‘favicon.’ Here is a link to the website that I tried to learn from but I just didn’t quite do it right. https://www.wpbeginner.com/wp-tutorials/how-to-add-a-favicon-to-your-wordpress-blog/

    Thread Starter Ginny12904

    (@ginny12904)

    Actually, somehow I just did it! My website is looking great. Thanks so much for your help! I appreciate it so much!

    You could simply add below-code to your functions.php file after you upload an icon (img) and you provide its URL in the link href:

    add_action('wp_head', 'my_website_favicon');
    function my_website_favicon() {
    	?>
    		<link rel="shortcut icon" href="//path/to/image/favicon/" type="image/x-icon">
    	<?php
    }

    Or, if that sounds complicated, there’s this plugin I used once: Custom Favicon

    Edit:

    Actually, somehow I just did it! My website is looking great. Thanks so much for your help! I appreciate it so much!

    Oh good, that’s great! you are welcome and have a nice day!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Tried to change URL, now can't access website’ is closed to new replies.