• Resolved anvilhouse

    (@anvilhouse)


    Im trying to figure out what is going wrong here, as soon as Ideapush is activated it locks me out of the backend and gives me this

    
    [12-Nov-2019 00:33:26 UTC] PHP Fatal error:  Uncaught Error: Call to a member function add_cap() on null in /home/engine/public_html/wp-content/plugins/ideapush/ideapush.php:155
    Stack trace:
    #0 /home/engine/public_html/wp-includes/class-wp-hook.php(286): idea_push__role_capabilities('')
    #1 /home/engine/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #2 /home/engine/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #3 /home/engine/public_html/wp-admin/admin.php(169): do_action('admin_init')
    #4 /home/engine/public_html/wp-admin/index.php(10): require_once('/home/engine/pu...')
    #5 {main}
      thrown in /home/engine/public_html/wp-content/plugins/ideapush/ideapush.php on line 155

    This is occurring with the latest Ideapush v7.1, using the latest wordpress update
    I initially thought it was a bad plugin interaction with Advanced Access Manager, but the same error is thrown after deactivating all of my other plugins

    AAM, Woocommerce, WPML, CF7, W3 total cache and our firewall

    Ideapush Guest and Ideapush Manager have not been deleted, Ive tried reinstalling manually and through the WP plugins dash

    I know it is frowned upon to modify ideapush but Im open to whatever to get it running again

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @anvilhouse,

    I am sorry you are experiencing this issue. It’s not something I can repeat on my end. To confirm, you had a previous version running fine, but when using the updated version is when the issue is being experienced?

    What version of PHP are you using? This is normally found in the IdeaPush support tab in the plugin settings but if you can’t activate it you won’t be able to get this. Also what version of WordPress are you using. Thanks,

    Thread Starter anvilhouse

    (@anvilhouse)

    Wordpress Version 5.2.4
    I think the previous version was 4.53 of Ideapush
    (made a support request 7 months ago, ended up rolling back to the last working version)
    PHP version 7.0.33

    And as suggested in the previous thread I have deactivated/activated and reinstalled the plugin quite a few times today with no changes to useability ??

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @anvilhouse,

    Are you using the free or pro version?

    Thanks,

    Thread Starter anvilhouse

    (@anvilhouse)

    the free version currently

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Thanks for that info. Unfortunately repeating the installation and activation of the free version of the plugin on the same PHP version and WordPress I am unable to replicate the issue. I am not certain why you are running into this issue. You can try removing those lines of code, otherwise I can only advise getting the pro version, and that comes with priority email support and also the ability for me to diagnose issues on your particular WordPress instance, which I can’t do via this forum.

    Thanks,

    Thread Starter anvilhouse

    (@anvilhouse)

    Actually, we found the culprit

    By default you were assuming the ‘editor’ role was a set role in a wp site, we removed/renamed that role so in this instance it was returning the NULL value

    Adding
    if (!$role) continue;
    just after line 154 in ideapush.php it should continue if the role id is valid ??

    This should also help with the previous deleted Ideapush roles issues ive seen a few times in the support forum

    Hope you have a good evening and thank you for the quick response

    • This reply was modified 5 years ago by anvilhouse.
    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @anvilhouse,

    I will look into this part of the code soon. Thanks,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP error disables backend/dashboard’ is closed to new replies.