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

    (@e4jvikwp)

    Hello,

    Thanks for sharing the description of the PHP Exception you receive during the generation of the PDF files. In these cases we suggest uploading your own logo from the Configuration page of VikRentCar, either in PNG or JPG format.

    The error message indicates that the system was unable to read the size of the default logo-image of VikRentCar. This is probably related to your configuration of the PHP GD libraries. This is why we are suggesting to upload your own company logo from the Configuration page to run a test by using either a PNG file or a JPG file until the error is gone.

    We hope this helps!

    The VikWP Team

    Thread Starter Jeremy

    (@emporioar)

    Thank you for getting back to me.
    I’ve tried with a PNG or JPEG file and even tried with my logo, but I keep getting the same error.

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Okay, thanks for letting us know. The thing is that the error is generated by the PHP library TCPDF, which relies on the PHP GD libraries available on any PHP installation, but they could be built with different settings.

    Even the size of the image may impact on the result, as well as the default permissions to the uploaded files.

    You may have to report to your hosting company that you’re facing this PHP Exception with the TCPDF libraries of PHP to see if they have anything to suggest. VikRentCar uses the latest version of the TCPDF libraries, which are fully compatible with any PHP 7.x and 8.x versions. However, every PHP installation comes with its own settings and dependencies, sometimes changing the PHP version will apply a different building method to the GD libraries of PHP to manipulate images, and this is exactly what the TCPDF libraries use to get the size of your company logo.

    Unfortunately, this is a server-side issue that could not be fixed through VikRentCar, but uploading a custom logo is always recommended because you will not be using the default logo of our plugin inside your PDF documents.

    An alternative solution is to remove the company logo completely from the source code of the template files used by VikRentCar to generate the PDF documents, but then your documents will have no logos. Such template files are designed to support any kind of customization, and they can be modified from the Configuration page. You will find a special tag between curly brackets like {logo} that you can just remove from the HTML source code. However, this is not a real solution to the problem, you just get rid of the logo causing the error.

    Thread Starter Jeremy

    (@emporioar)

    Thank you for your prompt response.
    Before reaching out to you, I had already checked your support, but without success. I will contact my hosting provider, and if I find a solution, I’ll come back here to share it.

    Thread Starter Jeremy

    (@emporioar)

    Hello,

    I have identified the cause of the issue: it was due to the security rule “Block requests without User-Agent” that I had enabled. After disabling it, everything is working correctly.

    One last question: for the creation of a client space, should we use VIK rentcar Pro, please?

    Best regards,
    Jérémy

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hello Jérémy,

    Thanks for sharing the solution to the problem. TCPDF performs a self HTTP request to pull the image information, and we see why this was not working for you. It was not an issue with the PHP GD libraries, but rather a server/firewall restriction. We are glad to hear you were able to fix the issue.

    We are not sure to have understood your request about creating a “client space”, but the Pro version of our plugin is only needed to unlock the Pro features, which include several functions, among which the possibility of managing custom fields, payment methods, rental orders and rental costs.

    Feel free to get in touch with our team through our website should you need any information about the Pro version of the plugin.

    Thank you,
    The VikWP Team

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Issue with PDF Generation’ is closed to new replies.