Wednesday, December 23, 2020

Five Star Restaurant Reservations Version 2.2.2 Issue

 Version 2.2.2 has the following issue:

[23-Dec-2020 15:48:53 UTC] PHP Warning:  call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home1/<your_username>/public_html/wp-content/plugins/restaurant-reservations/includes/template-functions.php on line 211


Issue was on the following line on wp-content/plugins/restaurant-reservations/includes/template-functions.php:

call_user_func( $field['callback'], $slug, $field['title'], $field['request_input'], $callback_args );

Temporary Fix:

Replace the plugin files with your old version (Version 2.1.19) in the following directory:

<your_website>\wp-content\plugins\restaurant-reservations


My guess on the issue:

They have added some new fields in the plugin. So, it needs to be fixed. I saw a new "Message" field.




Sunday, December 6, 2020

How to Check PHP Version of Your Website

 First add the following script if not already on your website folder:

#Use the following code to show all the information about PHP.

<?php

phpinfo(); // This would be used to display all of the PHP information available for the installation.

?> 

Once you save the phpinfo.php file, just go to your website homepage url/phpinfo.php:



Sunday, April 19, 2020

Fixed! WordPress database error Unknown character set: 'utf8_unicode_ci' for query

Issue

[19-Apr-2020 14:30:12 UTC] WordPress database error Unknown character set: 'utf8_unicode_ci' for query
CREATE TABLE wp_wc_admin_note_actions (
action_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
note_id BIGINT UNSIGNED NOT NULL,
name varchar(255) NOT NULL,
label varchar(255) NOT NULL,
query longtext NOT NULL,
status varchar(255) NOT NULL,
is_primary boolean DEFAULT 0 NOT NULL,
PRIMARY KEY (action_id),
KEY note_id (note_id)
) DEFAULT CHARACTER SET utf8_unicode_ci made by do_action_ref_array('generate_category_lookup_table'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\CategoryLookup->regenerate, Automattic\WooCommerce\Admin\Install::create_tables, dbDelta

Solution:

Few suggestions on the web were to change the database to following:
SET =utf8 COLLATE = utf8_unicode_ci 

Tuesday, March 31, 2020

VB Script to Simulate Keyboard Keys and Press CapsLock in Every 60 Seconds

Dim objResult
Set objShell = WScript.createObject(“WScript.shell”)

Do While True
    objResult = objShell.sendkeys(“{CAPSLOCK} {CAPSLOCK}”)
     Wscript.Sleep (6000)
Loop


Save as .vbs file.