Skip to content

Instantly share code, notes, and snippets.


Piotr Kaminski piotrekkaminski

  • Magento, an Adobe company
  • Austin, TX
View GitHub Profile
piotrekkaminski / MPERF-10565.diff
Created Apr 8, 2019
MPERF-10565.diff - logging to a file that does not exist issue
View MPERF-10565.diff
diff --git a/app/Mage.php b/app/Mage.php
index 0e650eebb4f..9c18e222689 100644
--- a/app/Mage.php
+++ b/app/Mage.php
@@ -798,9 +798,9 @@ public static function log($message, $level = null, $file = '', $forceLog = fals
(string) self::getConfig()->getNode('dev/log/allowedFileExtensions', Mage_Core_Model_Store::DEFAULT_CODE)
- $logValidator = new Zend_Validate_File_Extension($_allowedFileExtensions);
$logDir = self::getBaseDir('var') . DS . 'log';
View MPERF-10509.diff
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php
index d402b7512dd..8f58e873b46 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php
@@ -19,7 +19,7 @@ class Mage_Adminhtml_Block_Dashboard_Graph extends Mage_Adminhtml_Block_Dashboar
* Api URL
- const API_URL = '';
+ const API_URL = '';

Fixed a Redis configuration issue that incorrectly enabled session locking for Magento Commerce v2.1.11+ and v2.2.1+, which can cause slow performance and timeouts. Now, session locking is disabled by default. The issue was caused by a change in the default behavior of the disable_locking parameter introduced in v1.3.4 of the Redis session handler package, colinmollenhour/php-redis-session-abstract. Background:

In Magento 2.2.1+, 2.1.11+, 2.3.0+ colinmollenhour/php-redis-session-abstract composer dependency has been updated and as a result Redis setting "disable_locking" became disabled. It causes a lot of issues (list of customer tickets) To Do:

This setting should be enabled for all clients by default: in the php-redis-session-abstract-1.3.3 and earlier versions "disable_locking=1" means "use locking" ( in the php-redis-session-abstract-1.3.4 and higher "disable_locking=1" means "do not use lo

# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
piotrekkaminski / invalid_session_fix.patch
Created Mar 14, 2018
Revert guest checkout account registration problem introduced by patch SUPEE-10570. Note: this does not protect against security issues related to session lifetime.
View invalid_session_fix.patch
diff --git a/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php b/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
index 59b3ea8..35155f1 100644
--- a/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
+++ b/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
@@ -485,7 +485,7 @@ class Mage_Core_Model_Session_Abstract_Varien extends Varien_Object
&& isset($validatorData[self::VALIDATOR_PASSWORD_CREATE_TIMESTAMP])
&& isset($sessionData[self::VALIDATOR_SESSION_EXPIRE_TIMESTAMP])
- > $sessionData[self::VALIDATOR_SESSION_EXPIRE_TIMESTAMP] - $this->getCookie()->getLifetime()
piotrekkaminski / PR38.patch
Last active Dec 1, 2017
PR38 - Jan14 hackathon
View PR38.patch
From 3fdfd8454165c89d002da943e79d7aff9c1f560d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jose=CC=81=20Manuel=20Marti=CC=81nez=20Garci=CC=81a?=
Date: Thu, 20 Feb 2014 00:05:06 +0000
Subject: [PATCH] The fields taxvat and email have been added to
shoppingCartCustomerEntity and shoppingCartCustomerAddressEntity
respectively, inside SOAP API files for Checkout
app/code/core/Mage/Checkout/etc/wsdl.xml | 2 ++
docker-compose exec --user magento2 web bash -c "cd /var/www/magento2 ; $*"
piotrekkaminski / mperf-7817.patch
Created Mar 3, 2017
MPERF-7817: First static block cached is always shown
View mperf-7817.patch
From 58721d4cfd3ac47617af97f2670b54398f3e886f Mon Sep 17 00:00:00 2001
From: Mykola Palamar <>
Date: Fri, 10 Jul 2015 19:30:25 +0300
Subject: [PATCH] Fixed MPERF-7464: CMS static block loads content of another
block saved to blocks HTML output cache
app/code/core/Mage/Cms/Block/Block.php | 20 ++++++++++++++++++++
app/code/core/Mage/Cms/Block/Widget/Block.php | 16 ++++++++++++++++
2 files changed, 36 insertions(+)
View gist:bb3967a666ae03ca7d9766252d19376e
[Technical Debt] Remove cachestatus.json implementation from GeneratedFiles after a stable number of releases.
In scope of MAGETWO-52000 we introduced .cachestatus.json file to disable/clean and enable caches during web upgrade. This is redundant, since starting 2.1 there are jobs to do these tasks, but previous versions did not have this ability. Hence once 2.1 is fairly well established, this change can be reverted.
Where MAGETWO-5200 is:
[Github][PR]impossible to see what is wrong with cron - unhelpful error message - Github #3189
piotrekkaminski /
Last active Apr 10, 2017
Docker Beta Installation Info & FAQ
You can’t perform that action at this time.