Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [core-config-data]

Please use this tag when you have a question related to the configuration table in magento which is the core_config_data table.

28 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
2answers
88 views

Problem with <backend_model>

I'm getting a little desperate here with my custom Magento Backend Models. Here is the situation: I have 2 multiselect (locales_served, countries_served) fields with custom backend models in my ...
3
votes
0answers
127 views

M2 - Difference between ScopeInterface SCOPE_STORE and SCOPE_STORES

I understand that there are websites, stores within websites, and store views within a store. However, one thing I've never understood is the difference between ScopeInterface::SCOPE_STORE and ...
2
votes
2answers
863 views

How to get value from custom drop down field of system config in magento 2

I need the value of selected value from system config file. Below is my code example. system.xml file <field id="test" translate="label" type="select" sortOrder="30" showInDefault="1" ...
1
vote
0answers
26 views

how to bring a core_config_data to its last state?

I have done an update which I should not have and backup functionality on magento was not enabled, how can I rollback that last command? is there a chance somewhere I can get the data back? since I ...
1
vote
0answers
20 views

Magento 2 Get Core Config Data columns

How do one get the column scope_id from core_config_data via given path E.G: $this->_config->getValue(self::MY_PATH, ScopeInterface::SCOPE_STORE); The above returns the column value I need ...
1
vote
0answers
19 views

Magento 1.x core config values in mysql upgrade?

I have the following lines to get a core_config_data value in a mysql upgrade script $installer = $this; $installer->startSetup(); $adapter = $installer->getConnection(); $my_store = Mage::...
1
vote
1answer
92 views

Magento 2 Saving store configuration programatically in upgrade script

I want to save store configuration programtically but I'm just getting one problem after another. Firstly I wanted to use Writer class but since it only updates core_config_data table it doesn't work ...
1
vote
2answers
222 views

magento 2 module register event observer

Is there a way to do some action at module registration/installation? It can be through event observer or through migration. I want to call a function to get some values and store them in ...
1
vote
1answer
77 views

How to store label value in core_config_data

I want to store label value in core_config_data. Mostly the input values are store. If there is no row then the magento creates it. But why the label value is not created. <field id="last_sync" ...
1
vote
0answers
119 views

Magento 2 class constructor

I have class in my module for Magento 2. His constructor gets 2 parameters class MyClass { private $str1; private $str2; public function __construct(string $str1, string str2) { ...
1
vote
2answers
374 views

Magento 2 data migration 'Permission denied' error

I am trying to migrate magento 1.9 data to magento 2. A week ago I was able to do settings verfication and run migrate data command than I have to stop work. Now after coming back when I try to ...
1
vote
1answer
32 views

Cloned Prod Web & Database Server to create staging, what next?

I am trying to correctly setup a Staging environment. I cloned both my Production Web Server and Production Database Server to replicate both in a Staging setting with their own separate droplets (...
1
vote
0answers
180 views

how do get store in magento2?

i have custom tempalte. I get template store view in my block. protected function _prepareLayout() { $this->getToolbar()->addChild( 'store_switcher_xanka', '...
0
votes
0answers
21 views

How to get Config value in PDF magetno 2

how do you get config value in model class i am doing a override for PDF INVOICE by <preference for="Magento\Sales\Model\Order\Pdf\Invoice" but i am not able to get the config value const ...
0
votes
1answer
11 views

How to get configuration value from default

I want to get a config value from core_config but the default level I know we can get it by using scope config but I want default
0
votes
0answers
36 views

Magento 2 : window.checkoutConfig returns empty, So Checkout page is not loaded without configuration values

Here My Checkout page is not loading which throws following issue It also shows like below while hit checkout page. Can anyone please suggest me the solution for this. Thanks in advance
0
votes
0answers
33 views

Magento 2 admin panel is down after changing Base URL

I have changed Base URL secure and unsecure from the backend. I had the following url= http://subdomain.domain.org/folder (also https) and I changed it in order to have http://subdomain.domain.org/. ...
0
votes
0answers
22 views

Magento prepending /pub/ directory to all CSS and JS files

In order to perform the Magento 2 install via a web browser, I had set the Apache DOCUMENT_ROOT as /var/www/magento/. After completing the install, I moved the DOCUMENT_ROOT to /var/www/magento/pub/. ...
0
votes
0answers
21 views

Migrate config values from one path to another

If I have a Magento 2 extension with an old configuration path foo/bar/ with in there numerous settings (like foo/bar/abc), what would be the best way to rename the path to for instance foo/newbar/ (...
0
votes
3answers
534 views

How to change my url from www.xxx.com/Magento to www.xxx.com

I am running Magento 2.2.7 and my current URL for my store is https://shop.xyz.ca/Magneto and I would like to change it to be https://shop.xyz.ca/ I am set up on Windows Server and using Xampp 3.2.2 ...
0
votes
0answers
21 views

Magento 2: What is the best practice of storing and retrieving custom data

Looking for some input on what the best practice would be to store and retrieve custom data. As an example, I need to store, retrieve and update a couple of custom variables: access_token and ...
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
287 views

core_config_data settings not loading on shell script

I have a shell script that should send an API request to a certain endpoint, using username and password in a simple HTTP auth. Everything works fine using hard-coded values, but of course we want to ...
0
votes
0answers
321 views

Retrieve encrypted data from config but the data is Garbled text

I'm trying to retrieve a encrypted data from config data by external script, <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); //ini_set('...
0
votes
1answer
11 views

How can I find all config entries for enabled payment or shipping methods and copy them to another store?

I want to be able to export the enabled payment or shipping methods for a store, then import that into a new store, without overwriting any other configuration values. It's safe to assume that both ...
0
votes
1answer
52 views

Trouble with admin URL

@EDIT: it finally worked. I just needed to clear Magento's cache. In case you need to do so, go to /var/cache and delete everything there, and then start again. I installed Magento 2 with WAMP server ...
0
votes
1answer
688 views

Configuration->General Settings keep getting cleared. In core_config_data table path 'genera' value 0 keeps appearing

This just started happening recently in our development environment. The row id default 0 general 0 keeps getting inserted into core_config_data. Every time I delete it manually via sql, it comes ...
0
votes
1answer
475 views

Magento keeps getting a 404 Not Found Error

I am having the same problem as before. I did an rsync with my prod site to make sure all files were exactly the same. It shouldn't have overwritten my local.xml because I used the exclude option. ...