Advanced Open Portal and Joomla - Failed to Create Portal User (Again)

Hi, not even sure where to start here. I wish there was a guide for writing these as to what you want rather than having to wait extra long for a reply. I’ve previously had a successful Joomla portal setup. All as i’m getting, by way of a standard error is “Failed to create portal user” - it would be really helpful if the developers could please make the error more descriptive, and, even better, publish something on troubleshooting it…

I’ve checked the debug (set at error level) - there is nothing. At the more verbose levels, I don’t know what i’m looking for. If someone could give me tips, that would be great please.

As far as my own website error logs go - I hope this is useful:

[Mon Aug 19 19:52:06.682271 2019] [fcgid:warn] [pid 10326] [client 192.168.1.254:34010] mod_fcgid: stderr: PHP Notice:  Only variables should be assigned by reference in /var/www/clients/client1/web12/web/croydonfix/repairtool/portal/components/com_advancedopenportal/controller.php on line 157
[Mon Aug 19 19:52:06.684081 2019] [fcgid:warn] [pid 13572] [client 192.168.1.254:35226] mod_fcgid: stderr: PHP Warning:  file_get_contents(https://www.croydondrive.org.uk/croydonfix/repairtool/portal//index.php?option=com_advancedopenportal&task=create&sug=263f6f72-0a26-58f7-b935-5d5aeedb673d): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error, referer: https://www.croydondrive.org.uk/croydonfix/repairtool/index.php?action=ajaxui
[Mon Aug 19 19:52:06.684140 2019] [fcgid:warn] [pid 13572] [client 192.168.1.254:35226] mod_fcgid: stderr:  in /var/www/clients/client1/web12/web/croydonfix/repairtool/modules/Contacts/createPortalUser.php on line 40, referer: https://www.croydondrive.org.uk/croydonfix/repairtool/index.php?action=ajaxui
[Mon Aug 19 19:52:06.684147 2019] [fcgid:warn] [pid 13572] [client 192.168.1.254:35226] mod_fcgid: stderr: PHP Notice:  Trying to get property 'success' of non-object in /var/www/clients/client1/web12/web/croydonfix/repairtool/modules/Contacts/createPortalUser.php on line 42, referer: https://www.croydondrive.org.uk/croydonfix/repairtool/index.php?action=ajaxui
[Mon Aug 19 19:52:06.684153 2019] [fcgid:warn] [pid 13572] [client 192.168.1.254:35226] mod_fcgid: stderr: PHP Notice:  Trying to get property 'error' of non-object in /var/www/clients/client1/web12/web/croydonfix/repairtool/modules/Contacts/createPortalUser.php on line 43, referer: https://www.croydondrive.org.uk/croydonfix/repairtool/index.php?action=ajaxui
[Mon Aug 19 19:54:10.374169 2019] [fcgid:warn] [pid 12763] [client 192.168.1.254:34058] mod_fcgid: stderr: PHP Notice:  Only variables should be assigned by reference in /var/www/clients/client1/web12/web/croydonfix/repairtool/portal/components/com_advancedopenportal/controller.php on line 157
[Mon Aug 19 19:54:10.375758 2019] [fcgid:warn] [pid 13951] [client 192.168.1.254:35316] mod_fcgid: stderr: PHP Warning:  file_get_contents(https://www.croydondrive.org.uk/croydonfix/repairtool/portal//index.php?option=com_advancedopenportal&task=create&sug=263f6f72-0a26-58f7-b935-5d5aeedb673d): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error, referer: https://www.croydondrive.org.uk/croydonfix/repairtool/index.php?action=ajaxui
[Mon Aug 19 19:54:10.375780 2019] [fcgid:warn] [pid 13951] [client 192.168.1.254:35316] mod_fcgid: stderr:  in /var/www/clients/client1/web12/web/croydonfix/repairtool/modules/Contacts/createPortalUser.php on line 40, referer: https://www.croydondrive.org.uk/croydonfix/repairtool/index.php?action=ajaxui
[Mon Aug 19 19:54:10.375786 2019] [fcgid:warn] [pid 13951] [client 192.168.1.254:35316] mod_fcgid: stderr: PHP Notice:  Trying to get property 'success' of non-object in /var/www/clients/client1/web12/web/croydonfix/repairtool/modules/Contacts/createPortalUser.php on line 42, referer: https://www.croydondrive.org.uk/croydonfix/repairtool/index.php?action=ajaxui
[Mon Aug 19 19:54:10.375792 2019] [fcgid:warn] [pid 13951] [client 192.168.1.254:35316] mod_fcgid: stderr: PHP Notice:  Trying to get property 'error' of non-object in /var/www/clients/client1/web12/web/croydonfix/repairtool/modules/Contacts/createPortalUser.php on line 43, referer: https://www.croydondrive.org.uk/croydonfix/repairtool/index.php?action=ajaxui
[Mon Aug 19 19:58:43.701466 2019] [fcgid:warn] [pid 13926] [client 192.168.1.254:34154] mod_fcgid: stderr: PHP Notice:  Only variables should be assigned by reference in /var/www/clients/client1/web12/web/croydonfix/repairtool/portal/components/com_advancedopenportal/controller.php on line 157
[Mon Aug 19 19:58:43.703197 2019] [fcgid:warn] [pid 13952] [client 192.168.1.254:35550] mod_fcgid: stderr: PHP Warning:  file_get_contents(https://www.croydondrive.org.uk/croydonfix/repairtool/portal//index.php?option=com_advancedopenportal&task=create&sug=263f6f72-0a26-58f7-b935-5d5aeedb673d): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error, referer: https://www.croydondrive.org.uk/croydonfix/repairtool/index.php?action=ajaxui
[Mon Aug 19 19:58:43.703227 2019] [fcgid:warn] [pid 13952] [client 192.168.1.254:35550] mod_fcgid: stderr:  in /var/www/clients/client1/web12/web/croydonfix/repairtool/modules/Contacts/createPortalUser.php on line 40, referer: https://www.croydondrive.org.uk/croydonfix/repairtool/index.php?action=ajaxui
[Mon Aug 19 19:58:43.703234 2019] [fcgid:warn] [pid 13952] [client 192.168.1.254:35550] mod_fcgid: stderr: PHP Notice:  Trying to get property 'success' of non-object in /var/www/clients/client1/web12/web/croydonfix/repairtool/modules/Contacts/createPortalUser.php on line 42, referer: https://www.croydondrive.org.uk/croydonfix/repairtool/index.php?action=ajaxui
[Mon Aug 19 19:58:43.703240 2019] [fcgid:warn] [pid 13952] [client 192.168.1.254:35550] mod_fcgid: stderr: PHP Notice:  Trying to get property 'error' of non-object in /var/www/clients/client1/web12/web/croydonfix/repairtool/modules/Contacts/createPortalUser.php on line 43, referer: https://www.croydondrive.org.uk/croydonfix/repairtool/index.php?action=ajaxui
root@jacob2:/var/www/clients/client1/web12/log# 

Just hoping this one isn’t something to drag on as i’m down in the dumps anyway - but- seriously, anyone that takes the time to help - seriously - thank you :slight_smile:

Fixed - my curl modules were stuffed. For anyone else - MAKE SURE your curl is working properly - it’s essential. It would be really good if this point could be added to all the various instructions for installing the portal to save a LOT of people a LOT of time :-).

Thanks. Resolved.

Well thanks for posting your solution, will be helpful for a lot of people!

If you like my post solution please do increase my thanks and karma rating - thanks :slight_smile:

@indieben2:

Could you share with everyone what you did precisely to solve your issue. Just syaing that you have fixed it and that your “curl modules were stuffed” will not help anyone i the future!

Thanks for your message.

Well this very much depends on what you might have done wrong on your specific web server, whether you have administrative access to your web server and what operating system you are using on your server. For all of these reasons, the starting point is to check that the PHP curl mod is working properly. For this, if you have FTP access to your server, you could upload a PHP info file and if your server is managed on your behalf (for example by a web hosting company) then you should ask them to check that curl is working properly. If you manage the server yourself and you are not sure how to perform checks, I would recommend doing some Googling and, failing that, ask on the IRC Freenode network in the server operating system channel relevant to your server.

As an aside, make sure that your cron and associated jobs are set up properly a) as per your server operating system requirements and b) as per the Suite CRM manual.

hi I have a same error faild to create portal user,

please help me , how to resolve, please give a solution step by step

Hi,

Please explain what you have done to install the portal please.

Thanks.

Hi sir,

I am using suitcrm 7.11.8
and joomla 3.9.11
i have installed suitecrm aop component extension in joomla successfully.
configured joomla site address in suitecrm also, but when i try to creates portal in suitecrm contact then get a error , faild to create portal user.

It doesn’t sound like you’ve configured the Joomla component then!