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: