Giter Club home page Giter Club logo

fixsalessequence's Introduction

Description

This Magento CLI command will create the proper sales sequence tables for a given store. In various circumstances, these tables are not properly created. This causes checkout ot fail with the error below:

SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name '', query was: INSERT INTO `` () VALUES ()

Usage

Specify a store ID as the main argument, eg:

bin/magento wagento:fixsalessequence 3

Or, use the '--all' option to create missing tables for all stores. The command will not overwrite existing tables.

bin/magento wagento:fixsalessequence --all

Requirements

The command has been tested on Magento 2.2.0 with PHP 7.0. It has not been tested by the author on any other versions.

fixsalessequence's People

Contributors

joeshelton-wagento avatar

Stargazers

Topollo avatar Stephan Hochdörfer avatar Jaya Chandra avatar Steven Kwan avatar  avatar Piotr Siejczuk avatar Anup Wankhede avatar Maurice van der Star avatar MSH avatar cristianlodor avatar Anton avatar

Watchers

 avatar

Forkers

enru

fixsalessequence's Issues

Tables already exist, skipping repair

I get the following when I run this:

mg_sequence_order_8 exists. Skipping.
mg_sequence_invoice_8 exists. Skipping.
mg_sequence_creditmemo_8 exists. Skipping.
mg_sequence_shipment_8 exists. Skipping.

Because I ran it as --all, this occurs for each store ID that I have (1, 5, 6, 7, 8), yet the issue remains. When I attempt payment on an order, I get:

main.CRITICAL: SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name '', query was: INSERT INTO `` () VALUES () {"exception":"[object] (Zend_Db_Statement_Exception(code: 42000): SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name '', query was: INSERT INTO `` () VALUES () at vendor/magento/framework/DB/Statement/Pdo/Mysql.php:110, PDOException(code: 42000): SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name '' at vendor/magento/framework/DB/Statement/Pdo/Mysql.php:91)"} []

Perhaps there's more repairing needed like to sales_sequence_meta and sales_sequence_profile?

Magento 2.2.9 using PHP 7.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.