Keywords: WordPress + NGINX + SSL - AWS - Technical issue - Other
bnsupport ID: 765cf1ab-aca6-0f8e-f55e-8b282c1a8258
Hello, I am using bookly wp plugin on Nginx since a very long time but since few days I am getting Internal Server Error (500) every time I try to make a new meeting. This is our website: www.smcconsulting.be
I have opened a support case with the plugin editor and they told me that they suspect that the issue is coming from the tmp folder... This is what they said:
"I've checked the issue you have and I see that Bookly form throws a Session error message on the second step which means that it has failed to store the data into the PHP session.
Usually, this means that you are having PHP sessions misconfigured on your server environment and you need to contact your hosting provider support so they assist you with doing that. Usually, it is fixed by defining session.savepath variable in the php.ini file"_
After checking the folder, I see that it looks to be writable.
I have checked the PHP logs and I can see this error:
[11-Nov-2020 19:38:58] WARNING: [pool www] server reached maxchildren setting (5), consider raising it._
I am not sure if this error is related to the problem I am getting on Bookly.
When looking into the Nginx error logs, i see this:
> 2020/11/11 17:06:23 [error] 18447#0: *300 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to a member function withSubServices() on bool in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/bookly-responsive-appointment-booking-tool/lib/slots/Finder.php:411
> Stack trace:
> #0 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/bookly-responsive-appointment-booking-tool/lib/slots/Finder.php(106): Bookly\Lib\Slots\Finder->_prepareStaffData()
> #1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/bookly-responsive-appointment-booking-tool/frontend/modules/booking/Ajax.php(208): Bookly\Lib\Slots\Finder->prepare()
> #2 [internal function]: Bookly\Frontend\Modules\Booking\Ajax::renderTime()
> #3 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/bookly-responsive-appointment-booking-tool/lib/base/Ajax.php(52): call_user_func(Array)
> #4 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/bookly-responsive-appointment-booking-tool/lib/base/Ajax.php(31): Bookly\Lib\Base\Ajax::forward('renderTime', true, true)
> #5 /opt/bitnami/apps/wordpress/htdocs" while reading response header from upstream, client: 220.127.116.11, server: www.smcconsulting.be, request: "GET /wp-admin/admin-ajax.php?action=bookly_render_time&csrf_token=d0937cfb09&form_id=5fac0bf73ad39 HTTP/1.1", upstream: "fastcgi://unix:/opt/bitnami/php/var/run/www.sock:", host: "www.smcconsulting.be", referrer: "https://www.smcconsulting.be/freshworks/"
1- How can we confirm if the tmp folder is writable?
2- how to know if the php error "server reached max_children setting" is related to the above or not?