LiteCart 2.4.0-dev install

Developer
Od Hungary
Użytkownik od lip 2017

The system requirements for me indicate an error in PHP 7.4.21.

tim
Founder
Od Sweden
Użytkownik od maj 2013
tim

Thanks, already patched in github.
Now updated with the latest github build of today.

Developer
Od Hungary
Użytkownik od lip 2017

Something is not right yet. The front end page is working properly, but there is a problem with the admin page.

Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in C:\xampp\htdocs\24\includes\library\lib_language.inc.php:299 Stack trace: #0 C:\xampp\htdocs\24\includes\library\lib_language.inc.php(414): language::{closure}(Object(DateTime), '%b') #1 [internal function]: language::{closure}(Array) #2 C:\xampp\htdocs\24\includes\library\lib_language.inc.php(416): preg_replace_callback('/(?<!%)(%[a-zA-...', Object(Closure), '%b') #3 C:\xampp\htdocs\24\admin\graphs.widget\graphs.inc.php(34): language::strftime('%b', Object(DateTime)) #4 C:\xampp\htdocs\24\admin\index.php(87): include('C:\xampp\htdocs...') #5 {main} thrown in C:\xampp\htdocs\24\includes\library\lib_language.inc.php on line 299

Developer
Od Hungary
Użytkownik od lip 2017

Collation:
utf8_hungarian_ci

tim
Founder
Od Sweden
Użytkownik od maj 2013
tim

PHP 8.1 dumps strftime() and the only option is the Intl PHP extension installed.
The installer checks for PHP extensions but I need to add that to the updater as well.
Enable Intl in your php.ini and you should be good.

Developer
Od Hungary
Użytkownik od lip 2017

Yes Tim, so perfect!

LiteCart Fan
Od Hungary
Użytkownik od cze 2022

Hello,

I don't know what might have happened, but the admin gives me an error as well. During installation, I also set the extensions variable. It worked perfectly for a few days. 

Fatal error: Uncaught Error: Class "IntlDateFormatter" not found in C:\xampp\htdocs\XYZ\includes\library\lib_language.inc.php:303 Stack trace: #0 C:\xampp\htdocs\XYZ\includes\library\lib_language.inc.php(418): language::{closure}(Object(DateTime), '%b') #1 [internal function]: language::{closure}(Array) #2 C:\xampp\htdocs\XYZ\includes\library\lib_language.inc.php(420): preg_replace_callback('/(?<!%)(%[a-zA-...', Object(Closure), '%b') #3 C:\xampp\htdocs\XYZ\admin\graphs.widget\graphs.inc.php(34): language::strftime('%b', Object(DateTime)) #4 C:\xampp\htdocs\XYZ\admin\index.php(87): include('C:\xampp\htdocs...') #5 {main} thrown in C:\xampp\htdocs\XYZ\includes\library\lib_language.inc.php on line 303

In principle, I did not make any changes.

LiteCart Fan
Od Hungary
Użytkownik od cze 2022

php.ini 

extension=bz2
extension=curl
;extension=ffi
;extension=ftp
extension=fileinfo
extension=gd
extension=gettext
;extension=gmp
;extension=imap
;extension=ldap
extension=mbstring
extension=exif      ; Must be after mbstring as it depends on it
extension=mysqli
;extension=oci8_12c  ; Use with Oracle Database 12c Instant Client
;extension=oci8_19  ; Use with Oracle Database 19 Instant Client
;extension=odbc
;extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
extension=pdo_sqlite
;extension=pgsql
;extension=shmop
extension=intl

tim
Founder
Od Sweden
Użytkownik od maj 2013
tim

Did you restart the web server for changes to have effect?

Can you confirm the extension is loaded with phpinfo(); ?

LiteCart Fan
Od Hungary
Użytkownik od cze 2022

Hello Tim!

Thank you for your reply. I reinstalled xampp and also restored the files and database from backup, it has been working again ever since.

Have a nice day!

Ten wątek został zamknięty z powodu zbyt długiej nieaktywności. Przesyłanie nowych odpowiedzi nie jest teraz możliwe.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.