From f9141a772221b928bcf50774f6b3b9eecabd35ef Mon Sep 17 00:00:00 2001 From: "aleksandr.shelestov" Date: Wed, 21 Feb 2024 19:29:20 +0100 Subject: [PATCH 1/2] Troubleshooting section in README.md file --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 738dc11..56d024c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,9 @@ developers and businesses looking for a reliable and GDPR-compliant form managem - **Robust Admin Panel**: Manage your forms with ease using our user-friendly admin panel, designed for efficient and intuitive form management. - **Cost-Effective**: Designed to run smoothly on inexpensive hosting or free cloud services, reducing your operational costs. - **GDPR Compliant**: We prioritize your data privacy. PHPForm ensures that all your data remains yours, complying fully with GDPR regulations. -- **Open Source**: Dive into the code, customize, and contribute! Our community-driven approach means PHPForm is continually evolving. +- **Browser Push and Email notifications**: Get notified when a new form submission is received. +- **reCaptcha Protection**: Protect your forms from spam and abuse with Google reCaptcha. +- **Token-based Protection**: Ideal protection for mobile and desktop apps. # Requirements ### PHP Version @@ -108,6 +110,20 @@ php bin/console doctrine:migrations:diff php bin/console doctrine:migrations:migrate ``` +## Troubleshooting +#### Vendor folder is missing +If you see an error that the vendor folder is missing, you need to install the dependencies. +``` +Warning: require_once(/app/vendor/autoload_runtime.php): Failed to open stream: No such file or directory in /app/public/index.php on line 5 +``` +The main problem usually when you run composer install from the root user. +If you still want to run composer install from the root user, you can use the following command: +```bash +COMPOSER_ALLOW_SUPERUSER=1 composer install +``` + + + ## Deploy instructions - [Installing PHPForm on DigitalOcean Apps](https://medium.com/@ashelestov/installing-flexform-on-digitalocean-apps-b3e5b1ba868a) From 534fa5a50e2d4c5bb0f7a7d1c42587db0447b20b Mon Sep 17 00:00:00 2001 From: sdkfuyr Date: Thu, 22 Feb 2024 10:08:56 +0100 Subject: [PATCH 2/2] Check both reCaptcha and token/secret for showing warning about missing protection --- src/Admin/Resources/templates/forms/index.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Admin/Resources/templates/forms/index.html.twig b/src/Admin/Resources/templates/forms/index.html.twig index 7ff5ba0..18d8a25 100644 --- a/src/Admin/Resources/templates/forms/index.html.twig +++ b/src/Admin/Resources/templates/forms/index.html.twig @@ -67,8 +67,8 @@ {% endif %} {% if app.user.isSuperUser %} - {% if (form.recaptchaToken|length == 0) %} - + {% if (form.recaptchaToken|length == 0 and form.secret|length == 0) %} +