magento2.3.2 – Magento 2.3.2: Database prefix error executing configuration: update

The version conflicts with the update error when you run the command,
Bin bin / magento configuration: update

Solution:

Dotdigitalgroup_Email is just a demo and replaces the name of your extension

First approach:
1] If you have not used the Dotdigitalgroup module, disable it from the config.php file with, "Dotdigitalgroup_Email" => 0 and "Dotdigitalgroup_Chat" => 0

Second approach
2] You can manually update the database table, setup_module
With a record, Dotdigitalgroup_Email changes schema_version and data_version to 3.3.0 Or runs an SQL query to update the entry.

You can check the latest version of Dotdigitalgroup_Email from the provider / dotmailer / dotmailer-magento2-extension / etc / module.xml

Get the name of setup_version of the XML file,

Use setup_version and replace it with the entry in the setup_module table.

And more information about this problem, see these links: –

Magento 2 Upgrade Error SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘magento2.email_abandoned_cart’ doesn’t exist.

Thank you.

miner configuration: Altcoin individual mining problem with Cpuminer

I have cloned litecoin to make my own altcoin for fun and I want to extract the new currency alone using cpuminer on mainnet. I have compiled and installed cpu miner on my Mac OSX and I am running the altcoin daemon and also opened the port.

./src/altcoind -daemon

When I run cpuminer I get this error.

./minerd -o http://127.0.0.1:26201 -O litecoinrpc:9eac7ba52764a6d42aa48386e8f435f8 -a scrypt --no-longpoll --no-getwork --no-stratum --coinbase-addr=xxxxxx

[2018-02-27 17:55:48] Binding thread 2 to cpu 2
[2018-02-27 17:55:48] Binding thread 0 to cpu 0
[2018-02-27 17:55:48] Binding thread 1 to cpu 1
[2018-02-27 17:55:48] Binding thread 4 to cpu 4
[2018-02-27 17:55:48] Binding thread 3 to cpu 3
[2018-02-27 17:55:48] Binding thread 5 to cpu 5
[2018-02-27 17:55:48] 8 miner threads started, using 'scrypt' algorithm.
[2018-02-27 17:55:48] Binding thread 6 to cpu 6
[2018-02-27 17:55:48] Binding thread 7 to cpu 7
[2018-02-27 17:55:48] HTTP request failed: Failed to connect to 127.0.0.1 port 26201: Connection refused
[2018-02-27 17:55:48] json_rpc_call failed, retry after 30 seconds

Here is my altcoin.conf

rpcuser=litecoinrpc
rpcpassword=xxxxxx
rpcport=262012
rpcallowip=127.0.0.1
server=1
gen=1
listen=1

Why does cpuminer not work?

Another attempt: I changed the file deletion port conf

rpcuser=litecoinrpc
rpcpassword=xxxx
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1

and now it seems to connect to the port but I receive an empty response from the server

[2018-02-27 18:23:11] Binding thread 4 to cpu 4
[2018-02-27 18:23:11] Binding thread 5 to cpu 5
[2018-02-27 18:23:11] Binding thread 6 to cpu 6
[2018-02-27 18:23:11] 8 miner threads started, using 'scrypt' algorithm.
[2018-02-27 18:23:11] Binding thread 7 to cpu 7
[2018-02-27 18:23:11] HTTP request failed: Empty reply from server
[2018-02-27 18:23:11] json_rpc_call failed, retry after 30 seconds

Any help or advice is greatly appreciated.

██ PRICES NOT MEASURED 1G / 10G LOWEST ANYWHERE ██ Instant configuration $ 33 ██ NEW RYZEN ██ ANTI-DDOS ██ 3 DCs █

