Error top-cart.php

  • Post count: 3
    August 22, 2016 at 4:44 pm #21724

    I just noticed that this error is happing on every post for a long, long time.

    [Mon Aug 22 18:38:28.796179 2016] [fcgid:warn] [pid 13260] [client xx.xx.xx.xx:40653] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /var/www/xxxxx/xxxxxx/httpdocs/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31, referer:

    Solutions from the others threads aren’t working.

    Questions A) How to solve this? B) Is it possible to make the shop an option to use or not? Would make the site load faster for non-shop users.

    • This topic was modified 1 year, 10 months ago by  Flexgids.
    Post count: 2592
    August 25, 2016 at 5:14 am #21761

    hi Flexgids, if you doesn’t have plan to use woocommerce you can simply remove the code. you can go to jmagz themes plugin > lib > ajax-response.php. On line 506, you can remove those line.

    Thank you

    Post count: 3
    August 25, 2016 at 2:11 pm #21774

    Thanks. That seems to work.

    I tried it before, but in the wrong theme folder.

    Post count: 2592
    August 27, 2016 at 1:21 am #21786

    great Flexgids 🙂

You must be logged in to reply to this topic.