opened 02:55AM - 30 Jun 23 UTC
closed 11:04PM - 02 Jul 23 UTC
I need it for https://github.com/tradefurniturecompany/site/issues/243#issuecomm… ent-1612280516, https://github.com/tradefurniturecompany/server/issues/13
See also: https://github.com/tradefurniturecompany/site/issues/244
Step 1
bin/magento maintenance:enable
Step 2
I replaced the root composer.json
file with the file from Magento 2.3.7-p4 .
Then I re-declared already installed third-party packages in the require
section of the file:
"require": {
"magento/product-community-edition": "2.3.6-p1",
"magento/composer-root-update-plugin": "~1.0",
"amasty/base": "1.12.9",
"amasty/feed": "*",
"elgentos/regenerate-catalog-urls": "*",
"fishpig/magento2-wordpress-integration": "*",
"fishpig/magento2-wordpress-integration-yoastseo": "*",
"mageplaza/module-core": "^1.3",
"mailchimp/mc-magento2": "*",
"olegkoval/magento2-regenerate-url-rewrites": "*",
"realexpayments/hpp": "*",
"tradefurniturecompany/blog": "*",
"tradefurniturecompany/core": "*",
"tradefurniturecompany/google-shopping": "*",
"tradefurniturecompany/image": "*",
"tradefurniturecompany/realex": "*",
"tradefurniturecompany/report": "*",
"yireo/magento2-disablelog2": "*"
},
Step 3
rm -rf composer.lock
composer update
Step 4
Then I restored patches in Magento files (which have been overwritten by composer update
).
4.1. lib/web/fotorama/fotorama.js
opened 08:55AM - 19 Sep 19 UTC
closed 02:28PM - 20 Sep 19 UTC
enhancement
[upwork.com/messages/rooms/room_8e141f0c39ea3e5091cd334db37aaef0/story_7085fd0a6… 104307a50f6278dc98372e3](https://www.upwork.com/messages/rooms/room_8e141f0c39ea3e5091cd334db37aaef0/story_7085fd0a6104307a50f6278dc98372e3)
> Not working when I tap on to it
![Screenshot_20190919-070721_Chrome](https://user-images.githubusercontent.com/83204/65229130-909fb200-daed-11e9-9942-3599e2c02d35.jpg)
4.2. pub/errors/default/503.phtml
4.3. vendor/magento/framework/Image/Adapter/Gd2.php
opened 01:04AM - 30 Jun 23 UTC
closed 01:10AM - 30 Jun 23 UTC
magento-2.3.6
[mage2.pro/t/6210](https://mage2.pro/t/6210)
Related to https://github.com/trad… efurniturecompany/site/issues/244
4.4. vendor/magento/framework/Stdlib/Cookie/PhpCookieManager.php
# 2020-10-22 Dmitry Fedyuk https://www.upwork.com/fl/mage2pro
# 1) «Unable to send the cookie. Size of 'mage-messages' is <…> bytes.»
# https://github.com/tradefurniturecompany/site/issues/186
# 2) https://magento.stackexchange.com/a/292945
# 3) https://magento.stackexchange.com/a/314402
# 4) https://magento.stackexchange.com/a/307744
df_log_l($this, ['name' => $name, 'size' => $sizeOfCookie, 'value' => $value]);
opened 10:59PM - 21 Oct 20 UTC
```
/customer/account/loginpost/referer/ahr0chm6ly93d3cudhjhzgvmdxjuaxr1cmvjb21… wyw55lmnvlnvrl2jsb2cvynv5zxjzlwd1awrlcw%2c%2c/
```
```
#1 Magento\Framework\Stdlib\Cookie\PhpCookieManager->setCookie() called at [vendor/magento/framework/Stdlib/Cookie/PhpCookieManager.php:121]
#2 Magento\Framework\Stdlib\Cookie\PhpCookieManager->setPublicCookie() called at [vendor/magento/module-theme/Controller/Result/MessagePlugin.php:140]
#3 Magento\Theme\Controller\Result\MessagePlugin->setCookie() called at [vendor/magento/module-theme/Controller/Result/MessagePlugin.php:95]
#4 Magento\Theme\Controller\Result\MessagePlugin->afterRenderResult() called at [vendor/magento/framework/Interception/Interceptor.php:146]
#5 Magento\Framework\Controller\Result\Redirect\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#6 Magento\Framework\Controller\Result\Redirect\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/Controller/Result/Redirect/Interceptor.php:26]
#7 Magento\Framework\Controller\Result\Redirect\Interceptor->renderResult() called at [vendor/magento/framework/App/Http.php:141]
#8 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:261]
#9 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:40]
```
4.5. vendor/magento/framework/View/Element/Template/File/Validator.php
$realPath = $this->fileDriver->getRealPath($path);
// 2019-10-06 Dmitry Fedyuk https://www.upwork.com/fl/mage2pro
// How to fix the «Invalid template file» / «require_js.phtml» failure of Magento 2.3.x in Windows?
// https://mage2.pro/t/5774
$isWin = 'WIN' === strtoupper(substr(PHP_OS, 0, 3)); /** @var bool $isWin */
foreach ($directories as $directory) {
if (0 === strpos($realPath, !$isWin ? $directory : str_replace('/', DIRECTORY_SEPARATOR, $directory))) {
How to fix the «Invalid template file » / «require_js.phtml » failure for 2.3 ≤ Magento < 2.4.5 in Windows?
4.6. vendor/magento/module-paypal/Model/Api/Nvp.php
/**
* 2020-02-18 Dmitry Fedyuk https://www.upwork.com/fl/mage2pro
* "«PayPal gateway has rejected request.
* You do not have permissions to make this API call» / «#10002: Authentication/Authorization Failed»":
* https://github.com/tradefurniturecompany/site/issues/18
*/
$errors = $this->_extractErrorsFromResponse($response);
if ($errors) {
/**
* 2020-06-24 Dmitry Fedyuk https://www.upwork.com/fl/mage2pro
* I skip logging the
* "[PayPal 10486] «This transaction couldn't be completed. Please redirect your customer to PayPal»"
* error because it is not a bug:
* https://github.com/tradefurniturecompany/site/issues/170#issuecomment-647866496
* https://github.com/mage2pro/core/issues/100
* 2020-08-30
* "PayPal responds on `GetExpressCheckoutDetails` with the error 10002
* («You do not have permissions to make this API call»)": https://github.com/tradefurniturecompany/site/issues/179
*/
if (!in_array(intval(dfa(df_first($errors), 'code')), [10002, 10486]) || 1 !== count($errors)) {
This file has been truncated. show original
opened 03:59PM - 09 Feb 20 UTC
closed 11:46AM - 30 Aug 20 UTC
investigate
PayPal
opened 11:46AM - 30 Aug 20 UTC
closed 12:35PM - 30 Aug 20 UTC
Similar to https://github.com/tradefurniturecompany/site/issues/18
```json
{…
"errors": [
{
"code": "10002",
"message": "You do not have permissions to make this API call (#10002: Authentication/Authorization Failed)."
}
],
"Mage2.PRO": {
"mage2pro/core": "6.7.5",
"Magento": "2.3.2",
"PHP": "7.1.32",
"Referer": "https://www.paypal.com/webapps/hermes?flow=1-P&ulReturn=true&token=EC-60B94231WT913422M&useraction=commit&country.x=GB&locale.x=en_GB",
"URL": "https://www.tradefurniturecompany.co.uk/paypal/express/return/?token=EC-60B94231WT913422M&PayerID=BP4A7L9XRNAG6"
},
"request": {
"BUTTONSOURCE": "Magento_Cart_Community",
"METHOD": "GetExpressCheckoutDetails",
"SUBJECT": "paypal@furnituretrade.co.uk",
"TOKEN": "EC-60B94231WT913422M",
"VERSION": "72.0"
},
"response": {
"ACK": "Failure",
"BUILD": "54737185",
"CORRELATIONID": "f92198b5bec6d",
"L_ERRORCODE0": "10002",
"L_LONGMESSAGE0": "You do not have permissions to make this API call",
"L_SEVERITYCODE0": "Error",
"L_SHORTMESSAGE0": "Authentication/Authorization Failed",
"TIMESTAMP": "2020-07-22T11:24:13Z",
"VERSION": "72.0"
}
}
```
```
Location: vendor/magento/module-paypal/Model/Api/Nvp.php:1259
Callee: df_log_l
*****************1******************
Location: vendor/magento/module-paypal/Model/Api/Nvp.php:845
Callee: Magento\Paypal\Model\Api\Nvp::call
*****************2******************
Location: vendor/magento/module-paypal/Model/Express/Checkout.php:619
Callee: Magento\Paypal\Model\Api\Nvp::callGetExpressCheckoutDetails
*****************3******************
Location: vendor/magento/module-paypal/Controller/Express/AbstractExpress/ReturnAction.php:32
Callee: Magento\Paypal\Model\Express\Checkout::returnFromPaypal
*****************4******************
Location: vendor/magento/framework/Interception/Interceptor.php:58
Callee: Magento\Paypal\Controller\Express\AbstractExpress\ReturnAction::execute
*****************5******************
Location: vendor/magento/framework/Interception/Interceptor.php:138
Callee: Magento\Paypal\Controller\Express\ReturnAction::___callParent
*****************6******************
Location: vendor/magento/framework/Interception/Interceptor.php:153
Callee: Magento\Paypal\Controller\Express\ReturnAction::Magento\Framework\Interception\{closure}
*****************7******************
Location: generated/code/Magento/Paypal/Controller/Express/ReturnAction/Interceptor.php:26
Callee: Magento\Paypal\Controller\Express\ReturnAction::___callPlugins
*****************8******************
Location: vendor/magento/framework/App/Action/Action.php:108
Callee: Magento\Paypal\Controller\Express\ReturnAction::execute
*****************9******************
Location: vendor/magento/framework/Interception/Interceptor.php:58
Callee: Magento\Framework\App\Action\Action::dispatch
*****************10*****************
Location: vendor/magento/framework/Interception/Interceptor.php:138
Callee: Magento\Paypal\Controller\Express\ReturnAction::___callParent
*****************11*****************
Location: vendor/magento/framework/Interception/Interceptor.php:153
Callee: Magento\Paypal\Controller\Express\ReturnAction::Magento\Framework\Interception\{closure}
*****************12*****************
Location: generated/code/Magento/Paypal/Controller/Express/ReturnAction/Interceptor.php:39
Callee: Magento\Paypal\Controller\Express\ReturnAction::___callPlugins
*****************13*****************
Location: vendor/magento/framework/App/FrontController.php:159
Callee: Magento\Paypal\Controller\Express\ReturnAction::dispatch
*****************14*****************
Location: vendor/magento/framework/App/FrontController.php:99
Callee: Magento\Framework\App\FrontController::processRequest
*****************15*****************
Location: vendor/magento/framework/Interception/Interceptor.php:58
Callee: Magento\Framework\App\FrontController::dispatch
*****************16*****************
Location: vendor/magento/framework/Interception/Interceptor.php:138
Callee: Magento\Framework\App\FrontController::___callParent
*****************17*****************
Location: vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:94
Callee: Magento\Framework\App\FrontController::Magento\Framework\Interception\{closure}
*****************18*****************
Location: vendor/magento/framework/Interception/Interceptor.php:135
Callee: Magento\Store\App\FrontController\Plugin\RequestPreprocessor::aroundDispatch
*****************19*****************
Location: vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:73
Callee: Magento\Framework\App\FrontController::Magento\Framework\Interception\{closure}
*****************20*****************
Location: vendor/magento/framework/Interception/Interceptor.php:135
Callee: Magento\PageCache\Model\App\FrontController\BuiltinPlugin::aroundDispatch
*****************21*****************
Location: vendor/magento/framework/Interception/Interceptor.php:153
Callee: Magento\Framework\App\FrontController::Magento\Framework\Interception\{closure}
*****************22*****************
Location: generated/code/Magento/Framework/App/FrontController/Interceptor.php:26
Callee: Magento\Framework\App\FrontController::___callPlugins
*****************23*****************
Location: vendor/magento/framework/App/Http.php:137
Callee: Magento\Framework\App\FrontController::dispatch
*****************24*****************
Location: vendor/magento/framework/App/Bootstrap.php:261
Callee: Magento\Framework\App\Http::launch
*****************25*****************
Location: pub/index.php:40
Callee: Magento\Framework\App\Bootstrap::run
```
4.7. vendor/magento/module-quote/Model/ChangeQuoteControl.php
# 2020-06-30 Dmitry Fedyuk https://www.upwork.com/fl/mage2pro
# «Invalid state change requested
# at vendor/magento/module-quote/Model/QuoteRepository/Plugin/AccessChangeQuoteControl.php:45»:
# https://github.com/tradefurniturecompany/site/issues/171
if (!$isAllowed) {
df_log_l($this, ['getCustomerId' => $quote->getCustomerId(), 'getUserType' => $this->userContext->getUserType()]);
}
opened 06:09AM - 30 Jun 20 UTC
Step 5
opened 10:59PM - 30 Jun 23 UTC
closed 10:41PM - 02 Jul 23 UTC
bug
php
magento-2.3.7
Caused by https://github.com/tradefurniturecompany/site/issues/251
How did I fix «strtotime() expects parameter 1 to be string, null given in vendor/magento/module-security/Model/AdminSessionInfo.php:136 »?
Step 6
opened 11:17PM - 02 Jul 23 UTC
closed 11:30PM - 02 Jul 23 UTC
bug
magento-2.3.7
The `dev/tests/functional` folder is absent in Magento 2.3.7-p4: https://github.… com/magento/magento2/tree/2.3.7-p4/dev/tests
Step 7
opened 12:39AM - 03 Jul 23 UTC
checkout
magento-2.3.7
```
{
"channel": "main",
"context": {
"exception": {}
}… ,
"datetime": {
"date": "2023-07-02 16:57:07.428005",
"timezone_type": 3,
"timezone": "UTC"
},
"level": 500,
"level_name": "CRITICAL",
"Mage2.PRO": {
"IP Address": "84.70.227.69",
"mage2pro/core": "9.5.0",
"Magento": "2.3.7-p4",
"PHP": "7.3.33",
"Post": [],
"Referer": "https://www.tradefurniturecompany.co.uk/onestepcheckout/",
"Request Method": "POST",
"URL": "https://www.tradefurniturecompany.co.uk/rest/default/V1/guest-carts/vLqSlm9ajz1DTHbInxO07uUGGATMuy1H/set-payment-information",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5.1 Safari/605.1.15"
},
"message": "Report ID: webapi-64a1ac63687d5; Message: Property \"DisableTmpl\" does not have accessor method \"getDisableTmpl\" in class \"Magento\\Quote\\Api\\Data\\PaymentInterface\"."
}
Location: vendor/monolog/monolog/src/Monolog/Logger.php:344
Callee: Df\Framework\Log\Dispatcher::handle
*****************1******************
Location: vendor/magento/framework/Logger/Monolog.php:48
Callee: Monolog\Logger::addRecord
*****************2******************
Location: vendor/monolog/monolog/src/Monolog/Logger.php:740
Callee: Magento\Framework\Logger\Monolog::addRecord
*****************3******************
Location: vendor/magento/framework/Webapi/ErrorProcessor.php:209
Callee: Monolog\Logger::critical
*****************4******************
Location: vendor/magento/framework/Webapi/ErrorProcessor.php:153
Callee: Magento\Framework\Webapi\ErrorProcessor::_critical
*****************5******************
Location: vendor/magento/module-webapi/Controller/Rest.php:190
Callee: Magento\Framework\Webapi\ErrorProcessor::maskException
*****************6******************
Location: vendor/magento/framework/Interception/Interceptor.php:58
Callee: Magento\Webapi\Controller\Rest::dispatch
*****************7******************
Location: vendor/magento/framework/Interception/Interceptor.php:138
Callee: Magento\Webapi\Controller\Rest::___callParent
*****************8******************
Location: vendor/magento/framework/Interception/Interceptor.php:153
Callee: Magento\Webapi\Controller\Rest::Magento\Framework\Interception\{closure}
*****************9******************
Location: generated/code/Magento/Webapi/Controller/Rest/Interceptor.php:26
Callee: Magento\Webapi\Controller\Rest::___callPlugins
*****************10*****************
Location: vendor/magento/framework/App/Http.php:116
Callee: Magento\Webapi\Controller\Rest::dispatch
*****************11*****************
Location: vendor/magento/framework/Interception/Interceptor.php:58
Callee: Magento\Framework\App\Http::launch
*****************12*****************
Location: vendor/magento/framework/Interception/Interceptor.php:138
Callee: Magento\Framework\App\Http::___callParent
*****************13*****************
Location: vendor/mage2pro/core/Framework/Plugin/App/Http.php:10
Callee: Magento\Framework\App\Http::Magento\Framework\Interception\{closure}
*****************14*****************
Location: vendor/magento/framework/Interception/Interceptor.php:135
Callee: Df\Framework\Plugin\App\Http::aroundLaunch
*****************15*****************
Location: vendor/magento/framework/Interception/Interceptor.php:153
Callee: Magento\Framework\App\Http::Magento\Framework\Interception\{closure}
*****************16*****************
Location: generated/code/Magento/Framework/App/Http/Interceptor.php:26
Callee: Magento\Framework\App\Http::___callPlugins
*****************17*****************
Location: vendor/magento/framework/App/Bootstrap.php:261
Callee: Magento\Framework\App\Http::launch
*****************18*****************
Location: pub/index.php:40
Callee: Magento\Framework\App\Bootstrap::run
```
Step 8
opened 11:45AM - 24 Jul 23 UTC
closed 09:16PM - 24 Jul 23 UTC
bug
Amasty
![IMG_1603](https://github.com/tradefurniturecompany/site/assets/83204/ea221bfc-… 34cc-4fcc-ac4a-a72a70eb2587)
Step 9
bin/magento setup:upgrade
bin/magento cache:enable
Step 10
I disabled the preinstalled Magento’s crapware :
bin/magento module:disable Vertex_AddressValidationApi
Step 11
rm -rf var/di var/generation generated/*
bin/magento setup:di:compile
bin/magento cache:clean
rm -rf pub/static/* var/cache var/page_cache var/view_preprocessed
bin/magento setup:static-content:deploy \
--area adminhtml \
--theme Magento/backend \
-f en_US en_GB
bin/magento setup:static-content:deploy \
--area frontend \
--theme TradeFurnitureCompany/default \
-f en_GB
bin/magento cache:clean
bin/magento maintenance:disable
Step 12
How to fix «Session size of <…> exceeded allowed session max size of <…>» in Magento 2.3 ≥ 2.3.7 and Magento 2.4 ≥ 2.4.3?
Step 13
Remove the bin/magento setup:cron:run
command call and the update/cron.php
script call from the Cron schedule .
Step 14
bin/magento maintenance:disable