• Resolved Nathan24

    (@nathan24)


    This error started happening a couple days ago:

    PHP Fatal error: Uncaught Error: Call to undefined function bws_general_menu() in /home/admin/web/website.org/public_html/wp-content/plugins/contact-form-plugin/contact_form.php:36\nStack trace:\n#0 /home/admin/web/website.org/public_html/wp-includes/class-wp-hook.php(286): cntctfrm_admin_menu(”)\n#1 /home/admin/web/website.org/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n#2 /home/admin/web/website.org/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#3 /home/admin/web/website.org/public_html/wp-admin/includes/menu.php(149): do_action(‘admin_menu’, ”)\n#4 /home/admin/web/website.org/public_html/wp-admin/menu.php(286): require_once(‘/home/admin/web…’)\n#5 /home/admin/web/website.org/public_html/wp-admin/admin.php(140): require(‘/home/admin/web…’)\n#6 /home/admin/web/website.org/public_html/wp-admin/customize.php(13): require_once(‘/home/admin/web…’)\n# in /home/admin/web/website.org/public_html/wp-content/plugins/contact-form-plugin/contact_form.php on line 36, referer: https://website.org/

    Here’s the relevant code from contact_form.php:
    if ( ! function_exists( ‘cntctfrm_admin_menu’ ) ) {
    function cntctfrm_admin_menu() {
    bws_general_menu();
    $cntctfrm_settings = add_submenu_page( ‘bws_panel’, __( ‘Contact Form Settings’, ‘contact-form-plugin’ ), __( ‘Contact Form’, ‘contact-form-plugin’ ), ‘manage_options’, ‘contact_form.php’, ‘cntc$
    add_action( ‘load-‘ . $cntctfrm_settings, ‘cntctfrm_add_tabs’ );
    }
    }

    It’s calling the bws_general_menu() function, but that function hasn’t been loaded.

    For now, I’ve resolved the issue by copying the bws_general_menu() function from bws_menu/deprecated.php to contact_form.php, but that’ll of course be erased with the next plugin update.

    Thanks for your help.

    • This topic was modified 6 years, 10 months ago by Nathan24.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Thank you for contacting us!

    Could you please let us know, do you use Captcha (https://www.ads-software.com/plugins/captcha/) plugin? It might cause such issue.

    If you do, please try to deactivate it. Follow the next steps in order to deactivate (disable) WordPress plugin manually via FTP:

    1) Download and install FTP client (for example, Filezilla).
    2) Open FTP client and enter your FTP access credentials (host, username, and password) to access files on your server.
    3) Navigate to ‘yourwordpresswebsite/wp-content/plugins’ directory.
    4) Disable necessary plugin by renaming its folder.

    To protect your contact form you can use our Google Captcha plugin (https://www.ads-software.com/plugins/google-captcha/) instead of the Captcha plugin.

    If you don’t use Captcha plugin, complete the following steps in order to detect the problem and find its solution:

    1) Try to activate a standard WordPress theme for a while (Twenty Fourteen, Twenty Fifteen or Twenty Sixteen) and check if the problem remains.
    2) Try to deactivate all of your plugins except Contact Form and also check if the problem is still present. If it is not, activate the plugins one-by-one, meanwhile checking, after which plugin activation the problem appears again.

    Let us know about the results.

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Since there is no reply from you, we consider this topic as resolved. We hope you’ve found the solution. If you have any questions, please feel free to contact us via our Help Center – https://support.bestwebsoft.com/.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught Error: Call to undefined function bws_general_menu()’ is closed to new replies.