• Hi

    By mistake, I changed wordpress URL and domain in general settings from https://www.mydomain.com/wordpress to https://www.mydomain.com . Now I cannot have access to my admin and login page any more. I tried to change functions.php in my theme folder and wp-config as some posts say but nothing worked out. Is there a solution to have my wordpress back to up and running? If not, can I recover the pages at least and install a new version of wordpress since I am using not the latest one?

    Please help.
    Thanks
    Max

Viewing 15 replies - 16 through 30 (of 33 total)
  • Thread Starter massy74

    (@massy74)

    I did it several times and it does not work

    Thread Starter massy74

    (@massy74)

    Obviously I assume that you guys mean fuctions.php of my active theme. Right? If so, as above, I did not work.

    I assume that you guys mean fuctions.php of my active theme.

    Yes

    If so, as above, I did not work.

    Did you try to re-load the site as suggested?

    Thread Starter massy74

    (@massy74)

    What do you mean by re-load the site?

    Thread Starter massy74

    (@massy74)

    If you meant to access to my database then I don’t know how to do it.

    Did you try to navigate the the front page of your site as suggested in the instructions suggested by Jan above?

    Thread Starter massy74

    (@massy74)

    Yes I did – It is a mess. How can that page help me?

    If you follow the instructions carefully & correctly, it will work.

    Thread Starter massy74

    (@massy74)

    I cannot see Jan’s instruction. He suggested to access to my database which is something that I don’t know how to do it. Would you be so kind as to list the instructions you are referring to?

    No – he suggested that you use the functions.php method.

    Thread Starter massy74

    (@massy74)

    As said several times, I tried the fuctions.php method and it does not work

    It’s worked for thousands of other people…

    Thread Starter massy74

    (@massy74)

    OK – I did the following:
    – By FTP, I went to the theme directory and downloaded functions.php.
    – I add the lines(Of course my web site replace example) as below:

    <?php
    update_option('siteurl','https://example.com');
    update_option('home','https://example.com');
    
    //	Registers the Widgets and Sidebars for the site
    function skt_widgets_init() {
    	register_sidebar(array(
    		'name' => 'blog-sidebar-area',
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	));
    	register_sidebar(array(
    		'name' => 'footer-first-sidebar-area',
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	));
    	register_sidebar(array(
    		'name' => 'footer-second-sidebar-area',
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	));
    	register_sidebar(array(
    		'name' => 'footer-third-sidebar-area',
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	));
    }
    add_action( 'widgets_init', 'skt_widgets_init' );
    
    /***************register nav menus*********************/
    register_nav_menus( array(
    	'Header' => __( 'Primary Navigation','analytical'),
    ));
    
    /***** Make theme available for translation ****/
    // Translations can be filed in the /lang/ directory
    
    function skt_lang_setup(){
    	load_theme_textdomain('analytical', get_template_directory_uri() . '/languages');
    }
    add_action('after_setup_theme', 'skt_lang_setup');
    
    /*  * Loads the Options Panel * * If you're loading from a child theme use stylesheet_directory * instead of template_directory */
    if ( !function_exists( 'optionsframework_init' ) ){
    	//Theme Shortname
    	$shortname = 'analytical-lite';
    	$themename='Analytical Lite Theme';
    	define( 'OPTIONS_FRAMEWORK_DIRECTORY',get_template_directory_uri() . '/SketchBoard/includes/' );
    	require_once get_template_directory() . '/SketchBoard/includes/options-framework.php';
    	require_once get_template_directory() . '/SketchBoard/functions/admin-init.php';
    }

    – I saved it as functions.php by using a note pad.
    – I deleted fuctions.php from the theme directory and upload the amended fuctions.php by FTP.
    – I browsed https://www.example.com/wordpress/wp-admin and https://www.example.com/wordpress/wp-login but the page cannot be found.

    What am I doing wrong?

    Site url?

    Thread Starter massy74

    (@massy74)

Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘How to have wordpress back to up and running’ is closed to new replies.