[4.x]: Internal Server Error when creating new fields
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
What happened?
Description
When creating a new field, the browser hangs and finally returns an Internal Server Error. This is not a Craft error but a (MAMP) server error. Here's the error from my Apache log:
[Fri Mar 17 11:48:43.486687 2023] [fastcgi:error] [pid 40930] [client ::1:56351] FastCGI: comm with server "/Applications/MAMP/fcgi-bin/php8.0.24.fcgi" aborted: idle timeout (30 sec), referer: http://xxx/admin/settings/fields/new?groupId=3&site=default
[Fri Mar 17 11:48:43.495330 2023] [fastcgi:error] [pid 40930] [client ::1:56351] FastCGI: incomplete headers (0 bytes) received from server "/Applications/MAMP/fcgi-bin/php8.0.24.fcgi", referer: http://xxx/admin/settings/fields/new?groupId=3&site=default
Note that for PHP 8.0.24 I have a max_execution_time set to 120
It appears the field has been created when I reload the Fields page. I'm just not sure if everything has been correctly written out to the project config.
Steps to reproduce
- Create a new field and press save
Expected behavior
Should return successful
Actual behavior
Server responds with an Internal Server Error after approx 30 secs
Craft CMS version
Craft Pro 4.3.10
PHP version
8.0.24
Operating system and version
Darwin 19.6.0 (MacOS 10.15 running MAMP Pro 6.8)
Database type and version
MySQL 5.7.39
Image driver and version
Imagick 3.5.1 (ImageMagick 6.9.6-2)
Installed plugins and versions
Multi-site is enabled with one additional site.
Asset Rev | 7.0.0
Calendarize | 2.0.0
Control Panel Nav | 4.0.10
Cookies | 4.0.0
Enupal Snapshot | 2.0.1
Feed Me | 5.0.5
Formie | 2.0.24
Maps | v4.0.3
Redactor | 3.0.3
Redirect | 4.1.10
SEOmatic | 4.0.20
Social Feeds | 1.0.1
Super Table | 3.0.7
Wordsmith | 4.2.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the save action at /admin/settings/fields/new?groupId=3&site=default with the reported Craft CMS, PHP, MySQL, and MAMP versions, then inspect the Apache FastCGI errors. Done means creating a field returns successfully without the 30-second timeout and the field is correctly written to project configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, php
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100