{"id":10455136,"date":"2018-07-02T14:54:36","date_gmt":"2018-07-02T14:54:36","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-errors-132\/"},"modified":"2018-07-02T14:54:36","modified_gmt":"2018-07-02T14:54:36","slug":"php-errors-132","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-errors-132\/","title":{"rendered":"PHP ERRORS"},"content":{"rendered":"<p>HELLO, I need help here please.<\/p>\n<p>I have upgraded my account with you yesterday, hoping that my issues will be resolved and you will help me with them.<\/p>\n<p>Now, I have the following error message when trying to activate the plugin:<\/p>\n<p>Fatal error: Uncaught ArgumentCountError: Too few arguments to<\/p>\n<p>function wpdb::prepare(), 1 passed in<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-content\/plugins\/html5-virtual-classroom\/vlcr_setup.php<\/p>\n<p>on line 1349 and exactly 2 expected in<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-includes\/wp-db.php:1222<\/p>\n<p>Stack trace:<\/p>\n<p>#0<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-content\/plugins\/html5-virtual-classroom\/vlcr_setup.php(1349):<\/p>\n<p>wpdb-&gt;prepare(&#8216;CREATE TABLE IF&#8230;&#8217;)<\/p>\n<p>#1<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-includes\/class-wp-hook.php(286):<\/p>\n<p>vlcr_install(&#8221;)<\/p>\n<p>#2<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-includes\/class-wp-hook.php(310):<\/p>\n<p>WP_Hook-&gt;apply_filters(&#8221;, Array)<\/p>\n<p>#3<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-includes\/plugin.php(453):<\/p>\n<p>WP_Hook-&gt;do_action(Array)<\/p>\n<p>#4<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-admin\/plugins.php(174):<\/p>\n<p>do_action(&#8216;activate_html5-&#8230;&#8217;)<\/p>\n<p>#5 {main}<\/p>\n<p>thrown in \/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-includes\/wp-db.php on line 1222<\/p>\n<p>Fatal error: Uncaught ArgumentCountError: Too few arguments<\/p>\n<p>to function wpdb::prepare(), 1 passed in<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-content\/plugins\/html5-virtual-classroom\/vlcr_setup.php<\/p>\n<p>on line 1349 and exactly 2 expected in<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-includes\/wp-db.php:1222<\/p>\n<p>Stack trace:<\/p>\n<p>#0<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-content\/plugins\/html5-virtual-classroom\/vlcr_setup.php(1349):<\/p>\n<p>wpdb-&gt;prepare(&#8216;CREATE TABLE IF&#8230;&#8217;)<\/p>\n<p>#1<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-includes\/class-wp-hook.php(286):<\/p>\n<p>vlcr_install(&#8221;)<\/p>\n<p>#2<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-includes\/class-wp-hook.php(310):<\/p>\n<p>WP_Hook-&gt;apply_filters(&#8221;, Array)<\/p>\n<p>#3<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-includes\/plugin.php(453):<\/p>\n<p>WP_Hook-&gt;do_action(Array)<\/p>\n<p>#4<\/p>\n<p>\/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-admin\/plugins.php(174):<\/p>\n<p>do_action(&#8216;activate_html5-&#8230;&#8217;)<\/p>\n<p>#5 {main}<\/p>\n<p>thrown in \/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-includes\/wp-db.php on line 1222<\/p>\n<p>I solved the above errors by inserting a new &#8220;NULL&#8221; argument to each &#8220;prepare&#8221; statement in the file vlcr-setup.php.<br \/>\nIs that correct?<br \/>\n<strong>But I now have the following error:<\/strong><br \/>\nFatal error: syntax error, unexpected &#8216;wp_ajax_vlcr_get_selected_clas&#8217; (T_STRING), expecting &#8216;,&#8217; or &#8216;)&#8217; in \/home\/185043.cloudwaysapps.com\/ggztnqcaqn\/public_html\/wp-content\/plugins\/html5-virtual-classroom\/vlcr_setup.php on line 1467<\/p>\n<p>Apparently it is a php code issue and compatibility, I don&#8217;t know what is the reason behind these errors.<\/p>\n<p>I am really having hard times here, I need to use the plugin today and it doesn&#8217;t work.<\/p>\n<p>Note: I used php7.2 version, and switched back to php 7.0 and the same issue.<\/p>\n","protected":false},"template":"","class_list":["post-10455136","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10455136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10455136\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10455136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}