magento2.3 – Magento 2 override admin Controller Address Save.php

How to override admin controller address save.php

I am using this code –


<?xml version="1.0"?>
<config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="MagentoCustomerControllerAdminhtmlAddressSave"
                type="CompanynameNamespaceControllerAdminhtmlAddressSave" />                



namespace CompanynameNamespaceControllerAdminhtmlAddress;

class Save extends MagentoCustomerControllerAdminhtmlAddressSave

    public function execute()
       echo "hello"; die;

        $customerId = $this->getRequest()->getParam('parent_id', false);
        $addressId = $this->getRequest()->getParam('entity_id', false);

        $error = false;
        try {
            /** @var MagentoCustomerApiDataCustomerInterface $customer */
            $customer = $this->customerRepository->getById($customerId);

            $addressForm = $this->formFactory->create(
            $addressData = $addressForm->extractData($this->getRequest());
            $addressData = $addressForm->compactData($addressData);

            $addressData('region') = (
                'region' => $addressData('region') ?? null,
                'region_id' => $addressData('region_id') ?? null,
            $addressToSave = $this->addressDataFactory->create();
                (bool)$this->getRequest()->getParam('default_billing', false)
                (bool)$this->getRequest()->getParam('default_shipping', false)
            if ($addressId) {
                $message = __('Customer address has been updated.');
            } else {
                $message = __('New customer address has been added.');
            $savedAddress = $this->addressRepository->save($addressToSave);
            $addressId = $savedAddress->getId();
        } catch (NoSuchEntityException $e) {
            $error = true;
            $message = __('There is no customer with such id.');
        } catch (LocalizedException $e) {
            $error = true;
            $message = __($e->getMessage());
        } catch (Exception $e) {
            $error = true;
            $message = __('We can't change customer address right now.');

        $addressId = empty($addressId) ? null : $addressId;
        $resultJson = $this->resultJsonFactory->create();
                'message' => $message,
                'error' => $error,
                'data' => (
                    'entity_id' => $addressId

        return $resultJson;

It is just giving errors when trying to save “A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later.”

batch file – Run script as admin but get the current user

I’m trying to make a script that keeps track of login/logout times of all thin-client users and writes them to a text file on the server. I will set up a task in Task Scheduler that runs a batch file which writes to a text file every time a user logs in/out. To write to a file at C:/ The script must be run as admin. This can be accomplished by selecting “Run with highest privileges” in task scheduler, and making sure it’s run under an admin account.

However, I believe that when I use the %USERPROFILE% command, it will return the admin’s username, not that of whoever just logged in/out. Is there a way to run the script with admin rights, but have some command to get the user that just logged in/out, triggering the task?

magento2 – Magento 2.3.x Admin Panel keeps loading

I have installed Magento 2.3.5-p1 and also tried 2.3.4-p2 on Centos 7, with Nginx & PHP-FPM, maria DB with following commands.

1. /var/www/magento < owner by MAGENTO:NGINX user (I have created a pool for magento:nginx)
2. find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
3. find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
4. chmod u+x bin/magento
6. su magento

7.  bin/magento setup:install --base-url='' 
--db-host='localhost' --db-name='' --db-user='' 
--db-password='' --admin-firstname='example' 
--admin-lastname='Admin' --admin-email='' 
--admin-user='admin' --admin-password='' --language='en_US' 
--currency='USD' --timezone='UTC' --use-rewrites=1 --use-secure-admin=1 --use-secure=1

Once completed, my FRONTEND (home page) works absolutely fine, i just have 2 errors in the javascript console log:

(Error) Failed to load resource: the server responded with a status of 404 () (requirejs-config.js, line 0)
(Error) Refused to execute as script because "X-Content-Type: nosniff" was given and its Content-Type is not a script MIME type.

But when I open admin panel, I can login into it. However, after logging in it keeps loading. I have tried several methods available online such as:

1. rm -rf pub/static/* (except .htaccess) refresh page
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
vi app/etc/di.xml <-- Change Symlink to Copy
rm -rf pub/static/*
refresh page
rm -rf var/*
bin/magento setup:static-content:deploy -f
bin/magento c:c
5. bin/magento cache:enable

I have tried to install it under both php-fpm and nginx group, also as nginx:nginx. Nothing works, admin panel just keeps loading.

What am I missing here?

The errors i get on admin panel JS console logs

enter image description here

Fireworks | Forum Promotion – Best Webmaster, Admin and Internet Marketing Forum

Noticing a very lack of posting of anything fireworks related here , is rather disturbing. :neutral:

For those celebrating this past week (and the rest of the week), any of you had fun going to see city fireworks?

Went to one of the few locally that wasn’t cancelled this year, and I loved it. 25 minutes of uninterrupted fireworks. – Storage RDP | Admin Encoding RDP | 8 Users MAX | NL Location | Proxies-free

Why Choose Server Trafficweb ?

  • We Provide 24/7 Real Support
  • Affordable Prices For High Quality Hardware
  • Windows Server 2012 R2
  • No Setup Cost.
  • Instant Setup
  • 99.9 % Network Uptime
  • Locations :- Netherlands

Pre Installed Application :

  • Internet Download Manager
  • WinRar
  • Chrome
  • Firefox
  • Media Player Classic
  • VLC
  • Utorrent
  • Total Commander
  • And More….

Netherlands RDP Servers :-
Our Goal :-
To provide best available service to our clients, by means of best support, offering cheapest prices for the RDP slots and with the best servers available in the market.
Our Guarantee
24 hour Money Back Guarantee*
Anytime refund in the form of Credits*

Not Allowed :-
Mining | Cracking | Downloading from Public Torrent Trackers | Child Porn | Sick Porn | Spamming | Not More than 3 Torrents at a time | Check with us if you are unsure about the activity before buying since we do not provide refunds.

Payment method :-

Proof Support :-

Speed Testing :-
Request demo for speed testing. We also have 24 hours money back guarantee.

24/7/365 Full Support :-

Skype :- live:servertrafficweb24
Website :-
Email :- [email protected]

Stay Connected :-
Facebook | Twitter | Instagram

How do I add a custom action to the WooCommerce admin JS interface order cards next to the ‘Begin Fulfillment’ button?

The new WooCommerce admin functionality is great, but the only reference to ‘Begin Fulfillment’ are in the language .pot file and it appears compiled js file 7.2eb145fe8d6d73093386.js and its minified equivalent making it hard to work out what is going on.

The default action just goes to the order detail page, and I would like to add a new one next to it to trigger some custom JS for a modal where you can enter the shipping tracking number, marking the order complete and hiding the card in the process.

A suitable compromise would be to take over the behaviour of the existing button to trigger the modal, this a compromise because I was going to filter the i18n string to change the button label to ‘View Order’, as really that is what it does. Be great if this triggered the preview modal like the orders list.

The alternative option would be to hide the default one completely and add a custom button, list of cards and actions but I can’t find any suitable filters for this option either.

Open the SharePoint Admin Center in SharePoint Designer?

I am a global admin in my tenant and I recently installed SharePoint Designer. I tried to open the admin center ( in SharePoint Designer but I got an error that said I was unauthorized. I looked in to this and found that it was because custom scripting was disabled. However, I have received errors trying to enable it on the admin center temporarily (This operation is not supported for this resource) and I am aware of the security issues, so I hesitate to do so. Is it possible to access the admin center in SharePoint Designer?

Facebook groups admin

As an administrator I would like to create a photo album in a public Facebook group that only other administrators or moderators have access to, but I can’t work out if this is possible, never mind actually do it. Can anyone help, please?

How to give certain users access to your admin site on firebase?


In my company, we have one firebase project which is linked to our iOS application and an internal tool(purely for our use and not the consumers). Now since the database is common to both the website and the iOS app, all the users who create an account on the iOS application automatically have access to our internal tool. I wish to allow only a handful of people or one person to have access to the internal tool.


Is there a way for me to give certain users access to the internal tool? (If it involves manually giving them access from the firebase console?)
Is there a way to make the user authentication check different for the internal tool?