Deployment on render, php contact form

When I try to submit a PHP form from my web I get this error:

Warning : require(/var/www/html/vendor/composer/…/symfony/polyfill-ctype/bootstrap.php): failed to open stream: No such file or directory in /var/www/html/vendor/composer/autoload_real.php on line 41

Fatal error : require(): Failed opening required ‘/var/www/html/vendor/composer/…/symfony/polyfill-ctype/bootstrap.php’ (include_path=‘.:/usr/local/lib/php’) in /var/www/html/vendor/composer/autoload_real.php on line 41

The form works fine when testing on my local environment using XAMPP. I should receive an email to my gmail address.

It’s possible that the dependencies may not have been installed correctly on the server. If you are using Composer, you can execute the command composer install in the root directory of your project to install all necessary dependencies.

Try this and let me know if it worked.

Hi thanks for the reply. I found the mistake. The DOCKERFILE wasn’t set up proeprly.