Szerver beállítási problémák OSCOM V3-nál
Igyekszem majd, hogy a fejlesztés és a tesztelés során jelentkező szerver beállításra visszavezethető hibákat egy folyamatosan frissített gyűjtemény csokorba szedjem.
TimeZone hiba
Nem volt feltelepítve a szerveren a PHP date_default_timezone_get() utasítás így ezt az error kaptam:
PHP Unknown: date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/Berlin’ for ‘CEST/2.0/DST’ instead in /x/y/demoshop/includes/functions/compatibility.php on line 16
Megoldásom a compatibility.php-ben következő egyenlőre:
//date_default_timezone_set(@date_default_timezone_get());
date_default_timezone_set(‘Europe/Budapest’);
Nincs exec
A hiba a Server Info oldalán jelentketzett
PHP Warning: exec() has been disabled for security reasons in /x/y/demoshop/osCommerce/OM/Core/Site/Admin/Application/ServerInfo/ServerInfo.php on line 33
Megoldásom egyenlőre a hibás és referencia sorokat /* */ közé raktam.
Nem működik a valuta árfolyam
A hiba a valutaárfolyamok frissítésénél jelentkezett, mert nincs allow_url_fopen
PHP Warning: file() function.file http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /x/y/demoshop/osCommerce/OM/Core/Site/Admin/includes/functions/localization.php on line 16
Használjuk inkább a CURL-t, hamár úgyis telepítési feltétel