The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [proxy]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
39 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 ...
1
vote
0answers
72 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 ...
1
vote
0answers
31 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 ...
1
vote
0answers
31 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 ...
1
vote
0answers
96 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 ...
1
vote
3answers
246 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 \...
4
votes
3answers
804 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 ...
2
votes
0answers
27 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 ...
1
vote
1answer
180 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" ...
2
votes
0answers
105 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 ...
1
vote
3answers
71 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 ...
1
vote
1answer
108 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 ...
0
votes
1answer
145 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 ...
0
votes
1answer
68 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 ...
0
votes
0answers
370 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 ...
4
votes
0answers
115 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 ...
1
vote
0answers
23 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 ...
2
votes
1answer
91 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: &...
5
votes
1answer
121 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 ...
15
votes
4answers
3k 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'...
1
vote
0answers
23 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 ...
6
votes
1answer
406 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 ?
8
votes
2answers
620 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\...