WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart

Tagged: ajax, bool, Wordpress 5.5

  • This topic has 8 replies, 2 voices, and was last updated 4 years, 8 months ago by Ramiro Canovas.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • August 14, 2020 at 5:03 pm #102985
    Ramiro Canovas
    Spectator

    We are having issues with a functionality that is supposed to delete a user and its pointing to the User Role Edit Pro plugin. Here is the fatal error:

    <b>Fatal error</b>: Uncaught Error: Call to a member function assignable_roles() on bool in /nas/content/live/petdev/wp-content/plugins/wpfront-user-role-editor-business-pro/classes/class-wpfront-user-role-editor.php:621
    Stack trace:
    #0 /nas/content/live/****/wp-content/plugins/wpfront-user-role-editor-business-pro/classes/class-wpfront-user…

    August 14, 2020 at 11:22 pm #103010
    Syam Mohan
    Keymaster

    Hi Ramiro,

    Did it start happening after you upgraded to WP 5.5?

    Thanks

    Syam

    August 14, 2020 at 11:26 pm #103011
    Ramiro Canovas
    Spectator

    We don’t believe so, I was just giving background info.

    August 16, 2020 at 11:49 pm #103043
    Syam Mohan
    Keymaster

    Hi Ramiro,

    So are you noticing this issue lately and it only happens with ajax calls? Is it possible for you to test with other plugins deactivated?

    Thanks

    Syam

    August 17, 2020 at 4:25 am #103056
    Ramiro Canovas
    Spectator

    Correct, the functionality deletes a specific user with wholesaler role, and when we click delete, we get the error I shared with you pointing to the role plugin and it does not perform the action. We have quiet a lot of plugins and it will be a very extensive troubleshooting path so would like to confirm frorm your side if there is anything you can do to help find the issue as its clearly pointing to the role plugin before we go changing templates and deactivating plugins.

    b>Fatal error</b>: Uncaught Error: Call to a member function assignable_roles() on bool in /nas/content/live/****/wp-content/plugins/wpfront-user-role-editor-business-pro/classes/class-wpfront-user-role-editor.php:621
    Stack trace:
    #0 /nas/content/live/****/wp-content/plugins/wpfront-user-role-editor-business-pro/classes/class-wpfront-user…

    Thank you

    August 17, 2020 at 9:58 pm #103083
    Syam Mohan
    Keymaster

    Hi Ramiro,

    I think this is because of a conflict with another plugin. What I’ll do is, I’ll add a condition check within that function before calling ‘assignable_roles’. That should fix your issue. I’ll send you an update very soon.

    Thanks

    Syam

    August 18, 2020 at 7:13 am #103100
    Ramiro Canovas
    Spectator

    Thank you Syam. In the meantime, this is what we did which could also give you more information:

    WITH WPFront User Role Editor activated:
    – wp ajax request with jquery old ajax function doesn’t work, retrieve 500 error.
    – wp ajax request with jquery new ajax function andphp limit memory to 1GB works but slow. (it was 512 MB)

    WPFront User Role Editor deactivated
    – wp ajax request (with jquery old ajax function) and normal php limit memory of 512MB work as normal.

    August 21, 2020 at 6:43 pm #103257
    Syam Mohan
    Keymaster
    This reply has been marked as private.
    August 24, 2020 at 8:15 pm #103373
    Ramiro Canovas
    Spectator
    This reply has been marked as private.
  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Log In
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions