[resolved] Index php won't load the data base (21 posts)

  1. sladeetal
    Posted 3 years ago #

    I can't get my index php to load the data base.
    Any suggestions.

  2. Johnb81
    Posted 3 years ago #

    Can't get to load the database: do you have any specific error or screenshot?

  3. ehoanshelt
    Posted 3 years ago #

    Also, if you have a URL to the error. that would be amazing!

  4. sladeetal
    Posted 3 years ago #

    All that happens is the page attempts to load and becomes blank with my URL at the top: http://www.newfashionstrends.com/

  5. sladeetal
    Posted 3 years ago #

    I've also had problems logging in to wordpress. I've changed my password via wp_users but it still won't let me in. I can get in if i change my user name and password but the wordpress panel is blank. (Probably because we havn't been able to load the data base)

  6. Your database "loads" OK because the WP admin area prompts for a login, so the problem is a bad theme or plugin, which is causing the whtie screen. Rename the theme that was active to force the site to use the default theme twentyeleven and rename plugins to oldplugins to bring the site back up.

    If this is a new install, manually reupload all the core WP files and folders.

  7. sladeetal
    Posted 3 years ago #

    I'm a litte bit new to wordpress. How do a rename the theme and plugins?

  8. sladeetal
    Posted 3 years ago #

    Which theme should i rename and to what? I don't know how to tell which one is active?
    Here are a list of themes in the home / wp-content / themes folder

  9. USe FTP. See Filezilla and FTP Clients « WordPress Codex.

    Move all the themes into a folder called "oldthemes" except for twentyeleven.

  10. sladeetal
    Posted 3 years ago #

    You can only rename or delete theme. How can you move them?

  11. Make a new folder and drag and drop.

  12. sladeetal
    Posted 3 years ago #

    I changed the home/wp-content/plugins
    to home/wp-content/old plugins

    I made a home/wp-content/oldthemes/oldthemes directory and moved all the themes execept for the twentyeleven them inside.

    The home/wp-content/themes folder only contains twentyeleven folder and the index.php file.

    I clicked on the index.php in the root directory and i still get a blank page.
    Is there something else you would suggest?

  13. Those are the typical fixes for whitescreens. I don't know what actually happened when you were editing the wp_users in the database.

    Does bravehost fully support WordPress?

    Is this a brand new site with no content? If so, just reinstall and start from scratch. Easier than trying parse a stange problem.

  14. sladeetal
    Posted 3 years ago #

    Hi we found out what happened. It appears that the database contains 2 websites that have been merged into one database.
    We got the database to work but with the wrong website. Its a cell phone website.
    Do you know how we could get the other site running?

  15. Try changing the database that's called in wp-config.php, as well as the table prefix, if needed.

  16. sladeetal
    Posted 3 years ago #

    I tried to adjust the code below to below in wp-config.php to:
    $table_prefix = 'wp1_'; and
    $table_prefix = 'wp2_';

    * WordPress Database Table prefix.
    * You can have multiple installations in one database if you give each a unique
    * prefix. Only numbers, letters, and underscores please!
    $table_prefix = 'wp_';

    However this resulted in creating a fresh new wordpress site with no pages, tags, post or anything. Basically the database didn't upload any information.

  17. You're still calling the wrong table prefix. Look at the database in phpmyadmin and check the table prefixes and check each _options table to find the correct database.

  18. sladeetal
    Posted 3 years ago #

    Hi I checked the tables and this is what i found.
    Each one is a litte different. How can i hookup the database the newfashionstrends.com site?
    The wp_1options gives http://newfashionstrends.com/wordpress
    The wp_2options gives http://newfashionstrends.com/
    The wp_options gives http://www.cellphonesupdates.com


  19. sladeetal
    Posted 3 years ago #

    What should i do? Is this right?

    wp_options -> siteurl, and wp_options -> home should be updated to your website address

    Is this correct?

  20. It's impossible to say at this point, looking at what you have and the unknown changes you have made directly to the databases.

    Consider looking for a reputable person to fix it correctly on jobs.wordpress.net or freelancing sites such as Elance. (It's not a good idea to respond to unsolicited emails from forums users offering to work for you.)

  21. sladeetal
    Posted 3 years ago #

    I made these changes
    wp_options -> siteurl, and wp_options -> home should be updated to your website address

    Plus i added this $table_prefix = 'wp_2';

    and now the site is up and working.
    Thanks Dave

Topic Closed

This topic has been closed to new replies.

About this Topic