Slacker
New Member
I have used Fabrik in 7-8 years for online self tests on my site. Ajax counting has worked very well with the calc element. But with the two last releases (including Delta) the Ajax counting does not work on my live site. The spinner rotates but no sum is produced. PHP is 8.1.13 but 8.2 gives identical result. I have enabled error reporting and checked with inspection in browser but no error. However on an almost identical local site with Xampp the counting is OK. PHP 8.1.12
This is example from calculation element:
return
(int)'{aller___butte1_raw}'+
(int)'{aller___butte2_raw}'+
(int)'{aller___butte3_raw}'+
(int)'{aller___butte4_raw}'+
(int)'{aller___butte5_raw}'+
(int)'{aller___butte6_raw}'+
(int)'{aller___butte7_raw}'+
(int)'{aller___butte8_raw}'+
(int)'{aller___butte9_raw}';
This is for Ajax
'{aller___butte1},
{aller___butte2},
{aller___butte3},
{aller___butte4},
{aller___butte5},
{aller___butte6},
{aller___butte7},
{aller___butte8},
{aller___butte9}'
This is example from calculation element:
return
(int)'{aller___butte1_raw}'+
(int)'{aller___butte2_raw}'+
(int)'{aller___butte3_raw}'+
(int)'{aller___butte4_raw}'+
(int)'{aller___butte5_raw}'+
(int)'{aller___butte6_raw}'+
(int)'{aller___butte7_raw}'+
(int)'{aller___butte8_raw}'+
(int)'{aller___butte9_raw}';
This is for Ajax
'{aller___butte1},
{aller___butte2},
{aller___butte3},
{aller___butte4},
{aller___butte5},
{aller___butte6},
{aller___butte7},
{aller___butte8},
{aller___butte9}'