Jump to content


Photo

x2crm 7.1 version not working in Php version 7.2

Error 500

  • Please log in to reply
2 replies to this topic

#1 vijayviswa

vijayviswa

    Member

  • Members
  • PipPip
  • 13 posts

Posted 03 April 2019 - 11:15 PM

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.



#2 Attila

Attila

    Advanced Member

  • Members
  • PipPipPip
  • 146 posts
  • LocationJohannesburg, South Africa

Posted 04 April 2019 - 12:20 AM

Hi 

 

Try the following 

 

 

  • photo-thumb-11119.jpg?_r=1522885564
  • Administrators
  • admin.png
  • 75 posts

Posted 28 January 2019 - 07:47 PM

This appears to be caused by a null variable ($hiddenTags) within protected/components/TagCloud.php. We will provide a hotfix patch this week. You can also replace:


  1. if(count($hiddenTags)>0){
  2. $tagParams = AuxLib::bindArray ($hiddenTags);
  3. $params = array_merge ($params, $tagParams);
  4. $str1=" AND tag NOT IN (".implode (',', array_keys ($tagParams)).")";
  5. }else{
  6. $str1="";
  7. }

to:


  1. if(!is_null($hiddenTags) && count($hiddenTags)>0){
  2. $tagParams = AuxLib::bindArray ($hiddenTags);
  3. $params = array_merge ($params, $tagParams);
  4. $str1=" AND tag NOT IN (".implode (',', array_keys ($tagParams)).")";
  5. }else{
  6. $str1="";
  7. }

in protected/components/TagCloud.php

 
  •  

Never allow waiting to become a habit. Live your dreams & take risks. Life is happening NOW !


#3 vijayviswa

vijayviswa

    Member

  • Members
  • PipPip
  • 13 posts

Posted 04 April 2019 - 01:58 AM

Thanks  attila , it's working fine thank you so much. :)







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users