You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Latest commit from develop branch on OSX 10.9 with Apache 2.2 and PHP 5.5 with OPCache:
Following condition: core_config_data with scope default, path web/unsecure/base_url and value http://mage2.dev/.
Webserver is configured with domain http://magento2.local/. Calling http://magento2.local/ via a browser results in:
( ! ) Fatal error: Call to a member function getFieldValue() on a non-object in magento2/app/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin.php on line 93
Fixing this gives me:
( ! ) Fatal error: Call to a member function getFieldValue() on a non-object in magento2/lib/internal/Magento/Framework/App/PageCache/Kernel.php on line 65
After short research: getHeaders method returns false if value is non-existent ...
Suggestion: Return an empty HeaderInterface which catches the calls in the two above locations alternatively check for false in the two above mentioned locations.
With this fix Magento2 tries to redirect to the domain stored in the core_config_data table.
Of course better would be a domain mismatch error instead of silently redirecting to the configured domain. People perhaps won't notice and start editing on their production store but thinking they are on their local development machine 😂.
The text was updated successfully, but these errors were encountered:
@SchumacherFM Thank you for reporting this issue. This has been fixed internally and should be available soon. Also, closing this in favor of #1212, which is a duplicate.
Latest commit from develop branch on OSX 10.9 with Apache 2.2 and PHP 5.5 with OPCache:
Following condition:
core_config_data
with scopedefault
, pathweb/unsecure/base_url
and valuehttp://mage2.dev/
.Webserver is configured with domain
http://magento2.local/
. Callinghttp://magento2.local/
via a browser results in:Fixing this gives me:
After short research: getHeaders method returns false if value is non-existent ...
Suggestion: Return an empty
HeaderInterface
which catches the calls in the two above locations alternatively check forfalse
in the two above mentioned locations.With this fix Magento2 tries to redirect to the domain stored in the
core_config_data
table.Of course better would be a domain mismatch error instead of silently redirecting to the configured domain. People perhaps won't notice and start editing on their production store but thinking they are on their local development machine 😂.
The text was updated successfully, but these errors were encountered: