vendor/magento/framework/Logger/Monolog.php
public function addRecord($level, $message, array $context = [])
{
$context[uniqid('trace')] = (new \Exception())->getTraceAsString();
vendor/magento/framework/Logger/Monolog.php
public function addRecord($level, $message, array $context = [])
{
$context[uniqid('trace')] = (new \Exception())->getTraceAsString();
You can apply custom patch files as a post composer script
Use the attached patch files to correct this issue.
mkdir -p patches/composer/magento/module-staging/
nano patches/composer/magento/module-staging/fix-staging-test.patch
<?php | |
error_reporting( error_reporting() & ~E_NOTICE & ~E_WARNING); | |
/** | |
* @param SimpleXMLElement|bool $element | |
* @return string | |
*/ | |
function loadedOkay($element) | |
{ | |
if ($element === true) { |
cut -f 5- -d ':' /var/www/vhosts/project.com/var/log/system.log | sort -n | uniq -c | sort -nr | head -20 | |
Get all 404 requests from log | |
`lecli query --loggroup bes_web --leql 'where(status=404 AND request!=/(.*?)favicon.ico/)' -r 'last 1 hour'` | |
`grep -Eo ".{0,255}query" 404.log | sed -e 's/\", "query//' | cut -d ":" -f9 | sed 's/^.//'` | |
cat reqs.log | sed -e 's/.*userAgent...//' -e 's/.referer.*..//' |
select IF(count(schedule_id) = 0, 'stuck', 'okay') as crons from cron_schedule where finished_at is not null and finished_at >= DATE_SUB(NOW(), INTERVAL 2 HOUR); |
cat /var/log/httpd/access.SSL.log | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -20 |
phpbrew install 5.3.26 +default +dbs +apxs2 | |
phpbrew ext install iconv | |
phpbrew ext install gd | |
phpbrew ext install xdebug 2.2.3 | |
#nano /home/luker/.phpbrew/php/php-5.3.26/var/db/xdebug.ini | |
xdebug.remote_host = 127.0.0.1 | |
xdebug.remote_enable = 1 | |
xdebug.remote_port = 9000 | |
xdebug.remote_handler = dbgp |
select count(*) from catalog_product_index_price_cl where version_id > (select version_id from enterprise_mview_metadata where changelog_name='catalog_product_index_price_cl'); |
cd ~/path/to/folder/ && find . -name '*.php' | sort -d | xargs md5sum | |
#files with spaces | |
cd . && find . -name '*.mp3' | xargs -d '\n' md5sum | sort -k 3 |
protected function _initModules() | |
{ | |
if (!$this->_config->loadModulesCache()) { | |
// Hacks start here! | |
$this->_config->setUseCache(false); | |
// Hacks end here! | |
$this->_config->loadModules(); | |
if ($this->_config->isLocalConfigLoaded() && !$this->_shouldSkipProcessModulesUpdates()) { | |
Varien_Profiler::start('mage::app::init::apply_db_schema_updates'); | |
Mage_Core_Model_Resource_Setup::applyAllUpdates(); |