Instant setup – (2 cores) Intel Atom D525 (8GB fast implementation) 8GB DDR3 / 64GB SSD + 1TB HD $ 33.00 / month New York Subway (1 available) Instant setup – (4 cores) Intel Core i7 4770 (32GB fast implementation) 32GB DDR3 / 2x1TB HD $ 54.00 / month New York Metro (10 available) Miami, FL (0 available) Instant setup – (4 cores) Intel Core i7 4790 (32GB fast implementation) 32GB DDR3 / 256GB SSD $ 54.00 / month New York Subway (1 available) Miami, FL (2 available) Instant setup – (4 cores) Intel Core i7 7700K (32GB fast implementation) 32GB DDR4 / 2x256GB SSD $ 79.00 / month New York Subway (0 available) Miami, FL (1 available) Los Angeles, CA (0 Available) Instant setup – (4 cores) Intel Core i7 7700K (Rapid Deploy 64GB) 64GB DDR4 / 2x512GB SSD $ 99.00 / month New York Subway (0 available) Miami, FL (1 available) Los Angeles, CA (5 available) Instant setup – (4 cores) Intel Xeon E3 1230 (32GB fast implementation) 32GB DDR3 / 64GB SSD + 2TB HD $ 46.00 / month New York Subway (1 available) Instant setup – (4 cores) Intel Xeon E3 1230 V3 (8GB fast implementation) 8GB DDR3 / 64GB SSD $ 39.00 / month New York Subway (1 available) Miami, FL (0 available) Los Angeles, CA (0 Available) Instant setup – (4 cores) Intel Xeon E3 1230 V3 (32GB fast implementation) 32GB DDR3 / 256GB SSD $ 49.00 / month New York Subway (2 available) Miami, FL (0 available) Los Angeles, CA (0 Available) Instant setup – (4 cores) Intel Xeon E3 1240 V5 (fast 64GB implementation) 64GB DDR4 / 512GB SSD + 2TB HD $ 79.00 / month New York Subway (2 available) Miami, FL (0 available) Los Angeles, CA (0 Available) Instant setup – (4 cores) Intel Xeon E3 1240 V6 (RD 16GB SSD) 16GB DDR4 / 256GB SSD $ 60.00 / month New York Subway (0 available) Miami, FL (2 available) Los Angeles, CA (2 available) Instant setup – (4 cores) Intel Xeon E3 1240 V6 (16 GB RD HDD) 16GB DDR4 / 2TB HD $ 60.00 / month New York Subway (2 available) Miami, FL (1 available) Los Angeles, CA (0 Available) Instant setup – (4 cores) Intel Xeon E3 1240 V6 (64 GB RD HDD) 64GB DDR4 / 2x2TB HD $ 99.00 / month New York Metro (4 available) Miami, FL (1 available) Los Angeles, CA (1 available) Instant setup – (4 cores) Intel Xeon E3 1270 V3 (8GB fast implementation) 8GB DDR3 / 128GB SSD $ 45.00 / month New York Subway (1 available) Miami, FL (0 available) Instant setup – (4 cores) nVidia Quadro K1200 (GPU RD 1230 V3) 16GB DDR3 / 2x256GB SSD $ 99.00 / month New York Subway (0 available) Miami, FL (1 available) Instant setup – (6 cores) Intel Xeon E5 1650 V3 (RD 128GB RAID) 128GB DDR4 / 2x1TB SSD + 2x2TB HD $ 139.00 / month New York Subway (1 available) Miami, FL (0 available) Los Angeles, CA (0 Available) Configurable – (8 cores) AMD Ryzen 3700X (Custom Settings) Configurable / Configurable $ 84.00 / month New York Subway (100 available) Miami, FL (100 available) Los Angeles, CA (100 available) Instant setup – (8 cores) AMD Ryzen 3700X (RD 64GB) 64 GB DDR4 / 2×512 GB NVMe $ 129.00 / month New York Subway (7 available) Miami, FL (1 available) Los Angeles, CA (5 available) Instant setup – (8 cores) AMD Ryzen 3700X (RD 128GB) 128GB DDR4 / 2x1TB NVMe $ 189.00 / month New York Subway (2 available) Miami, FL (3 available) Los Angeles, CA (0 Available) Configurable – (8 cores) Dual Xeon E5620 (Custom Settings) Configurable / Configurable $ 129.00 / month New York Subway (1 available) Configurable – (8 cores) Intel Core i7 9700K (custom configuration) Configurable / Configurable $ 84.00 / month New York Subway (100 available) Miami, FL (100 available) Los Angeles, CA (100 available) Instant setup – (8 cores) Intel Core i7 9700K (RD 64GB) 64GB DDR4 / 512GB NVMe SSD $ 125.00 / month New York Subway (0 available) Miami, FL (4 available) Los Angeles, CA (6 available) Configurable – (8 cores) Intel Core i9 9900K (custom configuration) Configurable / Configurable $ 99.00 / month New York Subway (100 available) Miami, FL (100 available) Los Angeles, CA (100 available) Instant setup – (8 cores) Intel Core i9 9900K (RD 64GB) 64GB NVMe DDR4 / 1TB Solid State Drive $ 145.00 / month New York Subway (1 available) Miami, FL (10 available) Los Angeles, CA (0 Available) Instant setup – (8 cores) Intel Core i9 9900K (RD 128GB) 128GB DDR4 / 2TB NVMe + 2x2TB HD $ 215.00 / month New York Subway (0 available) Miami, FL (2 available) Los Angeles, CA (7 available) Instant setup – (10 cores) Intel Xeon W 2155 (RD 128GB) 128GB DDR4 / 2TB NVMe + 2x2TB HD $ 239.00 / month New York Subway (0 available) Miami, FL (1 available) Los Angeles, CA (0 Available) Configurable – (12 cores) AMD Ryzen 3900X (Custom Settings) Configurable / Configurable $ 99.00 / month New York Subway (100 available) Miami, FL (100 available) Los Angeles, CA (100 available) Instant setup – (12 cores) AMD Ryzen 3900X (RD 64GB) 64GB DDR4 / 2x1TB NVMe $ 149.00 / month New York Subway (0 available) Miami, FL (3 available) Los Angeles, CA (0 Available) Instant setup – (12 cores) AMD Ryzen 3900X (RD 128GB) 128GB DDR4 / 2x2TB NVMe $ 219.00 / month New York Subway (0 available) Miami, FL (3 available) Los Angeles, CA (2 available) Instant setup – (12 cores) Dual Xeon E5 2603 V3 (RD 64GB RAID) 64GB DDR4 / 4x2TB HD $ 99.00 / month New York Subway (1 available) Miami, FL (0 available) Configurable – (12 cores) Dual Xeon E5 2603 V3 (Custom Settings) Configurable / Configurable $ 159.00 / month New York Subway (1 available) Miami, FL (0 available) Configurable – (12 cores) Dual Xeon E5 2620 V2 (Custom Settings) Configurable / Configurable $ 79.00 / month New York Subway (1 available) Instant setup – (12 cores) Dual Xeon E5 2620 V2 (RD 128GB RAID) 128GB DDR3 / 2x2TB HD + 2x256GB SSD $ 139.00 / month New York Subway (2 available) Instant setup – (16 cores) AMD Ryzen 3950X (RD 128GB) 128GB DDR4 / 2x2TB NVMe $ 249.00 / month New York Subway (2 available) Miami, FL (1 available) Los Angeles, CA (0 Available) Instant setup – (16 cores) Dual Xeon E5 2620 V4 (RD 64GB RAID) 64GB DDR4 / 4x2TB HD $ 119.00 / month New York Subway (1 available) Miami, FL (0 available) Los Angeles, CA (0 Available) Configurable – (16 cores) Dual Xeon E5 2630 V3 (Custom Settings) Configurable / Configurable $ 99.00 / month New York Subway (1 available) Miami, FL (0 available) Configurable – (16 cores) Dual Xeon E5 2640 V2 (Custom Settings) Configurable / Configurable $ 269.00 / month New York Subway (1 available) Configurable – (16 cores) Dual Xeon Silver 4108 (Custom Settings) Configurable / Configurable $ 189.00 / month New York Subway (100 available) Miami, FL (100 available) Los Angeles, CA (100 available) Instant setup – (16 cores) Dual Xeon Silver 4108 (RD 128GB) 128GB DDR4 / 2TB NVMe + 2x2TB HD $ 249.00 / month New York Subway (3 available) Miami, FL (0 available) Los Angeles, CA (1 available) Configurable – (20 cores) Dual Xeon Silver 4114 (Custom Settings) Configurable / Configurable $ 259.00 / month New York Subway (100 available) Miami, FL (100 available) Los Angeles, CA (100 available) Configurable – (24 cores) Dual Xeon Silver 4116 (Custom Settings) Configurable / Configurable $ 319.00 / month New York Subway (100 available) Miami, FL (100 available) Los Angeles, CA (100 available) Instant setup – (32 cores) Double AMD Epyc 7281 (RD 256GB) 256GB DDR4 / 2TB NVMe + 2x2TB HD $ 399.00 / month New York Subway (0 available) Miami, FL (1 available) Los Angeles, CA (0 Available) Instant setup – (48 cores) Dual Xeon Plat. 8160 (RD 1TB) 1024GB DDR4 / 2TB NVMe + 4x2TB SSD $ 999.00 / month New York Subway (0 available) Miami, FL (1 available) Los Angeles, CA (0 Available)

