LiteCart 2.4.0-dev install

Developer
Depuis Hungary
Membre depuis juil. 2017

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

tim
Founder
Depuis Sweden
Membre depuis mai 2013
tim

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

Developer
Depuis Hungary
Membre depuis juil. 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
Depuis Hungary
Membre depuis juil. 2017

Collation:
utf8_hungarian_ci

tim
Founder
Depuis Sweden
Membre depuis mai 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
Depuis Hungary
Membre depuis juil. 2017

Yes Tim, so perfect!

LiteCart Fan
Depuis Hungary
Membre depuis juin 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
Depuis Hungary
Membre depuis juin 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
Depuis Sweden
Membre depuis mai 2013
tim

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

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

LiteCart Fan
Depuis Hungary
Membre depuis juin 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!

Ce fil de discussion a été fermé en raison d'une longue inactivité. Il n'est pas possible de publier dessus.
Ce site n'utilise aucun cookie ni aucune technologie de suivi tierce. Nous pensons pouvoir faire mieux que les autres et nous nous soucions vraiment de votre vie privée.