• I have been using the File Upload Extension for several years. Recently, when I tried to upgrade the PHP version for my site from 7.4 to 8.0, I received the message “A critical error has occurred on this website” with no other explanation. After some searching on the issue, I enabled the WP_Debug environment. The results of this action caused the debug.log file to be filled with MANY lines all similar to the following:

    [06-Sep-2022 11:26:21 UTC] PHP Warning:  Use of undefined constant SMART_FORMS_ATTAHCMENTS_PLUGIN_NAME - assumed 'SMART_FORMS_ATTAHCMENTS_PLUGIN_NAME' (this will throw an Error in a future version of PHP) in /var/www/wp-content/plugins/smart-forms-attachments/smart-forms-attachments-config.php on line 6
    [06-Sep-2022 11:26:22 UTC] PHP Warning:  Use of undefined constant SMART_FORMS_ATTAHCMENTS_PLUGIN_NAME - assumed 'SMART_FORMS_ATTAHCMENTS_PLUGIN_NAME' (this will throw an Error in a future version of PHP) in /var/www/wp-content/plugins/smart-forms-attachments/smart-forms-attachments-config.php on line 6

    It appears that _ATTAHCMENTS_ is a mis-spelling? Should it be _ATTACHMENTS_? or is there some other problem? Do you have a version that addresses this issue?

    Thanks for your help! Great plugins that I have used for many years!

    Roger

    The page I need help with: [log in to see the link]

  • The topic ‘File upload extension causes “A critical error has occurred” with PHP 8.0’ is closed to new replies.