magento2 – Magento 2 404 custom administration module not found

I have been struggling with this error all day, I have tried all the solutions on the Internet, but it still shows Error 404 when I click on the link in my custom menu.

Here is my code




resultPageFactory = $pageFactory;
        $this->jsonHelper = $jsonHelper;

    public function execute()

        die ("test module");





magento2 – Webroot configuration in the pub /

I have a question and I am not sure if anyone can help me.

I discovered that I have to configure webroot in the pub / folder.

So, what I did was basically change the document root for my domain in my cpanel – additional domains to / public_html / magento2 / pub.

I know you are targeting the pub and my website works.

However, when the product alert email sends the email. All images are broken links. When I inspect the images in my browser, the link adds / pub / media …..

However, my domain should point to the pub folder and I should not add the pub again.

Can anyone tell me if it is normal and also the correct way to change the document root to / pub?

I have a managed cloud hosting with Siteground.

Thank you

magento2 – How to confirm and send the Magento provider directory file in Magento Cloud?

I have made changes to

Magento / vendor / magento / module-checkout / Model / PaymentInformationManagement.php

I have made changes to the previous file, but How can I confirm these changes and PUSH it to the Magento cloud? as it will not be shown in git diff.

Any ideas on how to drive changes to the provider's DIR files in Magento Cloud?

Note: I do not want to cancel in my application directory, since it is an error and I
You want to fix it in direct file.

magento2 – Add custom header in payment submission

I am trying to add custom headers to the payment process to divide the forms into sensitive sections.

I have already modified checkout_index_index.xml to alter the sort order of my form. Now looks like this


How do you add headers to divide the form as follows?

New H3 tags added above the name and address entry point field

In the attached image, I have converted the tags into placeholders within the fields.

magento2: undo the template file ux_componente .xhtml

How can I undo a template file from ui_components?

The corresponding file is:


I want to override this file to add a css class to the specific div for the widget used.

I tried to copy the file to: app/design/frontend/Vendor/Theme/Magento_Ui/ui_component/templates/listing/default.xhtml

But this has not worked, even after emptying all the caches and performing the configuration: update I do not see any changes made to the interface.

However, making the change directly to the original file under the provider takes effect, so I am sure that I am editing the correct file.

Anyone who has an idea?

magento2 – Magento 2 – Google analytics / Tag manager does not track affiliates and gclid details

I just updated our store at from M1.9.4.1 to M2.3.2.

First I added Google Analytics through the Magento administration panel. I was tracking visits well but I couldn't track sources like gclid for AdWords and other of our partners.

Then I disabled GA and enabled Tag Manager. I'm still having the same problem.

Can anybody help me ?

Thank you !!!

magento2 – Does Magento 2 use MVC or MVMM?

There is also a question like mine. However, there are still more things that I don't really understand, because when you develop the module, everyone uses the MVC architecture. But at the same time, there are people who still say that Magento 2 follows MVVM. So what architecture does Magentro 2 use?

magento2 – Magento 2 – Administrator hops frequently if we don't clear the cache any longer

Both are the server level cache:

When you use 2 server cache at a time, it can generate conflicts somewhere. And in your case it is Generating a problem in your backend (administration page)

Please enable only one server cache. From my point of view, the varnish cache (HTTP reverse proxy) has better performance.

You can also use a browser-level cache add-in for better performance.

Magento2 Redis generates sessions without visitors

I added the redis server to store sessions.
However, after adding redis it seems that the speed is slower. The charger on the product page takes longer now.
In addition, I opened the redis-cli monitor to verify the sessions and discovered that it is generating sessions without any activity on the interface. There are no visitors and no page opens.
enter the description of the image here

Cron's work does not work Magento2

I created a module and I want to use it through cron, and in the end I call cron: run command, here are my files, what's wrong here?

namespace AutoAddtocartBundleAddtocartCron;

class Addtocartauto

    protected $_logger;

    public function __construct(

        PsrLogLoggerInterface $logger

        $this->_logger = $logger;

    public function execute()
        $this->_logger->debug('Cron run successfully');
        return $this;


Cron xml file

            * * * * *