Comments (9)
I get a 404:
![Screenshot 2023-08-20 alle 23 46 16](https://private-user-images.githubusercontent.com/909743/261879862-62914a45-0cf2-46b8-9185-21b384eefafd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4OTI1ODksIm5iZiI6MTcxODg5MjI4OSwicGF0aCI6Ii85MDk3NDMvMjYxODc5ODYyLTYyOTE0YTQ1LTBjZjItNDZiOC05MTg1LTIxYjM4NGVlZmFmZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyMFQxNDA0NDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZmNmZmZkNTEzYTM2MjliZjIxNTI1OGYxMTYwZGVhNDBmY2YxZGIwMTFhMTg1MTAyNDJmYWQ4NDQ2OTBkN2I5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ccG3TgiyJyGQ2wn8_R3RnUCD16t_4Py7gRW4rmWBZG8)
do you need developer mode or something else in order to trigger the error?
from magento-lts.
I cannot replicate, I get a 404 as well on the OM 20.1.0 PHP8.2.
from magento-lts.
do you need developer mode or something else in order to trigger the error?
My OpenMage was installed manually (extracting openmage-v20.1.0.zip file). Class Zend_Controller_Request_Http
is defined only in vendor/shardj/zf1-future/library/Zend/Controller/Request/Http.php
but 'vendor' is not mentioned in included paths in get.php (lines 32-35). So my question is: How can manually installed OpenMage load the Zend_Controller_Request_Http class in this file (get.php) if 'vendor' is not include path? I'm missing this vendor autoloader patch (from Mage.php) also here in get.php:
/** AUTOLOADER PATCH **/
$autoloaderPath = getenv('COMPOSER_VENDOR_PATH');
if (!$autoloaderPath) {
$autoloaderPath = dirname(BP) . DS . 'vendor';
if (!is_dir($autoloaderPath)) {
$autoloaderPath = BP . DS . 'vendor';
}
}
require $autoloaderPath . DS . 'autoload.php';
/** AUTOLOADER PATCH **/
from magento-lts.
This issue can be replicated if the .htaccess inside the media/ directory is properly parsed. (this actually redirects all request through get.php)
Some apache configurations skip this (and use the /.htaccess instead of /media/.htaccess for files in subdirectories). Try accessing
http://openmage.test/media/missingfile.jpg
This should result in error 500 instead of 404 due to the missing class (due to missing autoloader patch in get.php)
from magento-lts.
@ferdiusa - that is a good observation. I tested this reported before and I got error 500, without anything in the webserver logs. Some testers reported above getting 404 error.
from magento-lts.
Error 500 can be fixed by adding
<IfModule mod_php8.c>
php_flag engine 0
</IfModule>
in media/.htaccess
. This fix actually redirects all request through get.php, but there is still problem with missing class Zend_Controller_Request_Http
.
from magento-lts.
I hope #3476 fix this problem ;-)
from magento-lts.
I hope #3476 fix this problem ;-)
Yes, this PR fixes the problem.
from magento-lts.
@S0FTWEX could you leave a review with the green button on the top-left https://github.com/OpenMage/magento-lts/pull/3476/files? thanxxxx
from magento-lts.
Related Issues (20)
- Upload gif image on backend system Configuration Issue HOT 2
- support smtp servers out of the box HOT 12
- In backend, add "click to copy text" feature HOT 1
- SOAP fault due to "SOAP-ERROR: Parsing Schema: can't import schema from 'http://schemas.xmlsoap.org/soap/encoding/' " HOT 25
- SOAP API: SOAP-ERROR: Parsing Schema: unexpected <complextype> in schema HOT 4
- Shopping Cart Price rule - Free Shipping weight condition
- feature request: Event for configuration actions (save/delete) on path HOT 2
- Admin filters and sorting not working after upgrader to v20.6.0 and v20.7.0 HOT 1
- Edit attributes broken? HOT 4
- Black background of PNG images with transparent background in the Wysiwyg editor HOT 11
- Skipped Zend_Validate_Barcode_Intelligentmail from autoloading HOT 1
- Improving the file name generation logic for JS and CSS files HOT 7
- After upgrade to v20.7.0 I got some alert on Admin Login HOT 16
- Fatal error after upgrading from 20.1.1 to 20.8 when clearing cache from Admin Page HOT 2
- Error when saving product with image without description HOT 6
- Problem with Configurable Swatches after PR #3686 HOT 1
- Unable to Override GroupController in OpenMage HOT 2
- N98-magerun tests fails since #2993
- Current category cache issue in navigation block
- UPS REST _parseRestResponse doesn't return rates when only one service is available for a destination
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento-lts.