Skip to content

vt701 Customer Portal Issues

I've been testing the Portal with vtiger 7.0.1 and have come across the following issues:

First Issue: If you are on a server running less than PHP5.5 there is an error in the soap/customerportal.php code at line 1140:

if (!empty($adb->query_result($res, 0, 'cryptmode'))) {

using empty() on anything other than a plain var will always return false. I am not sure what happens on PHP7 but the easy solution is as follows:

if ($adb->query_result($res, 0, 'cryptmode')) {

Second Issue: There is a missing commit which @prasad made a year ago to the main branch to get the nusoap.php library to work with PHP7:

http://code.vtiger.com/vtiger/vtigercrm/commit/9a422f5a0d72c3f0bb49516b1383f8a201b90895

Without this, The portal will not connect when vtiger is on a PHP7 server. Once this patch is applied the connection works.

Third Issue: If the Portal is behind ssl (https:) then the jquery library will not load because it is hardcoded to http in footer.html.

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>

If I change it to https it works but this should really be auto-sensing.

I am sure there will be more issues but at least I can now connect to the Portal