Failed to create portal user

Hello everyone,
I just discovered suiteCRM and I found it great!
I installed it on my joomla-based website without any kind of troubles.
Today I tried to install the Joomla Portal, I followed the steps indicated into AdvancedOpenPortalUserGuide.pdf and everithing seems to work properly, but I received the “Failure to create portal user” message.
Before registering and posting this message I tried different solutions I found in other topics but no one works for me (or it wasn’t my case).
I think the first step must be to indentify the error but… I don’t know where to take a look… can someone tell me where I can find the right log file that let me to identify the error, please?
Some system info: Joomla version 3.6.5 PHP 5.5.36 OS Linux j Database: MySQLi 5.5.5-10.0.20-MariaDB-log
Thanks.

what does it say in the suite logs? Admin > System Settings > View Logs > All

1 Like

are you using https for suitecrm or joomla ?

1 Like

Thank Camo and boombata for your replies and I apologize for my delay answering you.

@Camo


Tue Dec 27 15:14:25 2016 [32666][-none-][FATAL] SECURITY: User authentication for admin failed
Tue Dec 27 15:14:25 2016 [32666][-none-][FATAL] FAILED LOGIN:attempts[1] - admin
Wed Dec 28 10:06:44 2016 [25100][-none-][FATAL] SECURITY: User authentication for admin failed
Wed Dec 28 10:06:44 2016 [25100][-none-][FATAL] FAILED LOGIN:attempts[1] - admin
Wed Dec 28 10:06:51 2016 [25100][-none-][FATAL] SECURITY: User authentication for admin failed
Wed Dec 28 10:06:51 2016 [25100][-none-][FATAL] FAILED LOGIN:attempts[1] - admin

But I suppose those messages aren’t related to my issue… I also tried to create a portal user in different days (in 2017) and they don’t compare into the log

@boombata
I downloaded and installed the SuiteCRM Joomla Portal plugin

Thank you both.

Did you really created a PORTAL USER going to "Contacts / Edit/ Create Portal User ?
Its the CRM Contact that will be a portal user, not a CRM user or an old Joomla user.

Notes:

  • you can’t create a contact in CRMand activate Portal User in a single action.
  • to see the activate

1- Install the Joomla extension and state the CRM URL
2- Go to CRM admin and activate the AOP

3- Then define your Joomla URL

4- In your CRM go to the Contacts module

5- Important: “Do not click the pencil icon to edit!”
Click the contact name to edit

6- Hit “Create Portal User”

After creating the portal user SuiteCRM will create a Joomla user using the information on the contact.

7- Now you need to go to Joomla backend and login with a Joomla admin user

8- Enter Joomla / Users and you will find a new user created from the CRM data
Note: The Joomla username will be the email from the CRM contact.
You will need to change the password so this user can login Joomla frontend

9 - Create a new Joomla item menu for AOP / Cases

10- Then you can enter Joomla frontend and login using user created on #8

11- On Joomla frontend you can now list or create your cases:

Official guide (with some not so clear instructions): https://suitecrm.com/wiki/index.php/Userguide#Advanced_Open_Cases_with_Portal

1 Like

Double check the Joomla extension version you downloaded:
1.1.1 - Old version for J3.x here: https://suitecrm.com/download/suitecrm-joomla-plug-in
2.0.1 - more recent version for Joomla 3 here: https://github.com/salesagility/SuiteCRM-Portal-Joomla
(just download the master with zip)

1 Like

Hi horus68, thanks for your reply.

Step 1 and 2 done.
Step3: http://www.mysite.com/SuiteCRM/index.php?module=Users&action=Login
Step 4 and 5: OK
Step 6: if I click on “Create Portal User” button I receive the error message “Failed to create portal user”: this is why I opened this topic. :frowning: (See attachment)
I stopped here.

I’ll try to download and install again the joomla plugin from the links you gave me asap and I’ll let you know.
In the meantime thank you for your support! :wink:

OK, I had downloaded and installed the new version of Joomla Portal Plugin (2.0.1, see attached Screenshot02.png)… new version, same problem! :lol: :lol: :lol:

So back on the previous questions for other user:

  • Both sites are using http or https ?

Or it could be the devil one “Permissions issues”

Sorry but… what do you mean with “both” sites?
the portal plugin is installed in http:\www.mysite.ext\SuiteCRM
the other one… which is? :blush:
Thanks

Regarding the permission I followed these instructions (from AOP User Guide)


