• Hello,

    I am running wordpress on my local computer.

    I recently made an adjustment to the header.php file on the local program (not in the root files), and ever since then I have been receiving a white screen of death.

    I was wondering how to fix this problem. The error I receive appears as follows:

    [10-Jan-2015 01:33:06 UTC] WordPress database error Duplicate entry ‘1683-721’ for key ‘PRIMARY’ for query INSERT INTO wp_term_relationships (object_id,term_taxonomy_id) VALUES (1683,721) made by call_user_func, WP_Import->dispatch, WP_Import->import, WP_Import->process_posts, wp_set_post_terms, wp_set_object_terms

    I have been googling around and attempting to find the answer myself. I was hoping an expert could lend some insight.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Since this started when you fiddled with your header.php file, and also because it is really easy to do, I suggest that you run your header.php file through a PHP syntax checker, one is avaliable here:
    https://www.piliapp.com/php-syntax-check/

    If this doesn’t find anything, then suggest that you change theme. Either using FTP or your website hosting management file manager, rename the theme directory in “wp-content/themes”

    Thread Starter SF2015

    (@sf2015)

    RossMitchell,

    The files were edited over WordPress on the local server. I now can not access the files because there is a white screen. I also don’t want to change my theme because I made customizations that I would rather not reconfigure.

    Also, the PHP checker found nothing wrong.

    Has anybody succeeded in solving this problem?

    When Loading Localhost:8888

    Port 8888 would indicate that you are more than likely using MAMP on a Mac as that is it’s default Apache web server port.

    If that is the case, and you are using the default MAMP install settings for the document root, then your theme’s folder is here:

    Applications/MAMP/htdocs/wp-content/themes … if you installed WP in the root

    Applications/MAMP/htdocs/folder-name/wp-content/themes … if you installed WP in a folder in the root (usually wordpress)

    Simply use Finder to go and rename the theme you are using where the trouble started as Ross mentions and this will (should) force WP to revert to it’s default theme. You will not lose any customizations you have made to this theme by doing this.

    Additionally, use a plain text editor such as Text Wrangler to open the file in question and edit your changes.

    Thread Starter SF2015

    (@sf2015)

    Thank you for your your help.

    At this point I have renamed the wordpress folder and the theme names and I am still getting the white screen. I additionally have removed what I thought was the error in PHP.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘White Screen When Loading Localhost:8888’ is closed to new replies.