• Hello everyone,

    I am having a very strange issue when creating a child theme using the Themeforest Sterling theme.

    Basically, a number of lines from the end of the parent functions.php are being copied straight to the end of the child’s function.php, wreaking all sorts of havoc from WSOD to duplicated function errors. I have the issue contained by using a function_exists() check but I don’t understand what’s going on.

    I have even made a blank functions.php in the child folder and it is immediately populated by said copied lines.

    Any help would be greatly appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • I’m sorry but as you are using a commercial theme, you need to seek support from the theme’s developer/vendor. We do not support commercial products here.

    Thread Starter farazfp

    (@farazfp)

    Thank you esmi, I understand; I just need to know if that sort of unexpected behaviour can arise from the theme itself, or whether there is something wrong with my overall setup, or maybe some sort of hack.

    Thread Starter farazfp

    (@farazfp)

    Update: Sure enough, switching to 2012 also shows the line duplication error. It doesn’t seem to be the theme in this case.

    Can we see the site using the default Twenty Thirteen theme with all plugins deactivated?

    Thread Starter farazfp

    (@farazfp)

    Done and done. Same issue. Site died via function redeclaration error.

    Why are you using an old copy of WordPress? Were you aware that your site is currently running a very real risk of being hacked? You need to upgrade WordPress asap.

    Thread Starter farazfp

    (@farazfp)

    Very well. I will update and report back.

    Thread Starter farazfp

    (@farazfp)

    Update: Sorry it took a while, as the Farsi version of WordPress 3.6 just came out this morning. Updated, and the symptoms persevere. I have also replicated the issue with a completely new installation, different database and no plugins.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘lines copied from parent functions.php into child theme functions.php’ is closed to new replies.