• Resolved Padaben

    (@padaben)


    Hi, any fix for
    PHP Notice: has_cap was called with an argument that is deprecated since version 2.0.0! ?
    I try to debug my site and there’s so much lines with this that this is harder work-
    Thank you 😀
    regards

Viewing 8 replies - 1 through 8 (of 8 total)
  • @padaben, I think this is not related to our ERP plugin. Please disable all plugin except WP ERP and then look for the error.

    Thread Starter Padaben

    (@padaben)

    Hi,
    I did search has_cap into your plugin and various files have :
    if ( $wpdb->has_cap( ‘collation’ ) ) line
    into my entire website i do not have any other line with has_cap.

    Thanks for your help
    regards

    That’s right, but the error you posted is not related to this. If you google for solution, you’ll find some issues with the permissions registered in add_menu_page or add_submenu_page calls. However, please disable all plugins except ERP and check if you find this error again.

    Thank you.

    Thread Starter Padaben

    (@padaben)

    Hi,
    I’ve been still having this notice
    PHP Notice: has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /var/www/html/wp-includes/functions.php on line 4020.
    You’re saying it is not your plugin, but I disabled all others and I still have it into NETWORK of my multisite install
    it is not into each subdomain dashboard but yes into network
    and this is giving me a lot of lines into my error_log
    I did update to the last version and it is same.
    please give me fix.
    regards

    Edi Amin

    (@ediamin)

    @padaben WP ERP is not yet multisite supported. And we do not have a plan to add multisite support feature in near future. Thank you.

    Thread Starter Padaben

    (@padaben)

    hi, I do know, you already told me.
    But If I have it only activated into the main domain, and not the other subdmmains even if i have multisite, it is like a single domain activation right ?
    So I did deactivate it from network and only activated it on my main domain
    still have has_cap.
    any other advice ?
    thank you

    Edi Amin

    (@ediamin)

    No, your WP installation should not be a multisite setup. If you want to test it further please install WP ERP in your localhost inside a non-multisite WP setup. If you still find this issue there, please inform me. Thanks a lot.

    Thread Starter Padaben

    (@padaben)

    Thank you for your response.
    regards

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Has_Cap lots of errors’ is closed to new replies.