python: configuration files for different development environments (Production, Development, Testing)

I am following a guide that specifies how to manage different settings (DB_URI, LOGGER_NAME, etc.) by development environments.

I create a config module that is structured like this

my_projectconfig__init__.py

import os
import sys
from . import setting

# create settings object corresponding to specified env
APP_ENV = os.environ.get('APP_ENV', 'Dev')
_current_config = vars(setting).get(f'{APP_ENV}Config')

# copy attributes to the module for convenience
for atr in (f for f in dir(_current_config) if '__' not in f):
    # environment can override anything
    val = os.environ.get(atr, getattr(_current_config, atr))
    setattr(sys.modules(__name__), atr, val)

my_projectconfigsettings.py

class BaseConfig:
    DEBUG = True
    LOGGER_NAME = 'my_app'


class DevConfig(BaseConfig):
    # In actuality calling a function that fetches a secret 
    SQLALCHEMY_DATABASE_URI = 'sqlite://user.db'


class ProductionConfig(BaseConfig):
    DEBUG = False
    # In actuality calling a function that fetches a secret
    SQLALCHEMY_DATABASE_URI = 'sqlite://user.db'

calling settings

application.py

import config
config.SQLALCHEMY_DATABASE_URI 

This approach is a bit unpredictable for me.
On the one hand, it allows me to easily specify various environments (dev, stage, prod, dev) without having a complex if else logic in me settings.py.

