• Resolved dcswordpress

    (@dcswordpress)


    Hello,

    We are testing our WordPress with php8 (8.0.12) and when submitting a form, an error happen and shows the message “An unexpected error occured with error code: 500 Internal Server Error. Internal Server Error. Please contact us for more information.”
    FYI : With php 7.3, there is no error and works correctly

    After checking the debug file, apparently there is an error on the file “class-applyonline.php” :
    PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /data1/www/wordpress-ch/wp-content/plugins/apply-online/includes/class-applyonline.php:764

    I checked the requirement of the plugin : PHP Version 5.2.4 or higher
    It’s weird that there is an error on the code.

    Could you please check if the plugin really works/compatible with php8 ?

    Thanks in advance
    Best regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Farhan Noor

    (@farhannoor)

    Hi there,
    Really sorry for the inconvenience caused. We have applied a patch to fix this problem. Please download & install development version of the plugin for your testing. Here is the link: https://downloads.www.ads-software.com/plugin/apply-online.zip

    Don’t forget to share your thoughts.
    Best
    Farhan

    Thread Starter dcswordpress

    (@dcswordpress)

    Dear Farhan,

    Thank you for the developement version of the plugin.
    I tested it and the submission of the forms works correctly without error.

    There is just a minor problem I saw, after submission of any forms, don’t know why there is no text displayed to inform the user that the form has been correctly submitted.
    Didn’t find anything in the settings to add the text to display after submission.

    Do you have any idea when this version of the plugin will be available and deployed ?

    Thank for your help
    Best regards

    Plugin Author Farhan Noor

    (@farhannoor)

    Hi there,
    The form submissions notice is always shown & it can be edited from the ApplyOnline/Settings/General section in WordPress admin panel. I hope it will resolve your concerns.

    Best
    Farhan

    Thread Starter dcswordpress

    (@dcswordpress)

    Hello Farhan,

    Thank you for your reply.

    Sorry my mistake, was looking on the wrong version of the plugin, I found the text area “Application success alert” in the settings.
    Even though there is text inside, it doesn’t appear after submission of the forms.
    What can be the problem ?
    Do you maybe have the same thing on your side ?

    PS. Is it better, I create a new topic ? as it concerns no more the initial “Fatal error” ?

    Thank for your help
    Best regards

    Plugin Author Farhan Noor

    (@farhannoor)

    Hi there,

    Please update your plugin to the latest version to fix this issues.

    Best

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error when submitting form with PHP 8’ is closed to new replies.