Giter Club home page Giter Club logo

next-sdk's People

Contributors

givix avatar just-mdk avatar max-shamaev avatar russoz87 avatar skiv avatar svowl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

next-sdk's Issues

create-crud-list.php & PHP5.5 => "preg_replace: the /e modifier is deprecated"

devkit/macros/create-crud-list.php triggers "preg_replace: the /e modifier is deprecated" warning (PHP 5.5)

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in E:\http\xcart\sdk\devkit\macros\core.php on line 228

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in E:\http\xcart\sdk\devkit\macros\core.php on line 227

foreign key constraint on clean_urls table breaks populate database macro during product phase

The macro for populating the database with test data will fail if existing data is present due to the product delete query occuring before the "clean_urls" table is updated. I am not sure how to fix this properly yet due to just starting with the this version of the codebase but the temp work around is to manually clear out any clean_urls with a productid set before re-running the test data script.

Example output:

generate-dump-etalon.php --categories=10 --depth=2 --categoryImage -featuredProducts=30 --products=2000 --attributes=8 --options=5 --optionValues=3 --productImages=3 --wholesalePrices=4 --orders=15000 --orderItems=3

Clear categories ... done
Generate categories .............................................................................................................. done
Recalculate quick flags ... done
Clear products ...
ERROR: "0" (N/A) - An exception occurred while executing 'DELETE FROM xc_products':

SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (rjv_xcart5.xc_clean_urls, CONSTRAINT FK_ED2984B14584665A FOREIGN KEY (product_id) REFERENCES xc_products (product_id))

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.