Recommended Settings
Sugar CRM Permissions
If your file permissions are not set correctly it can prevent Advanced OpenPortal (AOP)
from uploading and installing correctly.
For Linux users we recommend the following:
1. Set the whole SugarCRM instance to 755 recursively. (e.g. 'chmod -R 755
<yoursugarinstance>')
2. Then within your SugarCRM instance set the folders cache, custom, data, modules,
& themes to 775 recursively.[ (e.g. 'chmod -R 775 cache custom data modules
themes upload')

but the problems still remain.
(I used 777 just to be sure)

suitecrm and joomla, both are accessible by http , or are you forcing https ?

into suitecrm aop config
you should have : http://joomlaurl

into joomla plugin portal plugin configuration you should have url for suite crm http://www.mysite.ext/SuiteCRM
and username password from a suitecrm user (try with your admin password first)

make sure also that you can send emails from suitecrm and also that you have well selected an email template for user creation email

edit: wait, your exempls shows \ in the url instead of / ie: http:\www.mysite.ext\SuiteCRM\ , typo ?

Thank you boombata.


into suitecrm aop config
 you should have : http://joomlaurl

I have:

Joomla URL: http://www.mysite.ext/SuiteCRM/index.php?module=Users&action=Login

into joomla plugin portal plugin configuration you should have url for suite crm www.mysite.ext/SuiteCRM

I have:

Sugar URL: http://www.mysite.ext/SuiteCRM/index.php?module=Users&action=Login

(same as above)


and username password from a suitecrm user (try with your admin password first)

Done.

Administration -> Email settings: outgoing configuration done and it works.


make sure also that you can send emails from suitecrm 

Yes, I can


and also that you have well selected an email template for user creation email

:stuck_out_tongue: No, I haven’t!!! I tried to fix this point with no success… could you please explain to me which are the steps I have to follow?


edit: wait, your exempls shows \ in the url instead of / ie: http:\\www.mysite.ext\SuiteCRM\ , typo ?

Yes, it is

This is my current situation… I don’t know if this screenshot can help you to understand a little bit better…

@suiteCRMuser Your URL are both wrong.

In Joomla component you need to enter the SuiteCRM URL. Example:

http://www.mysite.ext/suitecrm

In SuiteCRM you need to enter the Joomla URL. Example:

http://www.mysite.ext/joomla

Note: the URL are supposed to be to the main URL so don’t not including things like index.php?module=Users&action=Login

1 Like

Thanks for your support, horus68.
Maybe we (you!) have found where the problem is…
Here attached you can find my ftp server where I have my website.
I changed the SuiteCRM URL in joomla component as follow:

http://www.mysite.ext/SuiteCRM/

(and I think it’s correct…)
Regarding the URL to insert into the SuiteCRM (JoomlaURL) i have some doubt:
I tried

http://www.mysite.ext/public_html/

,

http://www.mysite.ext/

and even

www.mysite.ext/joomla/

… in each case, after a while, I received a 404 error.
I’m frustrated because I cannot understand which is the requested (and correct!) Joomla URL I have to fill in the SuiteCRM field :blush: , but, as I mentioned before, I guess we have found where the problem is…
Thank you for your kind support! :stuck_out_tongue:

You are mixing Web URL and Server folder structure.
public_html is not part of the web URL is the root of your public files on the server. Using your browser you open root folder with a domain URL as in http://www.mysite.ext
The joomla url is the URL you use in your web browser to access the Joomla home page. Your joomla site ins installed in the root folder it will be http://www.mysite.ext
Looking into your FTP pic you had installed Joomla in the root folder (public_html) and the SuiteCRM in a sub-folder of public root.
So your Joomla url is http://www.mysite.ext and the Suite CRM is http://www.mysite.ext/SuiteCRM
I don’t know if using a setup like this will be ok for connection Joomla / SuiteCRM and its beyond the scope here to help you organize your Joomla site and move it also into a sub-folder of public_html … or working with subdomains.

Just a tip… you should not try to learn things with a server online (you will face cache issues, security, permissions and others). You need to start using test servers on your local computer as in Wamp or Xamp

1 Like
Using your browser you open root folder with a domain URL as in www.mysite.ext

I know, thank you.

Your joomla site ins installed in the root folder it will be www.mysite.ext
Looking into your FTP pic you had installed Joomla in the root folder (public_html) and the SuiteCRM in a sub-folder of public root.

OK

So your Joomla url is www.mysite.ext and the Suite CRM is www.mysite.ext/SuiteCRM

This is what I had done firstly. The point is that with those setting I faced (and I’m still facing) the “Failed to create portal user” error. This is why I read many topics on this forum and the available Suite CRM User guides before open this topic. The point is that everything seems to be set up properly but, clearly, there is something that escapes us…

I don't know if using a setup like this will be ok for connection Joomla / SuiteCRM

Joomla in a certain directory and one of its component into a subdirectory doesn’t seems to me a “strange” setup…

its beyond the scope here to help you organize your Joomla site and move it also into a sub-folder of public_html ... or working with subdomains.

I really don’t understand this sentence! I never ask to be helped organizing my Joomla site… my site is online and works properly since a long time, with many components and so on… SuiteCRM seems to me to be a very interesting opensource CRM solution and this is why I decided to install it. SuiteCRM was installed with no problems and it is still working properly. The only issue I’m facing is an error when I try to create a Portal user, nothing more, nothing less.
Maybe other people are facing the same problem and I think that the mission of this forum should be to let people share knowledge… or am I wrong?
So, horus68, I thank you for your time and your support so far, if you have other ideas I’ll be glad to follow your instruction… given that, if you have finished your hints and tips I thank you sincerely and I’ll wait for other user’s ideas.

Solved…
I don’t know if the following is the actual reason (but it’s the only change I’ve done)… the point is that now I had just create my first Portal user! :cheer: :wink: :stuck_out_tongue:
I edited my existing Portal user contact assigning it to an existing Account name, and… it works!
The point is that the “Account name” field is not mandatory when you create a new contact…
Thank you all (horus68 in particular) for your time and support! I hope this thread can be useful for someone else!
Congrats to whole SuiteCRM team for their amazing job! :slight_smile:

I’m astonished…
I tried to create a second portal user and the “nightmare” restart…
I’ve had enough… I will search for an alternative…