Project

General

Profile

Actions

Bug #78973

closed

PHP 7 is too fast for TYPO3

Added by Thomas Seitz almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-12-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I have a super fast TYPO3 7.6 setup running with PHP 7.0.
Unfortunately the running system is too fast.

The LocalConfiguration contains my DB credentials for the production environment. Depending on the TYPO3_CONTEXT the DB credentials and some other settings were changed by the AdditionalConfiguration. At the point where my Extension runs the DB credentials from the AddtionalConfiguration are not fully loaded and I run into an error because my SQL queries were fired against the wrong database.

I think the problem only occurs with PHP 7, in a tested environment with PHP 5.6 all works fine...

Actions #1

Updated by Christian Kuhn almost 8 years ago

Sounds fishy. Bootstrap first loads LocalConfiguration, then loads AdditionalConfiguration. With your db settings in AdditionalConfiguration, there shouldn't be an issue "db call fired to wrong target" then.

Actions #2

Updated by Christian Kuhn almost 8 years ago

  • Status changed from New to Needs Feedback
Actions #3

Updated by Benni Mack almost 8 years ago

Are you using EXT:environment?

Actions #4

Updated by Thomas Seitz almost 8 years ago

No, i don't use EXT:environment.

In general I think it's a really small and simple setup. As extensions I only use the following:
- femanager
- fluidcontent
- fluidpages
- flux
- powermail
- realurl
- sourceopt
- vhs

In addition to them I have installed 2 own written extensions but they are only normal FE-extensions.

I already tested exactly the same project on another webserver with PHP 5.6 installed - all works fine!

If you need more informations about the server setup or anything else please give me some feedback.

Actions #5

Updated by Frans Saris almost 8 years ago

Are you sure your settings are loaded?

If you switch PHP version and/or server environment and the application doesn't work anymore the first thing I would check if there are no PHP errors etc.

Your error logging is set to E_ALL and the error log is empty?

Actions #6

Updated by Thomas Seitz almost 8 years ago

Yes, i am sure.
The install tool shows me the correct DB credentials. The normal TYPO3 page rendering seems to connects to the correct database but if i call the page via an AJAX HTTP Request (configured with pagetype which bootstraps an extension) the AdditionalConfiguration isn't loaded/used.
The PHP error log is empty, maybe I have a absolutely weird setup but I don't think so. Currently I solved the problem by changing the LocalConfiguration.php at the Deployment process. This isn't a nice solution but at the moment I have no other idea how to handle that.
BTW: The Install-Tool and the TYPO3 BE shows me the correct Application Context.

Actions #7

Updated by Tymoteusz Motylewski over 7 years ago

Hi Thomas,
Can you provide a minimal setup to reproduce the issue?
I did some tests but couldn't reproduce the issue you mention.
Without steps to reproduce we will not be able to fix the issue unfortunately.
Thanks

Actions #8

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again or have more information about how to reproduce it, then please reopen it or open a new ticket and add a relation to this ticket number.

Thank you!

Actions

Also available in: Atom PDF