Questions tagged [proxy]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
0 votes
2 answers
32 views

What is the meaning of below code (DI injection of proxy)

Can someone explain me what does this code does, when we need this. di.xml <type name="Magento\Wishlist\Helper\Data"> <arguments> <argument name="...
user avatar
0 votes
0 answers
19 views

Could you list all the Magento admin / backend URIs?

I would like to restrict public access to admin / backend URIs in Magento. Would you kindly help me list them all? So far, I have the following: /admin /rest /soap /graphql /magento_version any ...
user avatar
  • 101
0 votes
0 answers
1k views

M2 | ci6.googleusercontent.com gmail proxy server stopping images to load in email templates

I am having gmail proxy server issue for showing images in email templates. At the start of image URL which is http://localhost/pub/media/email/images/logo.png this is getting appended https://ci6....
user avatar
  • 1,521
1 vote
1 answer
405 views

Royal Mail Click and Drop will not Integrate through Firewall Reverse-Proxy

Our Magento 2 (Magento Commerce Inc. Magento ver. 2.3.4-p2). Was previosuly integrated with Royal Mail Click and Drop and our orders on Magento migrated automatically to Click and Drop. We have ...
user avatar
  • 360
0 votes
1 answer
1k views

Magento 2 on nginx with another nginx as a proxy

I have a VM running ngnix with magento 2 . internally , my vm is resolved by : marketplace.corp.mycloud.com From the internet, it is resolved with : marketplace.mycloud.com Http is working fine so ...
user avatar
  • 101
1 vote
2 answers
810 views

How to use Elasticsearch 6 with Apache, Redis and Varnish on Magento 2.3 Open Source?

I'm just learning Magento. I have Magento 2.3.3 open source set up on a Linux server with Apache, Redis & Varnish. Next I want to install Elasticsearch 6 ("ES") and I have confusion about some ...
user avatar
  • 230
2 votes
1 answer
295 views

Magento 2 proxy real time example

I am learning the Magento 2 proxy concept so that I followed the https://webkul.com/blog/magento2-proxy-design-pattern-code-generation/ blog and discovered the proxy concept. I am a bit clear about ...
user avatar
  • 1,588
0 votes
0 answers
109 views

Mass update doesnt work in Magento 2.3.2

I am using bulk action feature in admin, on catalog page when am trying to update attribute am getting below error Got error 'PHP message: PHP Fatal error: Uncaught Error: Cannot instantiate ...
user avatar
  • 630
1 vote
0 answers
821 views

How to resolve Circular Dependency when one Helper class is depends on other Helper Class

Having one module named Override\Search in which two helper classes are there. 1. Override\Search\Helper\Data.php 2. Override\Search\Helper\Util.php Both helper are depends on each other, thus ...
user avatar
  • 1,725
1 vote
0 answers
73 views

Magento 2 Proxy Classes best way Used vi constructer or Di.xml

I have read many docs regarding to proxy classes which is automatically generated by Magento 2 to stop the chain reaction of object instantiation. These docs definition told us that proxy classes ...
user avatar
  • 2,717
1 vote
0 answers
356 views

CloudFront like reverse proxy instead Varnish

I know that CloudFront is CDN, not reverse proxy, but if I understand correctly now is possible to use CloudFront to serve everything behind it. I found few links, and seems like it is possible. For ...
user avatar
2 votes
0 answers
151 views

Elasticsearch 6.6 with Magento 2.3 and Nginx, need a proxy?

I am installing Elasticsearch 6.6 on my system (Ubuntu 18.04 with Nginx 1.14) and to configure Elasticsearch and Nginx, I find in the official documentation the following section: Configure nginx and ...
user avatar
  • 465
1 vote
3 answers
834 views

Confused about using proxies

I kind of understand how the logic and the benefit of proxies in Magento 2 di. But can anybody tell me, how to use it?! Alan Storm use the generated proxy class, for example, I would call \Magento\...
user avatar
4 votes
3 answers
964 views

How to solve Magento 2.3 Sample Data Installation RuntimeException Error in Windows 7?

I try to install magento 2.3 in windows 7, i am getting error like, <span class="text-info">Starting Magento installation:</span><br><span class="text-info">File permissions ...
user avatar
  • 103
4 votes
0 answers
49 views

Can Magento 2 Proxies be used to handle non existing class

I am building an extension which is dependent on multiple third party payment gateways. So I have created a special service class which gives the respective payment gateway class object depending on ...
user avatar
  • 7,322
1 vote
1 answer
373 views

Apache SetEnfIf and fullpage cache: Start page shows the same store view for all URLs, once cached

We have a setup with a public facing NGINX reverse proxy that sets the head X-Magento-Store and the shop instance on an apache Vhost in apache I added SetEnv MAGE_RUN_TYPE "store" ...
user avatar
  • 14.6k
2 votes
0 answers
235 views

How do i control magento2 proxy setting?

I'm a Magento 2 beginner and not well English. I have installed and used Magento 2 for a test in non-connecting internet PC. Now, my Magento 2 need to connect to the proxy server when checkout is ...
user avatar
  • 21
1 vote
3 answers
139 views

Proxy objects and return types conflict

Magento is designed to use PHP 7, newest versions even 7.1. Actually one of the most killing feature - return types doesn't work well with Magento implementation of Proxy object. For example I create ...
user avatar
1 vote
1 answer
222 views

How does Magento determine the route / getting 404 behind proxy

I have the following constellation: NGINX in front of two apache vhosts One Vhost running Magento (port 8181) Proxy pass of https://example.de.testing.abc.de/en/shop/ -> http://127.0.0.1:8181 No ...
user avatar
  • 14.6k
0 votes
1 answer
277 views

Only index.php shows up through proxy pass

<Directory "/Users/pathto/Sites/"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> <VirtualHost *:80> ServerName developersite.dev ...
user avatar
0 votes
1 answer
92 views

DevBox with magento2 (2.1.6) doesn't reach the proxy in docker container

I installed the magento2 devbox behind a proxy. My problem is that on the web container the env are not set. So just to clarify I have in .env a filed http_proxy=ip (that works when I install the ...
user avatar
  • 141
0 votes
0 answers
439 views

Magento 2: Could not map class in code-migration Tool

When using the Magento Inc. provided code migration tool, there's a number of mapping files that need to be generated. One of those is a class dependency map. Per the README.md, you can generate ...
user avatar
  • 43.5k
4 votes
0 answers
132 views

Magento 2 Fedex Integration Issue with restricted proxy - "Shipping method unavailable"

I tried integrating the shipping method in my personal laptop and it is working there without any network configuration. But when I'm using different proxy on another PC, I can't get the shipping ...
user avatar
  • 385
1 vote
0 answers
29 views

Setting up proxy for constructor arguments vs. etc areas

Generally it is prefereable to set .xml configuration files only for areas that will use it. I want to set some proxy object for my classes__construct()` arguments. In case of models it can be not so ...
user avatar
2 votes
1 answer
127 views

Adding proxy for class hidden behind interface

If I want to add proxy for class Psr\Log\LoggerInterface (for example it is used only in catch block, which is not reached with every request) in my di.xml I should replace it with proxy like this: &...
user avatar
5 votes
1 answer
221 views

Applying proxy for factory class

Is there any disadvantage ior is it discouraged to use proxy on factory class? I am extending from some Customer\Address controller and it has some dependencies which I won't use. I want to replace by ...
user avatar
21 votes
4 answers
8k views

Magento 2: practical explanation of what is a proxy class?

So, I know theorically what is a proxy class in Magento 2. I've read the awesome Alan Storm article about it and I totally understand how those classes are generated. However, and I don't know if it'...
user avatar
1 vote
0 answers
27 views

Proxy object - when should I use them in fact

I have yesterday read great tutorial about Proxy objects: http://alanstorm.com/magento_2_object_manager_proxy_objects/ I understand that I should use them to lazy load object which have can be slowly ...
user avatar
6 votes
1 answer
702 views

What Triggers the Generation of a Proxy in Magento 2

From This link Proxy are something like lazy loading, but how Magento 2 knows it needs to generate a proxy class and which class has a proxy ?
user avatar
  • 721
8 votes
2 answers
834 views

Magento 2 proxy class override

I need to override the class \Magento\Catalog\Model\Product\Link using preference, which is working fine,but the above mentioned class has a proxy class generated automatically \Magento\Catalog\Model\...
user avatar