Title: PHP ERRORS
Last modified: July 2, 2018

---

# PHP ERRORS

 *  Resolved [ramisadi](https://wordpress.org/support/users/ramisadi/)
 * (@ramisadi)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-errors-132/)
 * HELLO, I need help here please.
 * I have upgraded my account with you yesterday, hoping that my issues will be 
   resolved and you will help me with them.
 * Now, I have the following error message when trying to activate the plugin:
 * Fatal error: Uncaught ArgumentCountError: Too few arguments to
 * function wpdb::prepare(), 1 passed in
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-content/plugins/html5-
   virtual-classroom/vlcr_setup.php
 * on line 1349 and exactly 2 expected in
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-includes/wp-db.php:1222
 * Stack trace:
 * #0
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-content/plugins/html5-
   virtual-classroom/vlcr_setup.php(1349):
 * wpdb->prepare(‘CREATE TABLE IF…’)
 * #1
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-includes/class-wp-hook.
   php(286):
 * vlcr_install(”)
 * #2
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-includes/class-wp-hook.
   php(310):
 * WP_Hook->apply_filters(”, Array)
 * #3
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-includes/plugin.php(
   453):
 * WP_Hook->do_action(Array)
 * #4
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-admin/plugins.php(174):
 * do_action(‘activate_html5-…’)
 * #5 {main}
 * thrown in /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-includes/wp-
   db.php on line 1222
 * Fatal error: Uncaught ArgumentCountError: Too few arguments
 * to function wpdb::prepare(), 1 passed in
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-content/plugins/html5-
   virtual-classroom/vlcr_setup.php
 * on line 1349 and exactly 2 expected in
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-includes/wp-db.php:1222
 * Stack trace:
 * #0
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-content/plugins/html5-
   virtual-classroom/vlcr_setup.php(1349):
 * wpdb->prepare(‘CREATE TABLE IF…’)
 * #1
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-includes/class-wp-hook.
   php(286):
 * vlcr_install(”)
 * #2
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-includes/class-wp-hook.
   php(310):
 * WP_Hook->apply_filters(”, Array)
 * #3
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-includes/plugin.php(
   453):
 * WP_Hook->do_action(Array)
 * #4
 * /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-admin/plugins.php(174):
 * do_action(‘activate_html5-…’)
 * #5 {main}
 * thrown in /home/185043.cloudwaysapps.com/ggztnqcaqn/public_html/wp-includes/wp-
   db.php on line 1222
 * I solved the above errors by inserting a new “NULL” argument to each “prepare”
   statement in the file vlcr-setup.php.
    Is that correct? **But I now have the 
   following error:** Fatal error: syntax error, unexpected ‘wp_ajax_vlcr_get_selected_clas’(
   T_STRING), expecting ‘,’ or ‘)’ in /home/185043.cloudwaysapps.com/ggztnqcaqn/
   public_html/wp-content/plugins/html5-virtual-classroom/vlcr_setup.php on line
   1467
 * Apparently it is a php code issue and compatibility, I don’t know what is the
   reason behind these errors.
 * I am really having hard times here, I need to use the plugin today and it doesn’t
   work.
 * Note: I used php7.2 version, and switched back to php 7.0 and the same issue.

Viewing 1 replies (of 1 total)

 *  Plugin Author [BrainCert](https://wordpress.org/support/users/braincert/)
 * (@braincert)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-errors-132/#post-10484745)
 * 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 ‘PHP ERRORS’ is closed to new replies.

 * ![](https://ps.w.org/html5-virtual-classroom/assets/icon-128x128.png?rev=3015622)
 * [BrainCert Virtual Classroom](https://wordpress.org/plugins/html5-virtual-classroom/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/html5-virtual-classroom/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/html5-virtual-classroom/)
 * [Active Topics](https://wordpress.org/support/plugin/html5-virtual-classroom/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/html5-virtual-classroom/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/html5-virtual-classroom/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [BrainCert](https://wordpress.org/support/users/braincert/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/php-errors-132/#post-10484745)
 * Status: resolved