• Alright, so I customized a theme (Customizr), and I was completely ready to “go live” with the site. All I wanted/needed to do was make it so my http://www.siteexample.com/wp site was http://www.siteexample.com. So, I researched and literally found about 9 options. I tried one, updating the functions.php file (via FTP) within my theme with a couple of (update option) strings of code to change the site url and home of my site. That didn’t work. My site looks like it lost all stylistic features of the theme, it looks broken. So, instinctively, I simply removed what I added, and reuploaded the file to take its place. It’s still broken. Then, I tried another option, to “hard code” the wp-config.php file of my site. That completely locked me out. So, now I’m back to the broken site (it’s there, it’s simply completely without all of the stylistic feature of the theme I was working in). Please, someone, I have FTP access, 1) how do simply get back to where I started (I can’t even log in to my back end now), and 2) simply change my site url without the apocalypse reigning down on all my hard work and excitement. Please help.

Viewing 15 replies - 16 through 30 (of 31 total)
  • C W (VYSO)

    (@cyril-washbrook)

    Correct.

    Thread Starter faalbane

    (@faalbane)

    alright, and then during this step:

    Change the line that says:
    require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );
    to the following, using your directory name for the WordPress core files:
    require( dirname( __FILE__ ) . ‘/wordpress/wp-blog-header.php’ );

    what does “wordpress” signifiy? for me, is that simply “wp”?

    C W (VYSO)

    (@cyril-washbrook)

    Yes, change it to

    require( dirname( __FILE__ ) . '/wp/wp-blog-header.php' );

    Thread Starter faalbane

    (@faalbane)

    alright, one more hurdle, my Site URL and WordPress URL fields are greyed out in my general settings, how do I change my Site URL in the first step?

    C W (VYSO)

    (@cyril-washbrook)

    In all likelihood, this means that those values are still hardcoded through wp-config.php. Remove any WP_HOME and WP_SITEURL definitions left in that file.

    Thread Starter faalbane

    (@faalbane)

    the only ones in there are the ones I put at the beginning of this thread, to get me back to square one:

    “define(‘WP_HOME’,’http://www.siteexample.com/wp’);
    define(‘WP_SITEURL’,’http://www.siteexample.com/wp’);”

    I just tried to remove these, then I was locked out of my site again. Can I still follow these directions? How do remove these files, maintain access to my backend so I can adjust the general settings of the site url then continue these steps?

    Thread Starter faalbane

    (@faalbane)

    can I just “hard code” my http://siteexample.com and continue with the steps above? Instead of changing it in general settings? Is that synonymous?

    Thread Starter faalbane

    (@faalbane)

    can I just “hard code” the define(‘WP_SITEURL’,’http://www.siteexample.com/wp’);” line to
    define(‘WP_SITEURL’,’http://siteexample.com’);”?

    Thread Starter faalbane

    (@faalbane)

    then continue with the other steps?

    Thread Starter faalbane

    (@faalbane)

    man.. hopefully this is possible.. I’m gonna try it.. if it doesn’t work or if it works, I’ll update this thread.. I suppose worst case scenario I have to just put those define lines in again to have access to my backend.. wish me luck.

    C W (VYSO)

    (@cyril-washbrook)

    the only ones in there are the ones I put at the beginning of this thread, to get me back to square one:

    “define(‘WP_HOME’,’http://www.siteexample.com/wp’);
    define(‘WP_SITEURL’,’http://www.siteexample.com/wp’);”

    I just tried to remove these, then I was locked out of my site again.

    This may mean that you haven’t reversed the changes in your theme’s functions.php file or some other file that you previously attempted to modify. If you added anything along the lines of

    update_option('siteurl','http://example.com');
    update_option('home','http://example.com');

    to your functions.php file, such lines should be removed, as I’ve said before. Defining the site and home URLs in wp-config.php and functions.php are essentially hack-ish solutions: they should only be used temporarily when things go wrong, and should be reversed as soon as they have had the desired effect.

    Thread Starter faalbane

    (@faalbane)

    I removed the update_option codes..

    Then, I removed the define codes.. Now I’m locked out again..

    The problem is that I can’t complete step one (changing the Site URL settings if I can’t log in to my backend, and when I get my backend back (adding the define codes to wp-config.php) it’s greyed out..” what do I do?

    C W (VYSO)

    (@cyril-washbrook)

    Try removing the definitions in wp-config.php. After that, go to your functions.php file (via FTP) and add the lines:

    update_option('siteurl','http://siteexample.com/wp');
    update_option('home','http://siteexample.com/wp');

    Where siteexample.com is your domain. If/when that succeeds, remove those lines again.

    Thread Starter faalbane

    (@faalbane)

    awesome, that worked. okay, now I’m going to go through these steps as we’ve discussed..

    Thread Starter faalbane

    (@faalbane)

    YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS!!!!!!!!!!!!!!!!!!!! OMGGGGGGGGGGGGGGGGGGGGGGGGG!!!!!!!!!!!!!!! DUDDDDEEEEEEEE!!!!!!!!!!!!!!!! DUDEEEEEEE!!!!!!! OKAY!!! WHEW!!! AWESOME!!!!! THANK YOU SO MUCH!!!!! I NEVER THOUGHT ID SEE THIS DAY, ILL REMEMBER THIS KNOWLEDGE, THANK YOU SIR I REALLY APPRECIATE, SO MUCH IN FACT THAT CAPS LOCK IS COOL RIGHT NOW, *HIGHFIVE*

Viewing 15 replies - 16 through 30 (of 31 total)

The topic ‘Please help.’ is closed to new replies.