Questions tagged [configuration]

General settings of all the modules, either core or third party.

0
votes
2answers
21 views

Validation for file type not working in File Upload in Magento 2 Store Configuration

I am following below Article to upload file in store configuration: https://www.mageplaza.com/devdocs/how-file-upload-sytem-configuration-magento-2.html I have defined custom backend model as ...
0
votes
0answers
16 views

Magento2 config data

If I retrieve some data from config: $allowedCurrencies = explode( ',', $this->scopeConfig->getValue( \Magento\Directory\Model\Currency::XML_PATH_CURRENCY_ALLOW, ...
0
votes
0answers
13 views

Set Configurable Option Before Product Load

Is there a way to set a configurable product's option before the first page load? Right now we have a javascript script that selects the first option when the page loads but we'd like to avoid that ...
0
votes
0answers
15 views

Invalid response line returned from server: HTTP/2 200 ver 2.2.7

HI I have tried the fixes but none see me to so I am wondering if its because I have 2.2.7 version, that why I am receiving the error code after inputting the keys into the configuration to get the ...
0
votes
0answers
14 views

AH01797: client denied by server configuration <directory > referer: in magento 2 project

how I can solve this AH01797: client denied by server configuration <directory > referer: Does anyone have an idea??? I already tried this answer: 1)https://magento.stackexchange.com/a/...
1
vote
0answers
19 views

Magento 2x web rest api: Anyone can tell me about endpoint to get order status from store configuration?

I wonder if there is endpoint to get orderstatus by using api in magento 2x. As I check there is issue that created since 2016 but closed because report in github link
0
votes
1answer
21 views

Magento 2 : How to create Store Configuration multiselect with Payment methods

I want to create a multiselect in the admin area which lists out payment methods. Has anyone got any experience of this? Just need system.xml and source model if applicable. I can sort rest.
3
votes
1answer
28 views

Magento 2. Declarative schema. What is the use of the memory engine?

When creating tables using the Declarative Schema one can set the engine="" attribute value as memory. I can't seem to find an example in the core. What is a use-case for this configuration, how does ...
1
vote
2answers
38 views

How to recover env.php file in Magento 2?

is there any way to recover the env.php file. As my file deleted unexpectedly when editing using command line. Now file is empty and showing with 0 size in the ftp. As i don't have the backup of the ...
0
votes
0answers
7 views

Magento 2.3 - Country Options vs Customer Account Sharing Options

Preconditions Server config: Ubuntu 16.04 LTS MySql 5.7.26 Apache 2.4.18 PHP 7.2.18 In a Magento 2.3.0 installation we configured multiple stores (each one as its own custom prices). We have 15 ...
0
votes
1answer
17 views

Magento 2: Facing issue in “Edit Configurations” can't save product

I faced issue in "Edit Configurations" of product, can't save products, in Magento 2.3.1 with Apply images for all. Error: The "/var/www/html/magentosample231/pub/media/tmp/catalog/product/d/o/...
0
votes
1answer
23 views

Tax/VAT field configuration is not working on multistore Magento2 Core

I have a multistory website as Retail-Website and Wholesale-Website Configuration with fresh Magneto2.2 at Store >> Configuration >> Customer Configuration >> Show Tax/VAT Number Retail-Website ...
0
votes
0answers
30 views

M2 | How can we use same code base among all team members via Git?

We are a team of developers and wanted to share same codebase (DB, Configuration, Magento instance). We are using Magento 2 Image for Docker on MacOS. Individually we are working fine with docker. ...
0
votes
1answer
24 views

Undefined index: id in vendor/magento/module-config/Model/Config/Structure/Element/Iterator.php on line 63

I am having this issue when I try to install the extension ...
0
votes
1answer
28 views

Extension is missing delivery option

Recently i had installed a custom product type (custom module),but then it is missing delivery option .Is configuration from the custom module's end? or magento's delivery method end?
0
votes
0answers
21 views

Admin panel not really saving the configuration

Even if (after clicking the SAVE CONFIG button) the page refreshes and shows the text "You saved the configuration." the configuration still shows the old settings before the update. I am ...
1
vote
2answers
34 views

getting 404 on system configuration

I am using Magento 1 to create a system configuration left menu is created successfully but when I click on that getting 404. what I have tried Re-logging into the dashboard. Using ACL. Clearing var/...
0
votes
0answers
24 views

E_WARNING: simplexml_load_string(): ^ after config cache(redis) flush

Config cache flush(from redis-cli run FLUSHALL) is done daily in the morning. Post the flush we see the following warning appear in the logs: Error message E_WARNING: simplexml_load_string(): ^ ...
1
vote
0answers
9 views

how to make my custom attribute an attribute of configuration m2

I want to create a configurable product according to my custom attribute but i can't find it when i pass create configurations here is my code public function install(ModuleDataSetupInterface $setup,...
1
vote
1answer
48 views

how can I save the value from a select element in custom config field in magento2

I'm trying to add a custom configuration field in system.xml like this where one of the columns will be a select element instead of a simple input element and will load values dynamically from the ...
2
votes
1answer
225 views

how to configure Consumer_run for async.operations.all?

I have enabled my custom modules for certain functionality, successfully deployed but magento2 admin portal prompts me "something went wrong" when I click my newly installed module.(the module is not ...
1
vote
1answer
44 views

How to get Multi-select value Magento 1

I have added below code in my config.xml file to add one option in Magento multi select captcha section <default> <customer> <captcha> <always_for> ...
0
votes
0answers
13 views

Change system config from child theme

I would like to know if it's possible to change some default system value with a child theme. For example, if I go to Configuration > Catalog > Product Review > Allow Guests to Write Reviews....
1
vote
0answers
39 views

how to set default value for multi select field e.g specificcountry?

I've a field in system.xml <field id="specificcountry" translate="label" type="multiselect" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0"> <label>Ship to ...
0
votes
1answer
31 views

Magento 2 Dynamic cronjob

i'm trying to create dynamic cronjob based on my configuration value. already created group defined in cron_groups.xml and defined cron task <group id="mycompany"> <job instance="Vendor\...
0
votes
0answers
31 views

Magento 2.2.6 Developer config menu missing (with developer mode on)

After setting the mage mode to production and back to developer, the "developer" tab is missing under configuration->advanced. I am in the developer mode, and i've cleaned all caches. Tried relogging,...
0
votes
1answer
33 views

Observer doesn't work

I tried a few iterations and for whatever reason I can't add cookies or even execute any code from my observer, as it's not giving anything even if my observer has dies in it. I have my module visible ...
0
votes
2answers
547 views

Magento 2.3 - Required parameter 'theme_dir' was not passed after applying custom 'Blank' theme

I'm having an issue when applying a custom 'Blank' child theme. I'm running a fresh install of 2.3 on LAMP. I followed the Magento docs with respect to theme.xml and registration.php etc, but after I ...
1
vote
1answer
71 views

Magento2: How to disable password autofill on store-configuration?

I have 2 fields on my system.xml. The first one is an authentication key (obscured). The second one is an email. The thing is, because I use my email & it's also saved in my browser with a ...
5
votes
0answers
81 views

php bin/magento app:config:dump gives me [Magento\Framework\Exception\ValidatorException] Path “app/etc” cannot be used with “app/etc”

I'm trying to change some settings, and this answer has already been very helpful. But now php bin/magento app:config:dump gives me [Magento\Framework\Exception\ValidatorException] Path "/var/...
1
vote
0answers
33 views

How admin menu.xml configuration file process in mageno2

How Admin menu.xml config file process in mageno2? which file responsible for processing admin menu.xml configuration file?
3
votes
1answer
21 views

Is there a standard way to make add a config on theme scope?

To solve a problem in an FOSS extension I need to introduce a configuration settings with the scope "theme". Is there a standard way do to such? I was thinking about extended in the theme.xml but ...
2
votes
0answers
22 views

How to show only all store views on default store view

How to show all store views on default store view and on other store views only the current store view shows. my code is <?php namespace PME\Hideprice\Model\Config\Source; /** * @api * @since 100....
0
votes
0answers
22 views

server is out of memory

I'm running magento project on c5dxlarge with 8GB RAM. storefront was working fine but suddenly server get out of memory and memory usage became 80 percent. Also I had about 300 running processes even ...
0
votes
1answer
137 views

Varnish cache not clearing from magento admin

M2 Version : 2.2.2 PHP : version : 7.1.26 Varnish version : 6.0.2 Server : Nginx I have configure varnish in my magento website it working well i have checked in frontend and and passed all ...
0
votes
0answers
75 views

Magento 2.3 Can't change Locale Options

I am unable to change Locale options in Stores >> Configuration >> General tab Configurations. After saving the configurations it shows 'You saved the configuration.' but there is no change. Flushed ...
0
votes
2answers
23 views

Magento 2 describe attrubute property used in Plugin method

I am trying to create a simple module and I can't find the propose of the attribute name and type inside the tag type and plugin in di.xml. can anyone describe attribute name used in plugin? <?...
0
votes
1answer
152 views

Magento 2.2.2 error: The configuration file has changed. Run app:config:import or setup:upgrade command to synchronize configuration

I am getting this error when attempting to install Magento locally: The configuration file has changed. Run app:config:import or setup:upgrade command to synchronize configuration. When running "...
1
vote
1answer
20 views

Deploying code via GitHub

Due to the security reasons, we want to deploy the changes in code with GitHub. I can see that we can only change the code via GitHub. Is it possible to change the admin configuration as well via ...
0
votes
0answers
11 views

Any reason Magento2 decided against using one of the standard config file formats?

Any reason Magento2 decided against using one of the standard config file formats? Did the rest of the world get this so wrong? I love how they decided to use plenty of XML in their framework, but ...
2
votes
0answers
27 views

AH01797: client denied by server configuration: <directory_name>/update/cron.php14,19,33,45

I was just changing my magento2 mode from developer to production, And it resulted in blank webpage on the application URL. In my webserver logs I have found: AH01797: client denied by server ...
0
votes
2answers
203 views

Change Default Web URL

I want to change the url of the index page for magento 2 store. I changed the Default Web URL to "custom", but when I go to site.com/custom it gives me a 404 and the index page is still site.com/cms
2
votes
3answers
196 views

What could cause this (config) cache issue after upgrading from 2.1.14 to 2.1.15?

after upgrading a shop from 2.1.14 to 2.1.15 I'm getting the following exception when visiting any page via the browser: 1 exception(s): Exception #0 (Exception): Notice: Undefined index: in /src/...
0
votes
0answers
10 views

interesting m1 problem with config / update toggles

we have a tricky problem that i'd like to throw out to the community. essentially we want to be able to IP restrict traffic using a toggle (so we can test a feature before releasing to the public) ...
1
vote
1answer
21 views

Magento2 : Recommended way to properly filter the logs?

Recommended way to properly filter the logs? It's like a log4j Java app with every logger active, so essentially a flood of useless chatter. Is there any way I can configure or manage what gets ...
0
votes
1answer
39 views

Magento 2. Retrieve information from env.php in the js files programmatically

I'd like to read and use the information stored in my env.php to my js files. Is there an entity that I can use to fix this?
0
votes
0answers
13 views

Recommended way to get a list of all valid config fields?

I'm looking to get a structure of all valid config fields, so that I can write something to clean them, how should I do this? I'm also looking to get a structure of all config fields present in an ...
0
votes
1answer
37 views

Magento 2. How to create StoreView in System.xml

How to create Store View in System.xml. I can explain it with image given below
0
votes
0answers
31 views

Unable to apply changes to design configuration header/footer, magento 2.2.7

Running magento 2.2.7 Attempting to change footer copyright as well as add a style sheet under the html head. (under content->configuration) No changes of any sort are being saved when save ...
7
votes
3answers
119 views

What is the use of “mapping” node in di.xml in Magento 2?

I am using Magento 2.2.5 have a look on file vendor\magento\module-sales\etc\di.xml <type name="Magento\Payment\Model\Checks\SpecificationFactory"> <arguments> <...