Support » Theme: Spacious » Child theme breaking site after upgrade of parent theme

  • p3wj

    (@p3wj)


    Hi,
    We have an issue with our clients site.
    We upgrade to the lastest version of Spacious theme and the child theme breaks the site.
    If i change to the parent it works but all formatting is lost.

    When child is active the site loads but has a blank page. When i activate wp-debug i get the below errors.

    Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/domainname/public_html/wordpress/wp-includes/functions.php on line 4147
    
    Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/domainname/public_html/wordpress/wp-includes/functions.php on line 4147
    
    Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/domainname/public_html/wordpress/wp-includes/functions.php on line 4147
    
    Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/domainname/public_html/wordpress/wp-includes/functions.php on line 4147
    
    Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/domainname/public_html/wordpress/wp-includes/functions.php on line 4147
    
    Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/domainname/public_html/wordpress/wp-includes/functions.php on line 4147
    
    Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/domainname/public_html/wordpress/wp-includes/functions.php on line 4147
    
    Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/domainname/public_html/wordpress/wp-includes/functions.php on line 4147
    
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/domainname/public_html/wordpress/wp-includes/functions.php:4147) in /home/domainname/public_html/wordpress/wp-content/plugins/iframe-popup/iframe-popup.php on line 33
    
    Fatal error: Uncaught Error: Call to undefined function of_get_option() in /home/domainname/public_html/wordpress/wp-content/themes/spacious-child/header.php:41 Stack trace: #0 /home/domainname/public_html/wordpress/wp-includes/template.php(688): require_once() #1 /home/domainname/public_html/wordpress/wp-includes/template.php(647): load_template('/home/domainname/p...', true) #2 /home/domainname/public_html/wordpress/wp-includes/general-template.php(41): locate_template(Array, true) #3 /home/domainname/public_html/wordpress/wp-content/themes/spacious-child/page.php(11): get_header() #4 /home/domainname/public_html/wordpress/wp-includes/template-loader.php(74): include('/home/domainname/p...') #5 /home/domainname/public_html/wordpress/wp-blog-header.php(19): require_once('/home/domainname/p...') #6 /home/domainname/public_html/index.php(17): require('/home/domainname/p...') #7 {main} thrown in /home/domainname/public_html/wordpress/wp-content/themes/spacious-child/header.php on line 41

    Any help appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Also:
    The version of Spacious I am on is: 1.0.9.
    Update to is to version 1.6.7.

    @p3wj

    Please tally the parent theme code and then, amend the code as needed within the child theme’s file according to the parent theme and check once.

    Thanks.

    Hi,
    Sorry, what do you mean by tally the parent theme code and amend the code within the child theme?
    I am unsure what changes I should be making with it.
    Cheers

    @p3wj

    What we mean is, you need to check on the overwritten template files as well as functions of the parent theme within the child theme and then, change the child theme code as present in the parent theme wherever needed.

    Thanks.

    hey,
    sorry just gotten back to this issue.
    i think i know what you mean about tallying the differences but is there specific lines i should be looking at? such as version# or something?
    cheers

    @p3wj

    You need to check on each and every lines of the main(parent) theme as well as child theme created for your site too. You just need to find the changes needed and change them according to the requirement of parent theme. And lastly, we can’t tell about what lines at all since the child theme and parent theme code can vary too much.

    Thanks.

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