• Resolved Jan

    (@krugmedien)


    Hi,

    there is a bug in your plugin, when using the file upload field.

    PHP Fatal error: Uncaught TypeError: basename(): Argument #1 ($path) must be of type string, array given in ../wp-content/plugins/generate-pdf-using-contact-form-7/inc/front/class.cf7-pdf-generation.front.action.php:263

    PHP Fatal error: Uncaught TypeError: pathinfo(): Argument #1 ($path) must be of type string, array given in ../wp-content/plugins/generate-pdf-using-contact-form-7/inc/front/class.cf7-pdf-generation.front.action.php:313

    Solution in both cases:

    Change $path to $path[0].

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Fatal error with file uploads | Argument #1 ($path) must be of type string’ is closed to new replies.