OpenCart 3: store time_zone

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

To Whom … is West of UTC (UTC-XX)

  • Unable to log-in as the admin
  • API (for ex: update order status) calls are not working

All of the above, it will call framework.php

date_default_timezone_set($config->get('date_timezone'));
... 
// Database 
if ($config->get('db_autostart')) { 
// Sync PHP and DB time zones 
  $db->query("SET time_zone = '" . $db->escape(date('P')) . "'"); 
}

with time_zone from /system/config/default.php

// Date
$_['date_timezone'        = 'UTC'
(more…)

Read CHM files from network storage on Windows

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

I still like PHP documentation in .chm format, and, yes, I have some collectable items in the same format. So, to keep all of them in one place and have access from other computers under Windows 7/8.1: check Intranet settings and update Registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions]
"MaxAllowedZone"=dword:00000001

Source: Read your old CHM files from network storage on Windows 8

OpenCart : PHP 8

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 3.50 out of 5)
Loading...

Backward Incompatible Changes:

  • It’s very rare, but in some old extensions or packages, the array and string offset access syntax using curly braces could be found.  It’s deprecated in PHP 7.4 The easiest way to check is to run global search/replace: 
    (\$[A-z0-9_]* ?)\{([^}]+)\} with $1[$2]

    be careful, some JavaScript files could be modified too.

  • “The @ operator will no longer silence fatal errors … Error handlers that expect error_reporting to be 0 when @ is used, should be adjusted to use a mask check instead”. Replace in /system/framework.php (lines 19-21):
    if (error_reporting() === 0) {
      return false;
    }
    with
    if (!(error_reporting() & $code)) {
      return false; // Silenced
    }
  • Comment line 7 in Environment.php from Twig
    @trigger_error(sprintf('Using the "Twig_Environment" class is deprecated since Twig version 2.7, use "Twig\Environment" instead.'), E_USER_DEPRECATED);

    otherwise it will bloat the the OpenCart error file

Yandex.Metrica