Close

Account

Documentation

Forum

Menu

admin-ajax.php cause error 500

  • Post count: 13
    rathasok7
    December 16, 2015 at 4:47 am #16946

    Hi am using wordpress 4.4 and got this error 500:
    [Wed Dec 16 04:38:36 2015] [error] [client 117.20.112.10] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31

    how to solve this?

    Post count: 13
    rathasok7
    December 16, 2015 at 5:09 am #16947

    am not using woo-commerce.

    Post count: 2247
    Jegbagus
    December 17, 2015 at 2:09 am #16979

    hi rathasok7, please go to jmagz themes folder > public > js > main.js
    and on line 1345, just remove those line

    Thank you

    Post count: 13
    rathasok7
    December 17, 2015 at 3:40 am #16989

    ok… done. thanks.

    Post count: 13
    rathasok7
    December 17, 2015 at 5:18 am #16992

    Hi i still got the server error even if i removed the do_add_to_cart(); from main.js. This cause a spike in my Server CPU stats.

    Here is the full server error log:
    [Thu Dec 17 01:13:45 2015] [error] [client 117.20.113.14] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 01:14:19 2015] [error] [client 117.20.113.14] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 01:18:26 2015] [error] [client 117.20.113.14] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 01:18:38 2015] [error] [client 117.20.113.14] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 01:19:36 2015] [error] [client 117.20.113.14] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 01:20:23 2015] [error] [client 117.20.113.14] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 01:20:30 2015] [error] [client 117.20.113.14] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 01:21:38 2015] [error] [client 117.20.113.14] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 01:22:02 2015] [error] [client 117.20.113.14] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 01:24:32 2015] [error] [client 117.20.113.14] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 01:25:25 2015] [error] [client 117.20.113.14] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 01:25:29 2015] [error] [client 117.20.113.14] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 03:34:57 2015] [error] [client 117.20.113.17] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 03:35:44 2015] [error] [client 117.20.113.17] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 04:41:57 2015] [error] [client 66.249.69.5] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 05:03:37 2015] [error] [client 66.249.69.5] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 05:05:01 2015] [error] [client 66.249.69.5] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 05:05:28 2015] [error] [client 66.249.69.5] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 05:07:35 2015] [error] [client 66.249.69.5] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 05:10:08 2015] [error] [client 66.249.69.5] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31
    [Thu Dec 17 05:12:47 2015] [error] [client 66.249.69.21] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wc_get_page_id() in /home/www/ioskhmer.com/wp-content/themes/jmagz-themes/fragment/top-cart.php on line 31

    Post count: 13
    rathasok7
    December 17, 2015 at 5:19 am #16993

    can we just turn of this top-cart.php or delete any function that call: wc_get_page_id()?

    Post count: 2247
    Jegbagus
    December 18, 2015 at 1:46 am #17003

    hi rathasok7, it may because js cache. btw you can also disable it from here : jmagz themes > lib > ajax-response.php on line 506, you can remove this line : get_template_part(‘fragment/top-cart’);

    Thank you

    Post count: 33
    campusplus
    December 18, 2015 at 2:49 am #17007

    Hi,

    I’ve the same 500 Internal Server problem when I updated to WordPress 4.4.

    My hosting company said the error is caused by this:

    [Thu Dec 10 04:05:50.228317 2015] [:error] [pid 7931] [client 121.121.115.223:10410] PHP Fatal error: Call to undefined function jeg_get_all_category_vc() in /nas/content/live/campusplus/wp-content/themes/jmagz-child/functions.php on line 39

    Can you look into this? I’ve downgraded to WordPress 4.3 as of now due to theme incompatibility issue.
    Thanks!

    Post count: 2247
    Jegbagus
    December 21, 2015 at 2:08 am #17046

    hi camplusplus, can you please create new tread. this thread is already flagged as Resolved.

    Thank you

You must be logged in to reply to this topic.