I upgraded from 4.4.0 to 5.0, updated the Language Management, made sure that the Server Configuration was ok, and afterwards upgraded to 5.1.
Opening an existing Lead gives the error Call to a member function get() on null. Creating a new Lead gives the same error. Issue is in the field Share with users:. If I select a user or keep it blank, the Lead is saved and can be opened for viewing.
If I select a group to share with, the error occurs. I tried to reproduce this in the developer version git, and got the same error.
Steps to reproduce the behavior:
Error message is given.
New Lead to save the details, or existing Leads to open.
Not applicable. Is reproducible on the developer version on Git.
This applies to Accounts, Leads, and Contacts. And maybe each module that has the Share with users field.
Existing records are not opening at all due to having a value of a group in that field already prior to the upgrade. Furthermore, this has also influence on the Updates section. Hangs on loading and after refreshing, the same error is given as mentioned above. I also experience a huge delay in loading data from Activities from Leads, Accounts and Contacts. I have a feeling that the issue above has to do with it.
Looks like I'm rolling back again to version 4.4.0.
Hi @mariuszkrzaczkowski and @rskrzypczak sorry to write you directly. Do you think it is possible to fix the issue of the Share with users: field and have a v2 available soon of 5.1? (That is, if I'm not doing something wrong myself, of course.)
It would help a lot. Currently, upgrading goes well, but it is impossible to use the system, with the current records and the delays that are caused while loading the tabs.
Otherwise I will have to update all the existing records and assign users instead of the groups. But the Updates sections will still hang every area in the CRM Where Updates are shown, most probably.
Thanks in advance for your efforts, and please let me know if you need more info.
On Monday, we will publish a patch for version 5.1.
I used the ServicePack. Kindly find below a report of the steps I took and the results:
Update to previous comment, point 11:
It seemed that I had a relation to the Leads module in the Contacts Module in [Modules - Relations]. The relation to Leads was showing as a Tab in the Contacts records. Clicking on this tab was hanging completely (probably also logic) and caused especially the Activities tab to delay in showing. I don't know anymore what I did to have the Leads module show as a relation in the Contacts module.
Anyway, once I set the Leads tab in the Contacts on hidden, the speed for the Activities section was back again while working in Contacts.
I then turned on the following setting in config/Developer.php:
/** Adding/Deleting relations between modules. */
public static $CHANGE_RELATIONS = true;
And was able to delete the relation to Leads in the Contacts Module in [Modules - Relations]. And afterwards turned the setting off again.
I'm not an expert in databases, but probably this had to do with there being already a 1:M relationship between the Leads Module and the Contacts Module, and that I probably did something in the past that created another, which resulted in probably a relationship the other way around from Contacts to Leads. (If I'm not mistaken.)
As conclusion, it works very fine at the moment. The issue with the Share with users: is solved, and speed is good again.
Thanks a lot for the efforts and the quick response. Will be waiting for the patch on Monday.
I just encountered one remaining issue in regards to the Updates tab. For the existing Activities, once I open one record for viewing and click on the tab of Updates, the screen hangs and keeps on loading. Same as how it was doing for the Updates tab in the Lead/Account/Contact records previously when the Share with users: field was not fixed yet.
The hanging is not happening for new Activities that I create, even if it is for the same Contact that has an existing activity where the Updates tab hangs.
So the hanging of the Updates Tab is occurring only with existing activities in detail view, while newly created ones do not have this issue at all.
I have attached the system.log for your reference.
Hi @bpabiszczak do you know if any patch is released in coming days? Or else, can I use the ServicePack which is there to update? It worked well, except for the delay in loading the Updates Tab (as explained in my message above also). Your prompt response is much appreciated. Thanks.
Thanks. Will test it out.