Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #509356

    Hello,

    I am using a child theme for the Enfold theme. I am using the latest version of Enfold, and I am also using the Enfold Child theme provided by Kriesi.

    The problem is every time I try to load functions.php in /enfold-child I get the white screen of death on front end and admin.

    I copied and pasted the functions file exactly as it was in the enfold/functions.php.

    I added the line: $avia_config[‘use_child_theme_functions_only’] = true; to the top of the file and still same blank white page.

    Is there a special trick to get the functions.php to load and not cause the pages the white blank?

    Please let me know ASAP, thank you.

    #509480

    Hi!

    Try enabling WP_DEBUG and chack if a message appears instead of the white screen.

    Best regards,
    Josue

    #510512

    Yes, the errors are in relation to the include and require statements in the functions.php file because those files are in the parent theme Enfold. Copying all of those files doesn’t not make sense. How can I just use the functions.php in the child theme without errors?

    #510513

    I really need to figure this out, please assist ASAP. Thank you.

    #510550

    Hi!

    Can you please show us the errors that come up?
    Thanks a lot for your time and patience

    Cheers!
    Basilis

    #510553

    Notice: Undefined index: b1d02adf6 in /home6/tuf/public_html/wp-includes/rewrite.php on line 1

    Warning: require_once(config-wpml/config.php) [function.require-once]: failed to open stream: No such file or directory in /home6/tuf/public_html/wp-content/themes/enfold-child/functions.php on line 36

    Fatal error: require_once() [function.require]: Failed opening required ‘config-wpml/config.php’ (include_path=’.:/usr/lib64/php:/usr/share/pear’) in /home6/tuf/public_html/wp-content/themes/enfold-child/functions.php on line 36

    #510603

    Hi,

    Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.

    Thanks,
    Rikard

    #510727

    Sent private details.

    #510929

    Any ideas as to what is wrong?

    #510993

    Hi!

    The problem is every time I try to load functions.php in /enfold-child I get the white screen of death on front end and admin.
    I copied and pasted the functions file exactly as it was in the enfold/functions.php.

    You don’t need to do that, leave child functions.php empty.

    Regards,
    Josue

    #511095

    See reply :)

    #511102

    Hey!

    Correct, add them to the child theme functions.php. Some Enfold native functions and classes are pluggable, meaning you can paste the whole code in the child theme functions.php and it will override the parent ones.

    Regards,
    Josue

    #511105

    Ok thanks for clarifying, do you have a list of the pluggable functions in functions.php?

    #511197

    Hi!

    Look for anything that starts with:

    if(!function_exists...
    

    Note that if what you want to change is wrapped with apply_filters it would be more efficient to use a filter approach instead.

    References:
    https://codex.wordpress.org/Function_Reference/apply_filters
    https://codex.wordpress.org/Function_Reference/add_filter

    Best regards,
    Josue

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.