• Resolved ramisadi

    (@ramisadi)


    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

    (@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 ‘PHP ERRORS’ is closed to new replies.