Skip to content

Commit 8185346

Browse files
author
Aleksandr
committed
Merge remote-tracking branch 'origin/main'
2 parents 3ecfe31 + da086a0 commit 8185346

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

README.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ developers and businesses looking for a reliable and GDPR-compliant form managem
1212
- **Robust Admin Panel**: Manage your forms with ease using our user-friendly admin panel, designed for efficient and intuitive form management.
1313
- **Cost-Effective**: Designed to run smoothly on inexpensive hosting or free cloud services, reducing your operational costs.
1414
- **GDPR Compliant**: We prioritize your data privacy. PHPForm ensures that all your data remains yours, complying fully with GDPR regulations.
15-
- **Open Source**: Dive into the code, customize, and contribute! Our community-driven approach means PHPForm is continually evolving.
15+
- **Browser Push and Email notifications**: Get notified when a new form submission is received.
16+
- **reCaptcha Protection**: Protect your forms from spam and abuse with Google reCaptcha.
17+
- **Token-based Protection**: Ideal protection for mobile and desktop apps.
1618

1719
# Requirements
1820
### PHP Version
@@ -108,6 +110,20 @@ php bin/console doctrine:migrations:diff
108110
php bin/console doctrine:migrations:migrate
109111
```
110112

113+
## Troubleshooting
114+
#### Vendor folder is missing
115+
If you see an error that the vendor folder is missing, you need to install the dependencies.
116+
```
117+
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
118+
```
119+
The main problem usually when you run composer install from the root user.
120+
If you still want to run composer install from the root user, you can use the following command:
121+
```bash
122+
COMPOSER_ALLOW_SUPERUSER=1 composer install
123+
```
124+
125+
126+
111127
## Deploy instructions
112128
- [Installing PHPForm on DigitalOcean Apps](https://medium.com/@ashelestov/installing-flexform-on-digitalocean-apps-b3e5b1ba868a)
113129

src/Admin/Resources/templates/forms/index.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
</a>
6868
{% endif %}
6969
{% if app.user.isSuperUser %}
70-
{% if (form.recaptchaToken|length == 0) %}
71-
<a class="tag is-danger is-light ml-1" title="Not protected!" href="{{ path('admin_forms_edit', { id: form.id }) }}">
70+
{% if (form.recaptchaToken|length == 0 and form.secret|length == 0) %}
71+
<a class="tag is-danger is-light ml-1" title="Please use token or reCaptcha protection" href="{{ path('admin_forms_token', { id: form.id }) }}">
7272
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" style="width: 16px; height: 16px; fill: hsl(348, 100%, 61%);">
7373
<path d="M21.171,15.398l-5.912-9.854C14.483,4.251,13.296,3.511,12,3.511s-2.483,0.74-3.259,2.031l-5.912,9.856 c-0.786,1.309-0.872,2.705-0.235,3.83C3.23,20.354,4.472,21,6,21h12c1.528,0,2.77-0.646,3.406-1.771 C22.043,18.104,21.957,16.708,21.171,15.398z M12,17.549c-0.854,0-1.55-0.695-1.55-1.549c0-0.855,0.695-1.551,1.55-1.551 s1.55,0.696,1.55,1.551C13.55,16.854,12.854,17.549,12,17.549z M13.633,10.125c-0.011,0.031-1.401,3.468-1.401,3.468 c-0.038,0.094-0.13,0.156-0.231,0.156s-0.193-0.062-0.231-0.156l-1.391-3.438C10.289,9.922,10.25,9.712,10.25,9.5 c0-0.965,0.785-1.75,1.75-1.75s1.75,0.785,1.75,1.75C13.75,9.712,13.711,9.922,13.633,10.125z"/>
7474
</svg>

0 commit comments

Comments
 (0)