0

I have created a new store and only when placing orderwith that store, I am getting below error:

Deprecated Functionality: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in vendor\/magento\/zend-db\/library\/Zend\/Db\/Adapter\/Abstract.php on line 1044

all other stores works fine.

I have debugged the related files, all quote related data are correctly fetching and I couldn't see any null values anywhere. The store configuration also done same as others.

4
  • Can you add full error stack ? Commented Sep 3 at 6:29
  • I have debugged it and identified that the $table is NULL in the insert() function of vendor/magento/zend-db/library/Zend/Db/Adapter/Abstract.php file when click on the placeorder button at checkout using this store. but place order is working fine at other stores
    – NotEqual
    Commented Sep 3 at 12:26
  • Please try to disable all 3rd party modules and then try to place order, Thank You! Commented Sep 23 at 12:46
  • @NotEqual you might want to check if the sales-sequence-tables for the new store exist. There have been cases where they are missing, making it impossible to checkout Commented Sep 23 at 13:17

1 Answer 1

0

Thank you @simonthesorcerer! I had the same problem and your comment lead me to the right place. Indead the table "sequence_order_2" for storeview with id 2 was missing. But this was not the only thing. Also the entries in the "sales_sequence_meta" table were missing. There you just have to insert them like this:

INSERT INTO `sales_sequence_meta` (`meta_id`, `entity_type`, `store_id`, `sequence_table`) VALUES (NULL, 'order', '2', 'sequence_order_2');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.