Search…

X3 Photo Gallery Support Forums

Search…
 
Coolhand
Experienced
Topic Author
Posts: 42
Joined: 15 Apr 2018, 05:31

Error

06 May 2018, 07:12

Good Day!

I need some help in getting rid of an error:

Warning: count(): Parameter must be an array or an object that implements Countable in /www/htdocs/w0108e5e/hobby-fotografie.mobi/app/parsers/Twig/Extension/Core.php on line 1199

Live view:
https://www.hobby-fotografie.mobi/blog/


Greetings

Mike
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Error

06 May 2018, 08:14

This is because your server installed new PHP 7.2, which reports “warnings” (not errors) for count() function in TWIG (template engine). I will be updating the TWIG engine in next X3 release (coming in 3-4 weeks).

In the meantime, your options are: 1) downgrade to PHP 7.1, or 2) Disable PHP “warnings”.
 
Coolhand
Experienced
Topic Author
Posts: 42
Joined: 15 Apr 2018, 05:31

Re: Error

06 May 2018, 08:25

Thx for the fast answer, I've downgraded to PHP 7.1 !!

Thx!!!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Error

18 Aug 2018, 04:15

Coolhand wrote:Warning: count(): Parameter must be an array or an object that implements Countable in /www/htdocs/w0108e5e/hobby-fotografie.mobi/app/parsers/Twig/Extension/Core.php on line 1199
This issue should now be resolved in version X3.25.0. Feel free to upgrade to PHP 7.2.
www.photo.gallery/blog/photo-gallery-X3-25/ | forum