Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #880539
    bbddmac
    Participant

    Hi,

    My site is showing Hook errors. However, it looks like everything is correct in the wc/singleproduct.php page. I believe that the error if coming from X. Please assist

    When in a single product page I get no (Zero) errors. But when in a Category pages I get these Errors:

    woocommerce_before_single_product_summary hook is missing in the woocommerce templates of your theme.
    woocommerce_single_product_summary hook is missing in the woocommerce templates of your theme.
    woocommerce_before_add_to_cart_button hook is missing in the woocommerce templates of your theme.
    woocommerce_after_single_product_summary hook is missing in the woocommerce templates of your theme.
    woocommerce_share hook is missing in the woocommerce templates of your theme.

    thank you,

    DM

    #881071
    bbddmac
    Participant

    In trying to Fix the Hook errors I altered the Xchild theme. Once I did this everything went white. the page shows nothing . I cant even login WP. Any ides?

    bulletinzoom.com

    DM

    #881083
    bbddmac
    Participant

    This is the file I changed::

    <?php

    // =============================================================================
    // FUNCTIONS.PHP
    // —————————————————————————–
    // Overwrite or add your own custom functions to X in this file.
    // =============================================================================

    // =============================================================================
    // TABLE OF CONTENTS
    // —————————————————————————–
    // 01. Enqueue Parent Stylesheet
    // 02. Additional Functions
    // =============================================================================

    // Enqueue Parent Stylesheet
    // =============================================================================

    add_filter( ‘x_enqueue_parent_stylesheet’, ‘__return_true’ );

    // Additional Functions
    // =============================================================================

    <?php

    #881088
    bbddmac
    Participant
    This reply has been marked as private.
    #881346
    Lely
    Moderator

    Hi DM,

    We’re sorry you’re having this issue.
    A white screen usually means there is a fatal PHP error. Can you please enable WP_DEBUG mode? You can do this by opening wp-config.php and adding
    define( 'WP_DEBUG' , true ); just above /* That's all, stop editing! Happy blogging. */ For example:

    define('WP_DEBUG', true);
    
    /* That's all, stop editing! Happy blogging. */

    When you revisit the page with the white screen, you should have some error output describing the issue in more detail.

    #881584
    bbddmac
    Participant

    Hi,
    Thank you for your assistance. I enabled Wp debug mode by adding the “true” script to the wp-config.php file but I see no change in the site. Please advise.

    thanks,
    DM

    #881949
    Rue Nel
    Moderator

    Hello DM,

    It seems that your WP files were corrupted. I ended up re install WordPress core and Cornerstone plugin. What seems to be the problem or could please tell us what happen?

    Please let us know how it goes.

  • <script> jQuery(function($){ $("#no-reply-880539 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>