• I am trying to track down what is preventing me from attaching images to pages and posts in the media library. The URL is https://stratford-vna.markhannondesign.com/

    Here is what I see when I try to attach an image to a page. The window comes up blank (no radio buttons for pages or posts and no list of existing pages): https://www.markhannondesign.com/clientJobs/attach_Window.jpg

    This is a custom theme built from the Starkers theme. Here is what I tried so far:

    1. Turned off all plugins: problem persisted.
    2. Commented out all custom functions along with their actions & filters: problem persisted.

    What should mt next troubleshooting step be to find the problem? My client would like to go live with their site by Oct. 2 so I am hoping to resolve this sometime over the weekend.

Viewing 1 replies (of 1 total)
  • Thread Starter figure2

    (@figure2)

    I have since tested this in the Firefox, Safari and Chrome browsers. The problem is the same in each. Checking the error console with the attach image window open, I found 2 errors, both referencing WP core files, “admin-ajax.php” and “upload.php.” Are there any clues in the below code?

    Timestamp: 9/28/13 4:09:38 PM
    Error: XML or text declaration not at start of entity
    Source File: https://stratford-vna.markhannondesign.com/wp-admin/admin-ajax.php
    Line: 2, Column: 1
    Source Code:
    <?xml version='1.0' encoding='UTF-8' standalone='yes'?><wp_ajax><response action='find_posts_0'><object id='0' position='1'><response_data><![CDATA[<table class="widefat" cellspacing="0"><thead><tr><th class="found-radio"><br /></th><th>Title</th><th class="no-break">Type</th><th class="no-break">Date</th><th class="no-break">Status</th></tr></thead><tbody><tr class="found-posts"><td class="found-radio"><input type="radio" id="found-998" name="found_post_id" value="998"></td><td><label for="found-998">A Taste of Stratford</label></td><td class="no-break">Page</td><td class="no-break">2013/09/27</td><td class="no-break">Published </td></tr>

    Followed by:

    0"><thead><tr><th class="found-radio"><br /></th><th>Title</th><tTimestamp: 9/28/13 4:09:38 PM
    Error: XML or text declaration not at start of entity
    Source File: https://stratford-vna.markhannondesign.com/wp-admin/upload.php?author=1
    Line: 2, Column: 1
    Source Code:
    <?xml version='1.0' encoding='UTF-8' standalone='yes'?><wp_ajax><response action='find_posts_0'><object id='0' position='1'><response_data><![CDATA[<table class="widefat" cellspacing="h class="no-break">Type</th><th class="no-break">Date</th><th class="no-break">Status</th></tr></thead><tbody><tr class="found-posts"><td class="found-radio"><input type="radio" id="found-998" name="found_post_id" value="998"></td><td><label for="found-998">A Taste of Stratford</label></td><td class="no-break">Page</td><td class="no-break">2013/09/27</td><td class="no-break">Published </td></tr>

Viewing 1 replies (of 1 total)
  • The topic ‘Can't attach images to pages and posts’ is closed to new replies.