Jump to content
X2Community Forums

Recommended Posts

Hi,

 

I am using version 7.1 i have created a custom module in this version.It's working fine. But when i try to fill the form and after the data will show in view format at that time i got this type of error "Error parsing formula. Formula does not begin with "="". Please suggest me to solve this issue in version 7.1.

 

Link to post
Share on other sites

Hi vijayviswa!

 

The issue here could be because one of the fields you are basing your formula off of could be "null" when calculating. The formula will not work if ex) A + B = C, and B is Null. 

Some fixes you can make would be to make the default value something else other than "null"!

 

 

Sincerely,

Justin

Link to post
Share on other sites

Thanks for your reply justin,

 

My php version is 7.2 i already installed x2crm version  7.1 on that php version. But every time i got this error.

 

Error Code: 500
Error Message: count(): Parameter must be an array or an object that implements Countable
Stack Trace: [click to toggle display]
X2Engine Version: 7.1
PHP Version: 7.2.11

 

and also i can't able to run my modules.please suggest me to solve this issue.

Link to post
Share on other sites

No Problem vijayviswa!

 

It does sound like a default issue. When count() is being used it is expecting an array() or an object that is countable. "Null" in this case would not be countable. My suggestion is what ever you are using to count() change the default value in the SQL database to something countable. For example numbers like 0 or 1 :)

 

The reason why this error started to occur is because from PHP7.2 they decided to deprecate count() to not return a 0 but an error for non-countable types. 

https://www.php.net/manual/en/function.count.php

7.2.0 count() will now yield a warning on invalid countable types passed to the array_or_countable parameter.

 

Hope this helps!!

 

Sincerely,

Justin Toyomitsu

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...