Hi Braincert team,
Since WordPress has been updated, the Braincert plugin is giving the following error when debugging is turned on:
“Deprecated: Function has_cap was called with an argument that is?deprecated?since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.”
At the moment it does not seem to be causing any problems with the functionality but it does appear that the code in the plugin may need some updating perhaps? Sometimes outdated code can suddenly lead to issues in the future.
]]>How one can join the class?
Thanks!
in-class list page how to display the class with teacher name and how to display all the class in the teacher’s profile page. is there any way to display the above two ways. if it is possible I am very lucky to use this app on my website.
]]>Hello,
When I’ve set shortcode [class_schedule_teacher] to schedule class from front-end by teachers, it’s not working ever as it’s failed to load vlcr_class_schedule.php file for same.
For it, I have downloaded the latest updated version and found same that file is missing.
So, could you please check for same and provide me that missing file?
Looking forward to hearing back from you.
Thanks
]]>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.
]]>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
]]>
<?php
/**
* virtual-classroom
*
*
* @author BrainCert
* @category Classlist
* @package virtual-classroom
* @since 1.7
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
$vc_obj = new vlcr_class();
$vc_setting=$vc_obj->vlcr_setting_check();
if($vc_setting==1){
echo "Please setup API key and URL";
return;
}
$id=$_REQUEST['id'];
$users= get_users();
if (isset($_POST['inviteuser'])){
$data =$_POST;
//$result=$vc_obj->vlcr_invite_user($data,0);
$result=$vc_obj->vlcr_invite_by_email($data);
}
echo "<h1>Invite Users</h1>";
?>
<form method='post' action='' name="vlcr_invusers">
<table class="wp-list-table widefat striped">
<tr>
<th>#</th>
<th>Name</th>
<th>Email</th>
<th>Role</th>
</tr>
<?php foreach($users as $user){ ?>
<tr>
<td>
<input type='checkbox' name='email[]' value='<?php echo $user->data->user_email;?>' />
</td>
<td>
<?php echo $user->data->user_nicename;?>
</td>
<td>
<?php echo $user->data->user_email;?>
</td>
<td>
<?php echo $user->roles[0];?>
</td>
</tr>
<?php } ?>
<tr>
<td colspan="2">
<input type="hidden" name="id" value="<?php echo $_REQUEST['id'];?>">
<input id="save" type="submit" class="button button-primary" value="Save Changes" name="inviteuser"></td></tr>
</table>
</form>
]]>
Hello,
When i’m trying to active Virtual Classroom -BrainCert, showing below error message.
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 /home/rbyd1sf95pal/public_html/wp-content/plugins/html5-virtual-classroom/vlcr_setup.php on line 949 and exactly 2 expected in /home/rbyd1sf95pal/public_html/wp-includes/wp-db.php:1229 Stack trace: #0 /home/rbyd1sf95pal/public_html/wp-content/plugins/html5-virtual-classroom/vlcr_setup.php(949): wpdb->prepare(‘CREATE TABLE IF…’) #1 /home/rbyd1sf95pal/public_html/wp-includes/class-wp-hook.php(286): vlcr_install(”) #2 /home/rbyd1sf95pal/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #3 /home/rbyd1sf95pal/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /home/rbyd1sf95pal/public_html/wp-admin/plugins.php(174): do_action(‘activate_html5-…’) #5 {main} thrown in /home/rbyd1sf95pal/public_html/wp-includes/wp-db.php on line 1229
Please check and help me.
Thanks,
Kawser Hamid
Hello, I am intending to use your plugin , but it has major conflicts with the latest wordpress version, I wonder if there is any intention to update your product in the near future?
]]>