[Resolved] add to cart error 500

Home Forums Support [Resolved] add to cart error 500

Home Forums Support add to cart error 500

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1417200
    Jean

    Hi there,
    I use a generatepress child theme & gp premium, with woocommerce and MultiEventCalendar plugin and his Woocommerce addon.
    When I purchase an event, the add-t-cart function doesn’t works neither the cart page.
    When I deactivate generatepress, it work’s fine.
    I’ve activaded and deactivated woocommerce element. No change.
    Can I have some help please ?
    Thaks for help

    #1417324
    David
    Staff
    Customer Support

    Hi there,

    can you try it without your child theme?

    #1417325
    Jean

    Hi David,

    mmm I tried and… it work’s.
    Where can be the problem ?

    #1417365
    David
    Staff
    Customer Support

    Do you have any custom templates or functions in your child theme?

    #1417373
    Jean

    Yes, only theese one :

    //-------------------------------------------------------------------------------//
    // Templates
    //-------------------------------------------------------------------------------//
    
    function oueb_content() {
        ob_start();
            if(is_front_page()) {
                //echo get_the_content();
                get_template_part('templates/content_home');
            } else {
                echo get_the_content();
                get_template_part('templates/content_home');
            }
        $apply_content    =   ob_get_clean();
        return $apply_content;
        //return $content;
    }
    
    add_filter('the_content','oueb_content');
    
    function oueb_before_page_title(){
        ob_start();
        $postID             =   get_the_ID();
        $thumbnailID        =   get_post_thumbnail_id($postID);
        $featured_image_src =   wp_get_attachment_image_url($thumbnailID,'full');
        $title              =   esc_html(get_the_title($postID));
        ?>
            <div class="latelier_featured_image" style="background-image: url('<?= $featured_image_src;?>');padding: 100px 0">
                <div class="latelier_entry_title">
                    <h1 class="entry-title" itemprop="headline"><?= $title;?></h1>
                </div>
            </div>
        <?php
        $apply_content    =   ob_get_clean();
        echo $apply_content;
    }
    
    add_action('generate_before_page_title','oueb_before_page_title');
    #1417394
    David
    Staff
    Customer Support

    Can you try removing them to see if they are the issue ?

    #1417413
    Jean

    OK… thnks to you, I found the problem. It was a jquery enqueue script.

    #1417416
    David
    Staff
    Customer Support

    Aha – glad to hear you found the issue 🙂

    #1417457
    Jean

    Thanks again

    #1417600
    David
    Staff
    Customer Support

    You’re welcome

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