Support » Plugin: WP ERP - HRM, CRM & Accounting Solution For WordPress » Cannot load CRM Calendar Task

  • Resolved advertiseit

    (@advertiseit)


    Hi guys, for some reason, tasks won’t load when clicked on from the CRM calendar. Here is the error:

    VM767:5

    Uncaught TypeError: Cannot read property ‘ID’ of null

    at eval (eval at m.template (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils,undersco&load[]=re&ver=4.8.1:70), <anonymous>:5:30)

    at c (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils,undersco&load[]=re&ver=4.8.1:70)

    at load-scripts.php?c=1&load[]=jquery-ui-sortable,jquery-ui-resizable,jquery-ui-button,jquery-ui-dialog,wpdialogs,admin-bar,svg-painter,heartbeat,wp-auth-check&load[]=,hoverIntent,backbone,wp-util,wp-backbone,media-models,wp-plupload,mediaelement,wp-mediaelement,media-views,media-editor,media-a&load[]=udiovideo,mce-view,imgareaselect,image-edit,jquery-effects-core,jquery-ui-droppable,jquery-ui-menu,wp-a11y,jquery-ui-autocomplet&load[]=e&ver=4.8.1:293

    at Object.success (admin.php?page=erp-sales:1001)

    at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils,undersco&load[]=re&ver=4.8.1:2)

    at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils,undersco&load[]=re&ver=4.8.1:2)

    at Object.<anonymous> (load-scripts.php?c=1&load[]=jquery-ui-sortable,jquery-ui-resizable,jquery-ui-button,jquery-ui-dialog,wpdialogs,admin-bar,svg-painter,heartbeat,wp-auth-check&load[]=,hoverIntent,backbone,wp-util,wp-backbone,media-models,wp-plupload,mediaelement,wp-mediaelement,media-views,media-editor,media-a&load[]=udiovideo,mce-view,imgareaselect,image-edit,jquery-effects-core,jquery-ui-droppable,jquery-ui-menu,wp-a11y,jquery-ui-autocomplet&load[]=e&ver=4.8.1:293)

    at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils,undersco&load[]=re&ver=4.8.1:2)

    at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils,undersco&load[]=re&ver=4.8.1:2)

    at y (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,utils,undersco&load[]=re&ver=4.8.1:4)

    Thanks,
    Jason

    • This topic was modified 8 months, 1 week ago by  advertiseit.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor shawon786

    (@shawon786)

    @advertiseit,

    Please try WP ERP on a single site installation instead of multisite installation. I just tried to reproduce the issue on single site installation but no luck.

    Thanks and let me know updates on it 🙂

    I don’t think this is a multisite issue. I run WPERP on another multisite on mthe same server and every function works perfectly.

    After looking into it more, it’s related to another open ticket I have regarding the user ID showing as “undefined”.

    This function if( data.schedule.created_by.ID == wpErpCrm.current_user_id ) { is what’s triggering the calendar error. The issue was first reported here: https://wordpress.org/support/topic/undefined-user/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot load CRM Calendar Task’ is closed to new replies.