How to add more rooms to the rooms list
-
I need to create 4 room types under 2 categories using the vikBooking plugin, but after creating the fourth room and I click save it doesn’t save. Instead it just redirects to an empty page without any error message. The name I gave to the fourth room is personalized (Exclusive Rooms). Please what can I do to fix this?
The page I need help with: [log in to see the link]
-
Thanks for your message. The situation described indicates a server error that truncates the execution of the process with an empty/blank page. In case of errors, the system should display them on screen and redirect to the back-end page “Rooms List”, but this is clearly not happening to you.
Of course there are no limits to the number of room types you can create, and if you were able to create three room types already, then there cannot be any reasons for which you shouldn’t be able to create a fourth room type.
The only stopper for creating a new room type is an empty room name, but in this case the system would redirect you to the “Rooms List” page and the error message “Please fill in all required fields” would be displayed. Also, even if the SQL query failed when adding the new room record to the database, an error message would be displayed with the same technique, and so your “empty page” must indicate a PHP Fatal Error either caused by a third-party plugin, or by an uncaught process that triggered an error.
What we suggest in these cases is to turn on the Debug Mode on your WordPress website to make sure all errors will be displayed by your server. Alternatively, you should be able to find the error in your server logs file. Once the server error message will be visible, you will know the exact plugin or process responsible of the error, if any errors occurred.
Alternatively, another possible reason for the “empty page” you are getting when saving the new room type is the amount of input fields. Basically, the more units you set for your room type, the higher the number of form input fields will be. In case the total number of input fields exceeds your server’s maximum “input vars” (max_input_vars) setting (PHP.INI), the form will be truncated upon submitting and no processes will actually start. This scenario could end up with an empty page with no request variables to be processed by VikBooking. This could be indeed another possible explanation to the issue you’re facing, and in this case we suggest keeping the form smaller just to isolate the possible causes of the empty page.
We hope this helps!
The VikWP Team
Hello, pls after creating the booking details with vikBooking and trying to make a booking reservation on my website, I keep getting this long error message. Pls what do I do to fix this?
Fatal error: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\mail() in /home/hasbapar/public_html/wp-includes/PHPMailer/PHPMailer.php:874 Stack trace: #0 /home/hasbapar/public_html/wp-includes/PHPMailer/PHPMailer.php(1961): PHPMailer\PHPMailer\PHPMailer->mailPassthru(‘seun.jefferey37…’, ‘Your reservatio…’, ‘–b1=_y7iQy4LgF…’, ‘Date: Tue, 2 Ja…’, NULL) #1 /home/hasbapar/public_html/wp-includes/PHPMailer/PHPMailer.php(1682): PHPMailer\PHPMailer\PHPMailer->mailSend(‘Date: Tue, 2 Ja…’, ‘–b1=_y7iQy4LgF…’) #2 /home/hasbapar/public_html/wp-includes/PHPMailer/PHPMailer.php(1518): PHPMailer\PHPMailer\PHPMailer->postSend() #3 /home/hasbapar/public_html/wp-includes/pluggable.php(546): PHPMailer\PHPMailer\PHPMailer->send() #4 /home/hasbapar/public_html/wp-content/plugins/vikbooking/libraries/adapter/mail/mail.php(195): wp_mail(Array, ‘Your reservatio…’, ‘<html>\n<head><m…’, Array, Array) #5 /home/hasbapar/public_html/wp-content/plugins/vikbooking/admin/helpers/src/mail/service/phpmailer.php(83): JMail->Send() #6 /home/hasbapar/public_html/wp-content/plugins/vikbooking/admin/helpers/src/platform/org/wordpress/mailer.php(37): VBOMailServicePhpmailer->send(Object(VBOMailWrapper)) #7 /home/hasbapar/public_html/wp-content/plugins/vikbooking/site/helpers/lib.vikbooking.php(5949): VBOPlatformOrgWordpressMailer->send(Object(VBOMailWrapper)) #8 /home/hasbapar/public_html/wp-content/plugins/vikbooking/site/controller.php(1127): VikBooking::sendBookingEmail(7, Array) #9 /home/hasbapar/public_html/wp-content/plugins/vikbooking/libraries/adapter/mvc/controller.php(337): VikBookingController->saveorder() #10 /home/hasbapar/public_html/wp-content/plugins/vikbooking/libraries/system/body.php(55): JController->execute(‘saveorder’) #11 /home/hasbapar/public_html/wp-content/plugins/vikbooking/vikbooking.php(202): VikBookingBody::process() #12 /home/hasbapar/public_html/wp-includes/class-wp-hook.php(324): {closure}(”) #13 /home/hasbapar/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #14 /home/hasbapar/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /home/hasbapar/public_html/wp-settings.php(643): do_action(‘init’) #16 /home/hasbapar/public_html/wp-config.php(101): require_once(‘/home/hasbapar/…’) #17 /home/hasbapar/public_html/wp-load.php(50): require_once(‘/home/hasbapar/…’) #18 /home/hasbapar/public_html/wp-blog-header.php(13): require_once(‘/home/hasbapar/…’) #19 /home/hasbapar/public_html/index.php(17): require(‘/home/hasbapar/…’) #20 {main} thrown in /home/hasbapar/public_html/wp-includes/PHPMailer/PHPMailer.php on line 874
There has been a critical error on this website.
Hello,
The error is occurring on a core file of WordPress. You must have a conflict with PHP namespacing, because PHPMailer is a native library of WordPress, and it must exist under that namespace.
It may be possible that some third-party plugins, not VikBooking, are causing conflicts with the default namespace configured by WordPress and by the PHPMailer library. You should try to unpublish some third-party plugins to see if the issue gets fixed. This should not be an issue related to your PHP Version, but please make sure it is compatible with your WordPress version, because as the server error message says, the issue is on a WordPress core file for a native library.
I’ve uninstalled the third-party plugins but I’m still getting same error message
We are sorry to hear that, but that file exists on your WordPress installation, and unless it’s corrupted, you should not be facing such issues with a WordPress core function.
You can try to configure an alternative email sending function like through an SMTP server, if the default MTA used by WordPress (PHP Mail) is failing through PHPMailer.
We’ve just looked up that PHP error message, and it looks like there are other similar topics on this forum, but for sure that’s not something you can fix through the settings of VikBooking, because our plugin relies on the WordPress native functions for sending email messages. This is a WordPress guideline for any official plugin, and so with an issue on a core file, this is the most we can suggest.
Hello,
I need the terms and conditions listed in vikbooking during setup become visible to users in the front end when making reservations on the website. How do i go about it?
Hello,
With the free version of the plugin the Terms of Service can be defined for the default custom field displayed on the last step of the booking process (booking confirmation). By clicking that label, the system will display the Terms and Conditions.
Instead, with the commercial version of the plugin you can optionally link a WordPress page/post ID to the apposite custom field of type “checkbox” to let the guests accept the ToS. By clicking the field label, the system will open up the linked page/post ID.
Moreover, the pre check-in function available with the commercial version on the front-end section of your website will display the global configuration text for the terms and conditions. This was just to say that the booking confirmation page can display a different text than the pre check-in page.
- The topic ‘How to add more rooms to the rooms list’ is closed to new replies.