New answers tagged

0

Alright after days of troubleshooting I finally found the stupid issue that was related to open_basedir. However, i still don't know why that (Home Page) worked fine even when open_basedir in PHP was in affect. But only admin panel wasn't working. So I disabled open_basedir in php.ini and reinstalled Magento 2, and I no longer had this issue. $ vi /etc/php....


0

First Go to magento root directory then : vendor/magento/framework/view/element/tempalate/file/validator.php (dont exactly copy this url just follow this path) open this file using any editor and change this line $realPath = $this->fileDriver->getRealPath($path); //you can comment this out with this one $realPath = str_replace('\\','/',$this->...


0

just run this commands it will solve your isssue php bin/magento config:set web/secure/use_in_adminhtml 1


0

go to your magento root directory navigate to app/etc/di.xml search for symlink and replace it with Copy now just flush:cache and check


0

Try: php bin/magento setup:static-content:deploy -f


0

In development mode (the default after installing magento2) the app deploys assets to pub/static and also uses var/view_preprocessed to generate files. Try rm -rf pub/static/* && rm -rf var/view_preprocessed/* Personally, i make a user called magento and add it to the www-data group, with a php-fpm pool configured for that user. I then sudo su - ...


0

The ngx_http_referer_module would be a perfect candidate for your use case. Simply list allowed referring domains and block the rest: server { server_name example.com; valid_referers none blocked server_names example.org; if ($invalid_referer) { return 403; } } Note, that the Referer: header is not guaranteed to be present, ...


0

go check you /app/etc/env.php file backend[front_name => admin_kjdfk]. and use this, like base_url/admin_kjdfk


1

You can follow Meetanshi's link as it is tried, tested, and approved in local as well as three live websites too. Thank you.


2

for installation please follow the link, Magento 2: How to configure Nginx to use multiple websites with sub-folder you can also check the below link for your problem. Magento 2: How to configure Nginx to use multiple websites with sub-folder Thank You.


2

Can you follow below blog they have setup this. https://devdocs.magento.com/guides/v2.4/config-guide/multi-site/ms_nginx.html


0

Are you using NGINX? It seems there is misconfiguration with your server. Try to add: http { .... your config ... fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; } Restart NGINX and after, the error related to the header size should be solved. Source: https://stackoverflow.com/questions/23844761/upstream-sent-too-big-header-while-reading-response-...


0

proxy_buffer_size 256k; That size is huge and won't do you good. You can read the guide on how to tune it properly with one important note: fastcg_buffer_size and proxy_buffer_size are essentially the same thing, they are just applied to different upstream module of NGINX. proxy_buffer_size is the buffer for header of HTTP response of NGINX's ...


0

Ok I think I figured it out: I saw this on Github Magento 2 bug / issue forum: I am using example nginx configuration, and have tried switching to both developer and production modes. Request reaches static.php correctly which then returns a 404 header to nginx. The referenced files exist on disk and I have verified file permissions. I used the ...


1

It can be any reason first check following points and try below things. In app/etc/di.xml, find the virtualType name=”developerMaterialization” section and its item called name=”view_preprocessed”. Modify or delete it depending on your needs. To change the content of the item replace Symlink with Copy in Magento\Framework\App\View\Asset\...


0

Tried the above @TarekAdra but still seeing the same CORS errors.


Top 50 recent answers are included