Magento does not install my module

I have a very weird situation where my Magento Module is not getting installed, but its getting registered.

This is my config.xml:


Any I have the following subdirectory structure:

Example /
- Module /
-- data / example_module_setup / data-install-0.1.0.php 
-- data / example_module_setup / data-upgrade-0.1.0-0.2.0.php
-- etc / config.xml
-- sql / example_module_setup / install-0.1.0.php

However, the module does not get registered in core_resource. I’ve cleared var/cache before reloading the frontend.

What is wrong here?

Magento 2 : Overriding Default Contact Form Controller POST.php file

I’m trying to override the contact form post controller in Magento 2.2.6, by following the answer from this thread (Override module-contact view and controller) by creating my own module. I added MagentoFrameworkTranslateInlineStateInterface $inlineTranslation to fix some error, but i’m not able to send out the form as expected, keeps getting “We can’t process your request right now. Sorry, that’s all we know.” error. Please help, thanks!


        if (!$post) {

        try {
            $postObject = new MagentoFrameworkDataObject();

            $error = false;

            if (!Zend_Validate::is(trim($post['name']), 'NotEmpty')) {
                $error = true;
            if (!Zend_Validate::is(trim($post['comment']), 'NotEmpty')) {
                $error = true;
            if (!Zend_Validate::is(trim($post['email']), 'EmailAddress')) {
                $error = true;
            if (Zend_Validate::is(trim($post['hideit']), 'NotEmpty')) {
                $error = true;
            if ($error) {
                throw new Exception();

            $storeScope = MagentoStoreModelScopeInterface::SCOPE_STORE;
            $transport = $this->_transportBuilder
                ->setTemplateIdentifier($this->scopeConfig->getValue(self::XML_PATH_EMAIL_TEMPLATE, $storeScope))
                        'area' => MagentoBackendAppAreaFrontNameResolver::AREA_CODE,
                        'store' => MagentoStoreModelStore::DEFAULT_STORE_ID,
                ->setTemplateVars(['data' => $postObject])
                ->setFrom($this->scopeConfig->getValue(self::XML_PATH_EMAIL_SENDER, $storeScope))
                ->addTo($this->scopeConfig->getValue(self::XML_PATH_EMAIL_RECIPIENT, $storeScope))

                __('Thanks for contacting us with your comments and questions. We'll respond to you very soon.')
            $this->_redirect('contact'); // change here 
        } catch (Exception $e) {
                __('We can't process your request right now. Sorry, that's all we know.')
            $this->_redirect('contact');  // change here 






Magento 2 : How to know “used_in_forms” param of eav attribute for a form?

I was wondering if there is a full proof method for finding all used_in_forms params of eav attribute which is specified in installdata to create all kind of attributes for a form or maybe someone can list all the used_in_forms for all default magento forms.

Any help would be appreciated.

Magento 2 : Undefined Index : Default

In Backend When I try to change theme at that time I got this error

Exception #0 (Exception): Notice: Undefined index: default in /home/cloudpanel/htdocs/project/app/code/Codazon/ThemeOptions/Framework/App/Config/Initial.php on line 72


public function getData($scope)

        list($scopeType, $scopeId) = array_pad(explode('|', $scope), 2, null);
        $this->themeId = $this->scopeConfig->getValue(MagentoFrameworkViewDesignInterface::XML_PATH_THEME_ID,$scopeType,$scopeId);
        $cacheKey = self::CACHE_ID.'|theme|'.$this->themeId;
        $data = $this->cache->load($cacheKey);
        if (!$data) {
            $data = $this->reader->read($this->themeId);
            $this->cache->save(serialize($data), $cacheKey);
        } else {
            $data = unserialize($data);
            $this->_data = $data['data'];
            $this->_metadata = $data['metadata'];
        return $this->_data['default'];

Magento 1.9 Multiselection fields are all empty in the backend configuration

I have a problem with Magento’s backend.
In Configuration, each multiselection field is empty, all options are no longer available. This problem is only in the configuration. Why?

I’ve already tried cleaning the cache and doing the reindex.

Any solution?
Thank you

This is the situation:
enter image description here

enter image description here

magento 2 custom api return in json without response tag

I have created a custom api following “inchoo” tutorial. But I am getting the data in string format instead of json.

From my browser I am getting a tag surrounding the api return as below.
enter image description here
But Chrome’s postman extension showing a double quote (“”) and some extra slashes () in the in the response even after header to “Accept”:”application/json” and “Content-Type”:”application/json”.
enter image description here
I just want to receive the exact same string I am returning in my Model class.

 public function name() {
    //return "Hello, raihanruhin";
    $arr = '[{"name":"MasterCard"},{"name":"VISA"}, {"name":"DBBL-NEXUS"}, {"name":"American Express"}]';
    return $arr;

How to filter the grid customer according to group_id magento 2

I have two customer groups and I have created two sub menu under All customers and 2 controllers.

I want to create two grids so that I will have the list of customers that belong to group 1 in grid 1 and in grid 2, Customers that belong to the group 2.

I want to know how to proceed step by step.

Instructions to update extension in Magento 1.9

I’m relatively new to Magento and am currently using version

Out payment system providers (Adyen) have recently provided a new version of their extension with better security (on gitlab this version is designated adyen-magento-2.11.1.)

I’d like to install this new version but I’m concerned that if I do it wrong it will mess up the current version that is installed. I’m assuming that I’d have to log into SSH and use a composer update but I’m unsure about where to load the files and which command to use subsequently.

I cannot seem to find any instructions about how to update this version online.

I would appreciate it if anyone could offer some guidance with regards to this.

Magento 2 Market place

I need to create a new website using Magento 2, somehow like eBay, for that I need these features:

  • possibility to create a store with an administration panel for other sellers to sell their products

  • using one domain, the sellers’ stores are listed under, …

  • each seller has access to manage his store, products, price promotions, orders, shipments, check payements …

  • on the Magento admin, it is necessary to have the possibility to manage the sellers’s accounts, enable, disable, view the statistics, orders, products, promotions, shipments, transactions etc., with the possibility to modify and to delete. .

  • my site will get a percentage on all other store sales based on the store’s product category

What is the best way to do this using Magento 2.

Thank you