• Resolved Louis Lister

    (@llister)


    I am getting the same error as someone posted above and yes I am using PHP 7

    The plugin could not be activated because it triggered a fatal error.

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function wpdb::prepare(), 1 passed in /opt/lampp/htdocs/plugins/wp-content/plugins/html5-virtual-classroom/vlcr_setup.php on line 1349 and exactly 2 expected in /opt/lampp/htdocs/plugins/wp-includes/wp-db.php:1222 Stack trace: #0 /opt/lampp/htdocs/plugins/wp-content/plugins/html5-virtual-classroom/vlcr_setup.php(1349): wpdb->prepare(‘CREATE TABLE IF…’) #1 /opt/lampp/htdocs/plugins/wp-includes/class-wp-hook.php(286): vlcr_install(”) #2 /opt/lampp/htdocs/plugins/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #3 /opt/lampp/htdocs/plugins/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /opt/lampp/htdocs/plugins/wp-admin/plugins.php(174): do_action(‘activate_html5-…’) #5 {main} thrown in /opt/lampp/htdocs/plugins/wp-includes/wp-db.php on line 1222

    • This topic was modified 6 years, 5 months ago by Louis Lister.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author BrainCert

    (@braincert)

    Hi there.. This is caused by “vlcr_install” function ($wpdb->prepare) in vlcr_setup.php file. We’ve updated new 1.10 version with the fix.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin could not be activated because it triggered a fatal error’ is closed to new replies.