Forums

it was working, now it's not! HELP!! (11 posts)

  1. amsparky
    Member
    Posted 5 years ago #

    I had it working and I messed something up and I am afraid I have lost my blog forever. It was just working 5 minutes ago. Here is what I have:
    <?php
    /** WordPress's config file **/
    /** http://wordpress.org/ **/
    // ** MySQL settings ** //
    define('DB_NAME', 'amorales'); // The name of the database
    define('DB_USER', 'amorales'); // Your MySQL username
    define('DB_PASSWORD', '*****'); // ...and password
    define('DB_HOST', 'mysql5.secureserver.net'); // 99% chance you won't need to change this value
    // Change the prefix if you want to have multiple blogs in a single database.
    $table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_'
    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');
    /* Stop editing */
    $server = DB_HOST;
    $loginsql = DB_USER;
    $passsql = DB_PASSWORD;
    $base = DB_NAME;
    define('ABSPATH', dirname(__FILE__).'/');
    // Get everything else
    require_once(ABSPATH.'wp-settings.php');
    ?>
    ***If anyone can help and let me know what to fix and what to not touch I would be very grateful!!!!!!!
    AM

  2. amsparky
    Member
    Posted 5 years ago #

    Anyone, please?

  3. amsparky
    Member
    Posted 5 years ago #

    Yes I am sure. I had it working because I was clicking between it and another page to try and understand the CSS/template thing. When I uploaded my changes on my main part of my site, the wordpress stuff stopped working. I was asking because I know I didn't touch anything on this file because this file wasn't even open at the time.

  4. carthik
    Member
    Posted 5 years ago #

    It could be that your mysql server is down,. temporarily.

  5. moshu
    Member
    Posted 5 years ago #

    Let me clarify it: you were modifying "the main part' of your site - which I suppose is not the same as your blog, then you FTP-d those files, and the WP stopped working. Did I get it well? Are you sure you didn't overwrite anything in the wp directory? (And I repeat: the blog part of your site didn't work a long time ago!)

  6. amsparky
    Member
    Posted 5 years ago #

    That is correct.
    If anything was overwritten, I'm not sure how, because I know better than to touch anything in there. I even tried using my backup that I did when it was working (which wasn't that long ago) and it still didn't work.

  7. moshu
    Member
    Posted 5 years ago #

    Then maybe 2fargon is right: the server...
    Sorry for not being able to sort it out. It's late and I'm tired and sleepy. Time to give up for today :)

  8. amsparky
    Member
    Posted 5 years ago #

    Thanks for trying :)

  9. jonimueller
    Member
    Posted 5 years ago #

    And cranky too!
    I have found when working on files like this, to rename the original. For example, in FTP (or in your HTML editor) rename index.php to index.sparky. Then upload the (hopefully) new and improved index.php. When things go south, you can delete it, and rename your index.sparky until you figure out what you did wrong.
    Better yet, grab a copy of YellowTip and load the Apache Server, MySQL and PHP right onto your home box and edit away to your heart's content. You don't ever have to touch the files on your server until you know you "got it right."
    Joni ;-)
    @Moshu: Lots of hot tea with sugar and lemon! Makes for a nice restful sleep! (That and a 24 pound cat resting on your stomach!)

  10. amsparky
    Member
    Posted 5 years ago #

    Thanks Joni!
    I feel like the editing might be outside my capabilities, so I was wondering, How do I know if the problem is with the index file? The error says that I have a problem with wp-config.php, but I didn't change anything.
    <<sniff>> I will keep trying! Thanks!

  11. amsparky
    Member
    Posted 5 years ago #

    OK, I reinstalled everything and it is now working, but it won't let me log in to post or change anything. Time to go search the archives...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.