Forum Replies Created

Viewing 15 replies - 16 through 30 (of 73 total)
  • Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hello @jamesosborne

    Thank you for sharing your solution, Now I understand the idea with my little coding skills, Allow me to share this I made the name more universal.

    <?php
    /**
     * Plugin Name: JWT Auth Fix
     * Plugin URI: https://www.jamesozz.ie
     * Description: Whitelist Google Site Kit, Rank Math, WO Statistics, JetPack API calls in JWT Auth by Useful Team.
     * Version: 1.1
     * Author: James Osborne
     * Author URI: https://www.jamesozz.ie
     */
     
     
    add_filter( 'jwt_auth_whitelist', function ( $endpoints ) {
      $your_endpoints = array(
          '/wp-json/google-site-kit/*',
          '/wp-json/seo-by-rank-math/*',
          '/wp-json/wp-statistics/*',
    	  '/wp-json/jetpack/*',
      );
    
      return array_unique( array_merge( $endpoints, $your_endpoints ) );
    } );

    Hello,

    JWT not only affecting on Google’s Site Kit, It’s affecting on Rank Math Pluing and WP Statistics, I don’t know if there are other issues.

    Kindly find the below console errors:

    load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:5 JQMIGRATE: Migrate is installed, version 3.3.2
    The deferred DOM Node could not be resolved to a valid node.
    admin.min.js?ver=13.2.5:1 Uncaught TypeError: Cannot read properties of undefined (reading 'today')
        at admin.min.js?ver=13.2.5:1:37211
        at Array.forEach (<anonymous>)
        at admin.min.js?ver=13.2.5:1:37124
        at Object.summary_statistics (admin.min.js?ver=13.2.5:1:37299)
        at Object.view (admin.min.js?ver=13.2.5:1:37486)
        at Object.success (admin.min.js?ver=13.2.5:1:2996)
        at c (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2:28327)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2:29072)
        at l (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2:79901)
        at XMLHttpRequest.<anonymous> (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2:82355)
    (anonymous) @ admin.min.js?ver=13.2.5:1
    (anonymous) @ admin.min.js?ver=13.2.5:1
    summary_statistics @ admin.min.js?ver=13.2.5:1
    view @ admin.min.js?ver=13.2.5:1
    success @ admin.min.js?ver=13.2.5:1
    c @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    fireWith @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    l @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    (anonymous) @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    load (async)
    send @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    ajax @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    s.ajax.s.ajax @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:5
    t @ admin.min.js?ver=13.2.5:1
    c.ajaxq @ admin.min.js?ver=13.2.5:1
    d.ajaxQ @ admin.min.js?ver=13.2.5:1
    d.run_meta_box @ admin.min.js?ver=13.2.5:1
    (anonymous) @ admin.min.js?ver=13.2.5:1
    d.run_meta_boxes @ admin.min.js?ver=13.2.5:1
    (anonymous) @ admin.min.js?ver=13.2.5:1
    e @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    t @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2 jQuery.Deferred exception: Cannot read properties of undefined (reading 'content') TypeError: Cannot read properties of undefined (reading 'content')
        at Object.<anonymous> (https://jadolyo.com/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-jitm/build/index.js?minify=false&ver=cf3aae5a781843dfa841:1:2819)
        at e (https://jadolyo.com/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2:30038)
        at t (https://jadolyo.com/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2:30340) undefined
    S.Deferred.exceptionHook @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    t @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    setTimeout (async)
    (anonymous) @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    c @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    fireWith @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    fire @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    c @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    fireWith @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    l @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    (anonymous) @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    load (async)
    send @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    ajax @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    s.ajax.s.ajax @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:5
    S.<computed> @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    (anonymous) @ index.js?minify=false&ver=cf3aae5a781843dfa841:1
    each @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    each @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    e @ index.js?minify=false&ver=cf3aae5a781843dfa841:1
    (anonymous) @ index.js?minify=false&ver=cf3aae5a781843dfa841:1
    e @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    t @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1:2
    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hello @jamesosborne

    Thank you for sharing a fix, It fixed the issue with your plugin “Site Kit by Google” but I am having an issue with rank math and WP Statistics, I don’t know if it’s affecting other plugins or functions too, I know that I shouldn’t ask this but can you write a universal fix not only for Google Kit.

    add_filter( 'jwt_auth_whitelist', function ( $endpoints ) {
      $your_endpoints = array(
          '/wp-json/google-site-kit/*',
      );
    
      return array_unique( array_merge( $endpoints, $your_endpoints ) );
    } );

    instead of this line what I should write to fix all issues?
    ‘/wp-json/google-site-kit/*’,

    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hello @jamesosborne

    I sent the site health information in the form.

    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hi @subratamal

    I think it should have it by default many stores doesn’t use one currency, I will check your support.

    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hi @subratamal

    I am using CURCY – WooCommerce Multi Currency Premium from Villa Themes.

    The plugin website:
    https://villatheme.com/extensions/woo-multi-currency/

    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hi @subratamal

    Okay, Thank you for your great support.

    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hi @subratamal

    another question.

    Is it working with all products or virtual products only? I need it with virtual only.

    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hi @subratamal

    Thank you very much for your updated code, It’s working fine.

    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hello @subratamal

    Thank you for your support, This code will work with Tera wallet only or all payment methods?

    All payments plugins are working fine, I need it with Tera wallet only.

    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hello @shelfplanner

    I had an update today regarding the profit issue, I wish I really wish to profit from 150$ of cost 3185$, I feel really gooooooooooooooood ??

    https://ibb.co/xhKyJ6Y

    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    @subratamal hello

    You mean in the plugin code I need to add that line?

    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hello,

    Any news about the profit problem? I could solve the Chrome issue by disabling that extension.

    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hello @deathlynotes

    I found today the problem or what was causing this problem, WP Rocket when it deffer JS files was causing this and I had to exclude all theme JS files:

    /wp-content/themes/theme_Name/assets/js/(.*).js

    Now everything is working fine, Just one problem related to another plugin.

    Thank you for your support, Have a nice day.

    Thread Starter Ahmed Jadelrab

    (@jadolyo)

    Hi @jamesosborne

    Thank you for your great support and the Great plugin, It’s working fine now and integrated all google services successfully, Have a nice day.

Viewing 15 replies - 16 through 30 (of 73 total)