-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception: Warning: Trying to access array offset on value of type null #4256
Comments
As you can see,, line 733 has no var of type array. I also search "[" on the file, I cannot find anything that could cause the error Trying to access array offset on value of type null. Can you copy paste the function that has line 733? |
Tried to reproduce ... w/o success. |
Mage::helper('core')->copyFieldset('checkout_onepage_quote', 'to_customer', $quote, $customer);
$customer->setPassword($customer->decryptPassword($quote->getPasswordHash()));
$passwordCreatedTime = $this->_checkoutSession->getData('_session_validator_data')['session_expire_timestamp']
- Mage::getSingleton('core/cookie')->getLifetime();
$customer->setPasswordCreatedAt($passwordCreatedTime);
$quote->setCustomer($customer)
->setCustomerId(true);
$quote->setPasswordHash(''); Line 733 here is the |
This should not be there. It was changed in #2916 (https://github.com/OpenMage/magento-lts/releases/tag/v20.1.0-rc4) Have you any rewrites in app/code/local? File from 20.10 release ... https://github.com/OpenMage/magento-lts/blob/v20.10.0/app/code/core/Mage/Checkout/Model/Type/Onepage.php |
Probably I failed to update it to the latest version. I'm using openMage with composer, but despite the fact that my composer.lock shows I'm using What is the correct way to update OpenMage? Sorry about that. |
If you composer.lock says "20.10.2" re-run "composer install". (maybe remove vendor dir before) |
I tried this in many different ways, but it only says my "/var/www/html/app/Mage.php was already patched" and don't update any of the app/code/core or Mage.php. openmage.mp4 |
Replaced app/code/core, Mage.php and lib folders for the ones in the latest version of vendor/openmage/magento-lts. |
Alternatively, if you can list the deprecated errors here, we can try and fix it. |
Sure. This happened when placing an order with OSC.
|
@r-martins You need to install Line 32 in 2111640
|
it is there..
|
Do you have a vendor dir outside openmages? Install clearly says it installs 20.10.2 .... so it loads files from anywhere else (?) |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Additional config that may be relevant:
The text was updated successfully, but these errors were encountered: