New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TYPO3 11 Backend URL rewriting support and php7.4 default for TYPO3 #2704
Conversation
did you leave out the apache config change on purpose? |
Yes, Apache is handled with the default .htaccess delivered by the install tool see https://review.typo3.org/c/Packages/TYPO3.CMS/+/67083/22/typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/root-htaccess. We do not have a special configuration in DDEV here. But thanks for the hint! |
all right, better safe than sorry :) Thank you for the effort and all the work. I have no idea what I should do these days if there were no ddev. |
pkg/ddevapp/webserver_config_packr_assets/nginx-site-typo3.conf
Outdated
Show resolved
Hide resolved
c310136
to
8edbfb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please do a 'make packr2: and commit the results.
- Please explain more clearly how to test and verify that this does what's needed ior doesn't). Does it ail on the backend without this patch?
Changed the PR description above. Will check again once my PR for the base-dist was merged... |
3c85c2e
to
d3455fb
Compare
Tested again now with the latest (green) build and everything works fine and as expected. Updated also the testing instructions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this without the patch and got the failure logging into the backend.
I tested with the patch and it logs in fine.
I tested a ddev config
from scratch, and when typo3 project type is detected or specified, it uses php7.4 by default.
Seems good to go.
I note in passing that I'm unable to log into the backend using http, and no message is given, it just keeps coming back to the login page.
For the record: the referenced documentation has been moved to: https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/11.0/Breaking-93048-BackendURLRewrites.html#migration |
* upstream/master: Replace TYPO3 Backend folder nginx redirect in favor of a rewrite (ddev#2709) Add TYPO3 11 Backend URL rewriting support and php7.4 default for TYPO3 (ddev#2704) Fix syntax errors in xdebug custom command (ddev#2694) Use XDEBUG_MODE to disable xdebug in Dockerfile, not disable_xdebug (ddev#2693) [docs] Clarify that ddev xdebug should be executed in project directory (ddev#2692) [skip ci][ci skip] Bump upstream php packages to get xdebug 3.0.1 (ddev#2691), fixes ddev#2689
The Problem/Issue/Bug:
With the patch 67083 TYPO3 introduces URL rewriting for the Backend and therefor the Nginx configuration needs to be adapted like explained for Apache see https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/master/Breaking-93048-BackendURLRewrites.html#migration. Currently after the login to the backend this error occurs:
The page did not exist or was inaccessible. Reason: The requested page does not exist
Also minimal support for PHP was raised to 7.4 which must also be addressed.
How this PR Solves The Problem:
This change adds an additional configuration for Nginx and the default PHP version for the project type typo3 was changed to 7.4.
Manual Testing Instructions:
Without this change the backend will fail after login with this error:
The page did not exist or was inaccessible. Reason: The requested page does not exist
Testing instructions:
If no error is shown the test is successful.
This change was tested with TYPO3 11 (master), 10.4 and 9.5 and works fine so far.
Automated Testing Overview:
Related Issue Link(s):
Release/Deployment notes: