• Resolved lori9

    (@lori9)


    I’m having trouble uploading image to my website with the vikrentcar plugin. I’m using version 1.2.3 for vikrentcar, php 7.4 and wordpress version 5.9.3. When I try to add a new image or change an image under carlist, the page loads then sends me to a blank page and the image is not added. I turned on debugging and see no error message just a blank page. The URL for this blank page is https://blessingscarrental.com/wp-admin/admin.php.

    I think this is a bug in your plugin

    I’m using the free version for the plugin

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    Thanks for your message as well as for the precise description of the problem.

    This is not a bug with our plugin, it is rather a requirement for pretty much any image-upload function due to the fact that Vik Rent Car generates a thumbnail for each photo uploaded.

    In order for the image-upload functions to work properly, your server must have the PHP GD libraries enabled. Any PHP installation comes with a pre-installed bundle for the GD libraries, necessary for most image manipulation functions, but sometimes these can be disabled.

    We may remove this requirement in the future by checking if the support for the GD libraries is available on the server, but since these libraries are always available, all it takes is to actually enable them by using your server control panel or by simply contacting your hosting company. If your server had the PHP GD libraries enabled, the image upload functions would work properly, and no blank pages would be ever displayed.

    Moreover, if you were to enable the WordPress Debug mode, then the full server error message and description would be displayed. The message you would see would be about a “missing function” related to image manipulation, part of the GD libraries in PHP. Your hosting company should be able to enable all GD libraries.

    The VikWP Team

    Thread Starter lori9

    (@lori9)

    I checked and the GD library is enabled, I did turn on debugging and I’m seeing no error message. Just a blank page.

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    A blank page must indicate a Fatal Error. The chances that a third party plugin is truncating the execution of the page with an “exit” command are really a few.

    In case nothing is displayed on screen, you should probably check if anything has been logged on file by WordPress or by your web-server through your Control Panel. You need to be able to locate the exact error message and the file involved to understand what’s breaking your page.

    Sometimes the error reporting is shut down at server level, and so forcing the display of the errors at application level may not work. Also, if you have access to a server control panel, please try to change PHP version to see if anything changes. Most PHP versions differ with the bundles/compiling-mode they ship with, and so it may also be possible that with another PHP version everything works fine.

    Try to switch between PHP 7.4, 7.6 and 8.1 to see if it makes any difference, but the best thing to do is to obtain the full server error message. Even if the GD libraries are enabled in your PHP version, this could have been compiled in a “simplified” way, meaning that the libraries are not complete. This is not something you can resolve at application level, and that’s why if you get access to the full error message you can help your hosting company understand the limitation immediately.

    Thread Starter lori9

    (@lori9)

    I’ve checked with the host and GD is enabled. I’m thinking there is some bug in the plugin

    I saw this error in the log file:

    [10-May-2022 20:46:11 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gd2.dll’ (tried: /opt/cpanel/ea-php74/root/usr/lib64/php/modules/php_gd2.dll (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/php_gd2.dll: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php74/root/usr/lib64/php/modules/php_gd2.dll.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/php_gd2.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hello,

    Thanks for sharing the warning message of PHP. That’s not a bug with our plugin, and believe us there are no bugs there related to the GD libraries, because all our plugin does is to call some native PHP functions.

    Your hosting company should be informed of that warning message because your server is unable to load the GD libraries, and that explains why you’re having problems.

    Also, the fact that your PHP information shows that the GD libraries are enabled is not that relevant, as it all depends on how your PHP version was compiled upon the installation. In your case the GD libraries were not included in the build, or they did not compile correctly, because in fact you have errors while trying to load them.

    I see you are using PHP 7.4, so please try to switch to PHP 7.6 if that’s available, because maybe that version was compiled correctly with the GD support enabled. In any case, this is something related to your server and so your hosting company should provide help, as you clearly have problems with the GD libraries as the warning message suggests.

    Thread Starter lori9

    (@lori9)

    Thanks again in helping me resolve the issue before with the vikrentcar plugin, in turned out it was the size of the image being uploaded but now I have a different problem.

    When try to book a vehicle at night, say it’s 7pm I’m booking the vehicle for a pickup time of 10pm and a drop off time of 9am the subsequent morning. I get an error saying that time had already past.

    What could be causing this issue.

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    We are glad to hear the other problem is solved.

    Regarding the error message about the dates being in the past: the system allows same-day reservations (pick ups) only if the Configuration setting “Rentals for today at any time” is enabled. You can find it in the first tab of the Configuration page in Vik Rent Car.

    This way, rentals for today will be allowed until 23:59:59 (11:59:59 PM), no matter what’s the return (drop off) date and time.

    After saving, please remember to test the new configuration settings with a new private/incognito session of your browser in order to avoid old cached settings in the PHP session to be applied.

    The VikWP Team

    Thread Starter lori9

    (@lori9)

    yes, “Rentals for today at any time” is enabled. but I set “Time Format” to “12 hour pm/am”. Could this be the cause? Remember I said it gives an error whenever I set the time in the mentioned time range

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    No, the time format is not going to affect the possibility of accepting reservations for today at any time. You are free to keep the 12 hour format if you prefer that format.

    You should probably check the WordPress General Settings to see what’s the current Timezone defined (page “Settings – General”, param “Timezone”). Also, make sure to select a city from the drop down menu, which represents a valid PHP Timezone identifier. Do not choose a “manual” Timezone like “UTC-5” as that would give you problems with DST (Daylight Saving Time).

    In short, we believe your local time was 7PM when you did the test, but maybe for the server it was already the day after, or a time after the pick up time you selected.
    In any case, if that configuration setting is enabled, you should definitely be allowed to choose a pick up time for today, even if this is after the current time, but within the current day. Instead, if that setting is off, pick up times should be only in the future, so after the current server time. That’s why we suggested to use a private/incognito session of your browser to avoid cached settings to be applied or to override the server Timezone depending on your WordPress profile settings. If you are not logged into any account in the front-end section, WordPress will apply the server timezone defined in the page “Settings – General”.

    Thread Starter lori9

    (@lori9)

    Ok, it look like it was the timezone. I have another thing I want the plugin to do or it might be able to do this task already, I’m not sure. I want reduce the cost per day to rent a vehicle by $500 if the renter goes over 7 days, can the plugin achieve this task or will there have to be some modification.

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    Yes of course, that’s something you can easily set up from the page Fares Table, where you can specify the exact rental cost for any duration of rent and for any rate plan (Types of Price).
    That’s a Length-Of-Stay (LOS) pricing model, which is fully supported.

    Thread Starter lori9

    (@lori9)

    Hey, sorry I took so long but could explain fully how to do this?

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    You should take a look at the page “Pricing – Fares Table” in the official demo website of Vik Rent Car to see how for each rate plan (Type of Price) we have specified a cost for any duration of rent.
    The system allows you to enter the exact daily fee, hourly fee or the fee for the number of extra hours (i.e. 2 days and 3 hours can be charged for 2 days plus a fee for 3 extra hours, or for 3 days of rent according to your settings).

    The pricing framework of Vik Rent Car supports any existing pricing model, and it’s well documented also on our website. For this reason, we invite you to take a look at an existing configuration of the plugin on our official demo website to see how you can set up your installation.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘VikRentCar: Vehicle upload problem’ is closed to new replies.