compliance with php 7.4

Phoca Download - download manager
Nono9
Phoca Member
Phoca Member
Posts: 11
Joined: 24 Oct 2016, 15:27

compliance with php 7.4

Post by Nono9 »

Since migration my php to 7.4, i have a message with phoca download about set date format :

Warning: Use of undefined constant DATE_FORMAT_LC3 - assumed 'DATE_FORMAT_LC3' (this will throw an Error in a future version of PHP) in /home/***/public_html/administrator/components/com_phocadownload/libraries/phocadownload/file/file.php on line 227

and i saw more websites with the same error.

What can i do ? Many thanks
christine
Phoca Hero
Phoca Hero
Posts: 2734
Joined: 28 Nov 2010, 17:20

Re: compliance with php 7.4

Post by christine »

Hi,

Usually PD works with PHP 7.4. As it's a Warning message only, you can disable it in the configuration.

Which Version of PHP 7.4 exactly are you using? See changelogs: https://www.php.net/ChangeLog-7.php#7.3.18

Thanks for your information, will forward it to Jan.

Kind regards
Christine
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: compliance with php 7.4

Post by Jan »

Hi, thank you for the info, will be changed in next version.

Thank you, Jan
If you find Phoca extensions useful, please support the project
Nono9
Phoca Member
Phoca Member
Posts: 11
Joined: 24 Oct 2016, 15:27

Re: compliance with php 7.4

Post by Nono9 »

Thanks Christine

My version is 7.4.10 and runs on Linux server.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: compliance with php 7.4

Post by Jan »

Hi, should be OK in version 3.2.1:
https://www.phoca.cz/news/1098-phoca-do ... 1-released

Jan
If you find Phoca extensions useful, please support the project
Post Reply