Coder Social home page Coder Social logo

mageplaza / magento-2-same-order-number Goto Github PK

View Code? Open in Web Editor NEW
7.0 8.0 6.0 162 KB

Magento 2 Same Order Number Extension by Mageplaza allows store owners to easily create the ID of Invoice, Shipment and Credit Memo the same as the ID of the original Order. This will significantly contribute to a well-managed order information system.

Home Page: https://www.mageplaza.com/magento-2-same-order-number/

License: Other

PHP 100.00%
magento-2-extension mageplaza

magento-2-same-order-number's Issues

NOT PHP 8.1 compatible: passing null to parameter (explode deprecation)

Preconditions (*)

  1. Magento 2.4.5-p4
  2. PHP 8.1^
  3. /mageplaza/module-same-order-number (any version)

Steps to reproduce (*)

  1. Have magento 2 running on PHP 8.1
  2. Installed module-same-order-number via composer
  3. try to invoice an order

Expected result (*)

  1. Order invoices successfully
  2. no system log errors

Actual result (*)

  1. Order fails to invoice
  2. syslog displays:
    main.CRITICAL: Exception: Deprecated Functionality: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/html/vendor/mageplaza/module-same-order-number/Helper/Data.php on line 45 in /home/html/vendor/magento/framework/App/ErrorHandler.php:62

Solution (*)

Modify /vendor/mageplaza/module-same-number/Helper/Data.php line 45

old:
$this->applyForOption = explode(',', $this->getConfigGeneral('apply', $storeId));

new:
$this->applyForOption = explode(',', (string)$this->getConfigGeneral('apply', $storeId));

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.