• Resolved vaidyamanishjoshi

    (@vaidyamanishjoshi)


    When opening capabilities >> Additional, getting error as Warning: Undefined variable $title_text in mysite\wp-content\plugins\capability-manager-enhanced\includes\admin.php on line 1618

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Riza Prihananto

    (@rizaprihananto)

    Hi @vaidyamanishjoshi ,

    Thank you for using our plugin.
    Could you tell us what is the version the plugin that you installed? I installed the latest one and I do not find that error: https://prnt.sc/iP0O7rs1jgIP.

    Thread Starter vaidyamanishjoshi

    (@vaidyamanishjoshi)

    Hello, i think error is shown when woocommerce is installed. Because these errors are seen related to products, orders, cartflow etc. In screenshot you are seeing General Member = Subscriber (Name Edited By Me)

    screenshot – https://postimg.cc/LgF40b0D

    Plugin Support Riza Prihananto

    (@rizaprihananto)

    Hi @vaidyamanishjoshi ,

    I am so sorry, we cannot see the screenshot you provided. Could you upload it somewhere like in Google Drive that we can see more easily?

    I encountered the same problem after updating to the latest version. “PHP Warning: Undefined variable $title_text in D:\WebRoot\2026com\wp-content\plugins\capability-manager-enhanced\includes\admin.php on line 1618” .The error message is: PHP Warning: Undefined variable $title_text used. The PHP version I’m using is PHP 8.3.25. I asked Chatgpt for their response, and it was as follows:

    Find the following line:

    $disabled = '';

    $checked = !empty($rcaps[$cap_name]) ? 'checked' : '';

    Change it to:

    $title_text = '';

    $disabled = '';

    $checked = !empty($rcaps[$cap_name]) ? 'checked' : '';

    In other words, add one more line:

    $title_text = '';

    I hope this bug can be fixed as soon as possible; I don’t want to have to manually fix it every time I add a new website.

    • This reply was modified 1 week, 5 days ago by yen0727.
    Plugin Author Steve Burge

    (@stevejburge)

    @yen0727 Can you test this beta version to see if it solves the issue? https://app.box.com/s/c7a03cip0jabiujwvw3gkh0wulqsoizd

    @stevejburge Yes, it’s fixed. It’s that simple. Just ask ChatGPT and you’ll know how to fix it.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.