YunoHost-Apps / opensondage_ynh

OpenSondage for YunoHost
https://framadate.org/
GNU Affero General Public License v3.0
16 stars 14 forks source link

cant create anything #50

Closed Mrs-Feathers closed 2 years ago

Mrs-Feathers commented 5 years ago

creating a date poll has you fill in your name and email and such like normal, then second page goes blank... generic poll has you fill in part one but then says "You haven't filled in the first section of the poll." after filling the first part in a few times, i couldnt get past this error.

comepletely unusable.

autra commented 4 years ago

I confirm this error after a fresh install. Here are the relevant logs in /var/log/nginx/<domain>-error.log:

2019/10/25 16:18:08 [error] 25657#25657: *152845 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method stdClass::getChoices() in /var/www/opensondage/create_date_poll.php:74
Stack trace:
#0 {main}
  thrown in /var/www/opensondage/create_date_poll.php on line 74" while reading response header from upstream, client: 109.74.88.137, server: trancart.eu, request: "GET /sondage/create_date_poll.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-opensondage.sock:", host: "trancart.eu", referrer: "https://trancart.eu/sondage/create_poll.php?type=date"
bavier commented 4 years ago

A fresh install fails similarly for me with the "haven't filled in the first section of the poll."

Some lines from the /var/log/nginx/<domain>-error.log file:

2020/04/28 23:50:31 [error] 17205#17205: *17230 FastCGI sent in stderr: "PHP message: PHP Warning:  session_start(): open(/var/lib/php/sessions/sess_oujo9jd6qujapbcmqc2ls73m92, O_RDWR) failed: Permission denied (13) in /var/www/opensondage/app/inc/init.php on line 27
PHP message: PHP Notice:  Undefined variable: collect_users_mail in /var/www/opensondage/create_poll.php on line 99
PHP message: PHP Warning:  Unknown: open(/var/lib/php/sessions/sess_oujo9jd6qujapbcmqc2ls73m92, O_RDWR) failed: Permission denied (13) in Unknown on line 0
PHP message: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0" while reading response header from upstream, client: 97.116.189.195, server: <domain>, request: "POST /date/create_poll.php?type=date HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-opensondage.sock:", host: "<domain>", referrer: "https://<domain>/date/create_poll.php?type=date"
2020/04/28 23:50:31 [error] 17205#17205: *17230 FastCGI sent in stderr: "PHP message: PHP Warning:  session_start(): open(/var/lib/php/sessions/sess_oujo9jd6qujapbcmqc2ls73m92, O_RDWR) failed: Permission denied (13) in /var/www/opensondage/app/inc/init.php on line 27
PHP message: PHP Notice:  Undefined index: smtp_options in /var/www/opensondage/create_date_poll.php on line 34
PHP message: PHP Notice:  Undefined index: form in /var/www/opensondage/create_date_poll.php on line 47
PHP message: PHP Warning:  Creating default object from empty value in /var/www/opensondage/create_date_poll.php on line 51" while reading response header from upstream, client: 97.116.189.195, server: <domain>, request: "GET /date/create_date_poll.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-opensondage.sock:", host: "<domain>", referrer: "https://<domain>/date/create_date_poll.php"
2020/04/28 23:50:31 [error] 17205#17205: *17230 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: open(/var/lib/php/sessions/sess_oujo9jd6qujapbcmqc2ls73m92, O_RDWR) failed:" while reading upstream, client: 97.116.189.195, server: <domain>, request: "GET /date/create_date_poll.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-opensondage.sock:", host: "<domain>", referrer: "https://<domain>/date/create_date_poll.php"
2020/04/28 23:50:31 [error] 17205#17205: *17230 FastCGI sent in stderr: "Permission denied (13) in Unknown on line 0
PHP message: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0" while reading upstream, client: 97.116.189.195, server: <domain>, request: "GET /date/create_date_poll.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-opensondage.sock:", host: "<domain>", referrer: "https://<domain>/date/create_date_poll.php"
2020/04/28 23:50:40 [error] 17205#17205: *17230 FastCGI sent in stderr: "PHP message: PHP Warning:  session_start(): open(/var/lib/php/sessions/sess_oujo9jd6qujapbcmqc2ls73m92, O_RDWR) failed: Permission denied (13) in /var/www/opensondage/app/inc/init.php on line 27" while reading response header from upstream, client: 97.116.189.195, server: <domain>, request: "GET /date/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-opensondage.sock:", host: "<domain>", referrer: "https://<domain>/date/"
2020/04/28 23:50:40 [error] 17205#17205: *17230 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: open(/var/lib/php/sessions/sess_oujo9jd6qujapbcmqc2ls73m92, O_RDWR) failed: Permission denied (13) in Unknown on line 0
PHP message: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0" while reading upstream, client: 97.116.189.195, server: <domain>, request: "GET /date/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-opensondage.sock:", host: "<domain>", referrer: "https://<domain>/date/"
2020/04/28 23:50:41 [error] 17205#17205: *17230 FastCGI sent in stderr: "PHP message: PHP Warning:  session_start(): open(/var/lib/php/sessions/sess_oujo9jd6qujapbcmqc2ls73m92, O_RDWR) failed: Permission denied (13) in /var/www/opensondage/app/inc/init.php on line 27
PHP message: PHP Notice:  Undefined index: markdown_editor_by_default in /var/www/opensondage/create_poll.php on line 292
PHP message: PHP Notice:  Undefined property: Framadate\Form::$collect_users_mail in /var/www/opensondage/create_poll.php on line 301" while reading response header from upstream, client: 97.116.189.195, server: <domain>, request: "GET /date/create_poll.php?type=autre HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-opensondage.sock:", host: "<domain>", referrer: "https://<domain>/date/create_poll.php?type=autre"
2020/04/28 23:50:41 [error] 17205#17205: *17230 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: open(/var/lib/php/sessions/sess_oujo9jd6qujapbcmqc2ls73m92, O_RDWR) failed: Permission denied (13) in Unknown on line 0
PHP message: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0" while reading upstream, client: 97.116.189.195, server: <domain>, request: "GET /date/create_poll.php?type=autre HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-opensondage.sock:", host: "<domain>", referrer: "https://<domain>/date/create_poll.php?type=autre"
2020/04/28 23:50:55 [error] 17205#17205: *17230 FastCGI sent in stderr: "PHP message: PHP Warning:  session_start(): open(/var/lib/php/sessions/sess_oujo9jd6qujapbcmqc2ls73m92, O_RDWR) failed: Permission denied (13) in /var/www/opensondage/app/inc/init.php on line 27
PHP message: PHP Notice:  Undefined variable: collect_users_mail in /var/www/opensondage/create_poll.php on line 99
PHP message: PHP Warning:  Unknown: open(/var/lib/php/sessions/sess_oujo9jd6qujapbcmqc2ls73m92, O_RDWR) failed: Permission denied (13) in Unknown on line 0
PHP message: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0" while reading response header from upstream, client: 97.116.189.195, server: <domain>, request: "POST /date/create_poll.php?type=autre HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-opensondage.sock:", host: "<domain>", referrer: "https://<domain>/date/create_poll.php?type=autre"
bavier commented 4 years ago

Seems that a recent system update fixed this issue for me. PHP was updated to 7.3.

Mrs-Feathers commented 4 years ago

awesome! willing to give it another go. will report back my findings.