• Resolved mfreemann

    (@mfreemann)


    While testing I got this error;

    TypeError thrown
    key(): Argument #1 ($array) must be of type array, string given

    I get this error while adding booking ID16 and accepting the “terms of condition” and submitting the form. ID16 is added, but so that’s OK, but the error is not user friendly.

    Here my test data:

    ID,"Pickup Date","Drop Off Date",Items,"Pickup Location","Drop Off Location","Customer Info","Payment Method",Status,Total,"Total Paid"
    12,"24-10-2022 14:00","31-10-2022 12:00","x x x x",,,"Name: Marco Last Name: xxx  e-Mail: [email protected] Address: StreetName Zip Code: 1234AB City: LakeCity State: xxxx Company Name: sdg Notes: asldfkasfdlj",,Confirmed,"87,5","87,5"
    13,"01-11-2022 14:00","08-11-2022 12:00","x x x x",,,"Name: Marco Last Name: xxx  e-Mail: [email protected] Address: StreetName Zip Code: 1234AB City: LakeCity State: xxxx Company Name: sdg Notes: asldfkasfdlj",,Confirmed,"87,5","87,5"
    14,"27-10-2022 14:00","03-11-2022 12:00","x x x x",,,"Name: Marco Last Name: xxx  e-Mail: [email protected] Address: StreetName Zip Code: 1234AB City: LakeCity State: xxxx Company Name: sdg Notes: asldfkasfdlj",,Confirmed,"87,5","87,5"
    15,"24-10-2022 14:00","31-10-2022 12:00","x x x x",,,"Name: Marco Last Name: xxx  e-Mail: [email protected] Address: StreetName Zip Code: 1234AB City: LakeCity State: xxxx Company Name: sdg Notes: asldfkasfdlj",,Confirmed,"87,5","87,5"
    16,"31-10-2022 14:00","02-11-2022 12:00","x x x x",,,"Name: Marco Last Name: xxx  e-Mail: [email protected] Address: StreetName Zip Code: 1234AB City: LakeCity State: xxxx Company Name: sdg Notes: asldfkasfdlj",,Confirmed,"25,0","25,0"
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hello,

    Thanks for your message. An error of type TypeError is typical of PHP 8, and so as of today, you must be using either PHP 8.0 or 8.1. We are quite sure the error occurs while trying to generate the PDF document with the rental agreement, which is a process that takes place after saving the reservation to the database.

    Your server error message does not contain any details, and without a reference to the file that triggered the error, we are unable to tell you what it is. However, since you also said that the booking gets saved correctly, we are pretty sure the library responsible of that error is TCPDF for PHP. We did update it to comply with PHP 8, but maybe some functions can still generate errors.

    Using PHP 8 is totally safe with our plugins, and if we needed to update TCPDF, then we would definitely do it. However, without the full error message we are unable to identify the source or the line of the issue. Our suggestion in these cases is to drop us a message directly from our own website so that our programmers can get back to you quickly.

    Thank you,
    The VikWP Team

    Thread Starter mfreemann

    (@mfreemann)

    I forgot to mention 1 detail;
    The error only happened at saving the last booking, the other bookings didn’t give this error.

    I’m using PHP version 8.1.7

    Could you give me the url/page/form/e-mail where I can submit these problems on your site?

    • This reply was modified 2 years, 1 month ago by mfreemann.
    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    It may be possible that your company logo could not be found if you did not get the same error at the next attempt. In any case, that’s for sure an issue with the library for the generation of the PDF document.

    You can contact our programmers by using the contact form available on our website. We cannot post links of our site in this forum, but you can find us with the name “VikWP”. The link to the contact form will be at the bottom of the page (“Contact us”).

    Thank you,
    The VikWP Team

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘TypeError thrown key(): Argument #1 ($array) must be of type array, string given’ is closed to new replies.