Jump to content
X2Community Forums

What PHP Modules are required to install/run X2CRM

Recommended Posts

Hi Everyone,


Can you let me know what PHP modules are required to install/run X2CRM? and what php.ini settings are required?


Installation reports no errors (I am using the Softaculous script) - When Try to access the home page, post installation, i get a HTTP 500 Error.


I have tried this on two separate hosting accounts (on the same WHM server) and both fail..... I have also tried the installation on a third hosting account on a different WHM server and that works fine.... The only thing I can think of is that the two platforms may have different PHP Modules enabled and different php.ini settings.


Both platforms are running with PHP 7.0 installed and I have given both 2048MB max memory and 1024MB post/upload size etc.


I enabled the php debug in the failing hosts and get the following output if that helps.





Fatal error: Uncaught Error: Call to a member function getId() on null in /home/comslincrm/public_html/protected/models/Profile.php:687 Stack trace:

#0 /home/comslincrm/public_html/protected/controllers/x2base.php(576): Profile::getWidgets()

#1 /home/comslincrm/public_html/framework/web/filters/CInlineFilter.php(58): x2base->filterSetPortlets(Object(CFilterChain))

#2 /home/comslincrm/public_html/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))

#3 /home/comslincrm/public_html/framework/web/filters/CFilter.php(40): CFilterChain->run()

#4 /home/comslincrm/public_html/framework/web/filters/CFilterChain.php(130): CFilter->filter(Object(CFilterChain))

#5 /home/comslincrm/public_html/framework/web/filters/CFilter.php(40): CFilterChain->run()

#6 /home/comslincrm/public_html/framework/web/filters/CFilterChain.php(130): CFilter->filter(Object(CFilterChain))

#7 /home/comslincrm/public_html/framework/web/CController.php(291): CFilterChain->run()

#8 /home/comslincrm/public_html/framework/web/CCo in /home/comslincrm/public_html/protected/models/Profile.php on line 687


Link to post
Share on other sites

Hi Alt_F4,


Thanks for the input, I have added the contents of my php.ini file below.


I changed the max_input_vars to 5,000 bu the same issue exists. 


When I open the web page, the browser waits (spinning loading icon) for about 5 seconds then displays the HTTP 500 error 


php.ini contents
display_errors = On
max_execution_time = 3000
max_input_time = 6000
max_input_vars = 5000
memory_limit = 2048M
post_max_size = 1024M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php70"
upload_max_filesize = 1024M
zlib.output_compression = Off
Link to post
Share on other sites

Hi Everyone,


I have solved the issue, so sharing the solution......


I had to modify the php.ini file for the WHM server that the cPanel host sits on.


In the php.ini file I had, at line 305, the following:

disable_functions = "show_source, system, shell_exec, passthru, phpinfo, popen, proc_open, ini_set"


I removed the "ini_set" from the disable functions line:

disable_functions = "show_source, system, shell_exec, passthru, phpinfo, popen, proc_open"

Now both the failing installation show the login screen.



  • Like 1
Link to post
Share on other sites
  • 2 months later...

Join the conversation

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

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.

  • Create New...