Results 1 to 4 of 4

Thread: Child Theme functions.php breaks WP image uploader

  1. #1
    Thread Starter
    Expired Customer thehenplanner's Avatar
    Join Date
    May 2013
    Location
    United Kingdom
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Child Theme functions.php breaks WP image uploader

    hi,

    I have the Vantage theme installed, and a child theme working fine. I need to add a couple of lines of code to functions.php, so I created a child functions.php file in my child theme directory (..../vantage-child-theme/functions.php)

    However, when the functions.php is present in the child theme directory, the Wordpress image uploader stops working. That is, if I choose 'Add Media' on a page or post I cannot see the media library tab, and I also cannot properly upload by selecting files from my PC. Trying to upload gives an error saying 'An error occurred in the upload. Please try again.' I do not get to the image properties panel. However, the image IS actually uploaded, as I can see them by using Media > Library from the WP admin sidebar.

    The interesting thing is that the mere presence of functions.php in the child theme directory is enough to cause this, even if the file only contains the opening and closing php tags.

    <?php

    ?>

    with no actual code inside.

    Am I doing something wrong? Is this a bug? I have tried it on a clean install with no plugins...

    Thanks!

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Expired Customer thehenplanner's Avatar
    Join Date
    May 2013
    Location
    United Kingdom
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Child Theme Functions & Hooks
    By lucrothe in forum Vantage General Discussion (Legacy)
    Replies: 0
    Last Post: May 23rd, 2013, 10:56 PM
  2. Child theme functions
    By benkovic in forum Vantage General Discussion (Legacy)
    Replies: 10
    Last Post: May 8th, 2013, 07:15 AM
  3. Dimitris Vantage functions php & child-theme
    By tbase in forum Help Using Vantage (Legacy)
    Replies: 6
    Last Post: March 26th, 2013, 03:22 PM
  4. [SOLVED] functions.php for child-theme
    By lunovis in forum Report JobRoller Bugs
    Replies: 2
    Last Post: November 15th, 2012, 08:14 AM
  5. theme-functions.php not working inside child theme folder
    By jobortunity in forum JobRoller General Discussion
    Replies: 6
    Last Post: November 6th, 2012, 03:24 AM