At the other end I don't like to use setattr in sys.modules(__name__)It seems a bit suspicious. What you think ?

8 – Can a Content Entity Type have a package that is a Configuration Entity Type as in the main Drupal contact form?

What is it bundle_entity_type for @ContentEntityType from id = contact_message where contact_message it is @ConfigEntityType?
Can a Type of configuration entity be a package of Type of content entity ?

core / modules / contact / src / Entity / Message.php

/**
 * Defines the contact message entity.
 *
 * @ContentEntityType(
 *   id = "contact_message",
 *   label = @Translation("Contact message"),
 *   label_collection = @Translation("Contact messages"),
 *   label_singular = @Translation("contact message"),
 *   label_plural = @Translation("contact messages"),
 *   label_count = @PluralTranslation(
 *     singular = "@count contact message",
 *     plural = "@count contact messages",
 *   ),
 *   bundle_label = @Translation("Contact form"),
 *   handlers = {
 *     "access" = "DrupalcontactContactMessageAccessControlHandler",
 *     "storage" = "DrupalCoreEntityContentEntityNullStorage",
 *     "view_builder" = "DrupalcontactMessageViewBuilder",
 *     "form" = {
 *       "default" = "DrupalcontactMessageForm"
 *     }
 *   },
 *   admin_permission = "administer contact forms",
 *   entity_keys = {
 *     "bundle" = "contact_form",
 *     "uuid" = "uuid",
 *     "langcode" = "langcode"
 *   },
 *   bundle_entity_type = "contact_form",
 *   field_ui_base_route = "entity.contact_form.edit_form",
 * )
 */
class Message extends ContentEntityBase implements MessageInterface {

core / modules / contact / src / Entity / ContactForm.php
what does it say bundle_of ==> contact_message

/**
 * Defines the contact form entity.
 *
 * @ConfigEntityType(
 *   id = "contact_form",
 *   label = @Translation("Contact form"),
 *   label_collection = @Translation("Contact forms"),
 *   label_singular = @Translation("contact form"),
 *   label_plural = @Translation("contact forms"),
 *   label_count = @PluralTranslation(
 *     singular = "@count contact form",
 *     plural = "@count contact forms",
 *   ),
 *   handlers = {
 *     "access" = "DrupalcontactContactFormAccessControlHandler",
 *     "list_builder" = "DrupalcontactContactFormListBuilder",
 *     "form" = {
 *       "add" = "DrupalcontactContactFormEditForm",
 *       "edit" = "DrupalcontactContactFormEditForm",
 *       "delete" = "DrupalCoreEntityEntityDeleteForm"
 *     }
 *   },
 *   config_prefix = "form",
 *   admin_permission = "administer contact forms",
 *   bundle_of = "contact_message",
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "label"
 *   },
 *   links = {
 *     "delete-form" = "/admin/structure/contact/manage/{contact_form}/delete",
 *     "edit-form" = "/admin/structure/contact/manage/{contact_form}",
 *     "collection" = "/admin/structure/contact",
 *     "canonical" = "/contact/{contact_form}",
 *   },
 *   config_export = {
 *     "id",
 *     "label",
 *     "recipients",
 *     "reply",
 *     "weight",
 *     "message",
 *     "redirect",
 *   }
 * )
 */
class ContactForm extends ConfigEntityBundleBase implements ContactFormInterface {

Sale – Germany KVM Linux VPS with 100 MBps speed | Free configuration | Full root access – VPS9.net | Proxies123.com