• I am using a localhost install through Xampp. Started to develop a child theme for twenty sixteen and once I activate I can’t upload to or view the Media Library in grid view.

    This is a fresh install with only Akismet active and the only item I have in the child theme function file is enqueuing the parent CSS. I switch to the parent theme and have no problems. I also switched to the other default themes and had no issues uploading or viewing the library.

    I’ve even nuked the database and reinstalled WordPress but get the same errors. When I try to upload an image I get an error message and when I go to the library I get only the busy spinner. I also can’t change the header image using the customizer.

    Since this is a local install I don’t have a link to share. Any info will be helpful.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cadfile

    (@cadfile)

    I narrowed down the issue with the child theme function.php file. I was not able to figure out why my created file broke my media library and I read many threads from people having the same issue but no real solutions. I looked for any extra white spaces and I never had an issue creating files for development before now – I save the files as UTF with no BOM etc… I also had no error messages in HTTP or PHP.

    Instead I found a bare bones Twenty Sixteen child theme and I copied the function file to my theme directory and now My media library is back.

    lalejon

    (@lalejon)

    I got the same issue. Child Twenty Sixteen theme, local server and Media Library gone.

    The origin of the problem was the functions.php file starting with “<?php” and no further line.

    The solution I found was just add an empty line below that:
    <?php
    empty line here

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Media Library Broken using Twenty Sixteen Child Theme’ is closed to new replies.