[Vtigercrm-developers] Template silently fails when viewing organizations for any user

Chris Thompson cthompson at moderas.org
Thu Feb 15 17:46:04 GMT 2018


A data problem  ;)

 

From: <vtigercrm-developers-bounces at lists.vtigercrm.com> on behalf of Alex Hall <ahall at autodist.com>
Reply-To: <vtigercrm-developers at lists.vtigercrm.com>
Date: Thursday, February 15, 2018 at 12:44 PM
To: <vtigercrm-developers at lists.vtigercrm.com>
Subject: Re: [Vtigercrm-developers] Template silently fails when viewing organizations for any user

 

Thanks for the suggestions, but it turned out the problem was on Vtiger's end. For whatever reason, the application fails to create two tables when it populates the database, vtiger_cv2role and vtiger_cv2rs. After I created those, the problem vanished, and now all seems to be working as expected. Here's the link where I found this solution:
https://www.vtexperts.com/non-admin-users-cant-see-lists-blank-area-vtiger-7/

 

On Thu, Feb 15, 2018 at 12:11 PM, Chris Thompson <cthompson at moderas.org> wrote:

In fairness, the system is TREMENDOUSLY data sensitive so those scripts are likely the root of the problem.  I’d still recommend finding someone on Upwork to dig in.  Your problem is likely related to ID’s getting out of whack or not being properly set IMHO. Users with admin rights bypass a lot of code which is likely why your problem goes away when adding it to a user. This would take some debugging to trigger the problem and review the output to get to the root cause.

 

From: <vtigercrm-developers-bounces at lists.vtigercrm.com> on behalf of Alex Hall <ahall at autodist.com>
Reply-To: <vtigercrm-developers at lists.vtigercrm.com>
Date: Thursday, February 15, 2018 at 12:03 PM
To: <vtigercrm-developers at lists.vtigercrm.com>


Subject: Re: [Vtigercrm-developers] Template silently fails when viewing organizations for any user

 

I haven't made changes to the system. I have an import script, which uses only web service calls. I'm thinking the problem is something to do with a missing variable in the template, but I haven't modified the template or anything it accesses. I've just been trying to trace where its variables come from so I can try to find which is missing.

As an update, roles seem to play a part. If I give a user admin rights, the problem goes away. If I take admin rights away, the problem returns, no matter which role the user has. Put another way, any admin account works perfectly, and any non-admin account gets the template to break at the line I mentioned previously. I don't want all my users to be admins. Does this help explain what might be happening?

 

On Thu, Feb 15, 2018 at 11:53 AM, Chris Thompson <cthompson at moderas.org> wrote:

You may want to investigate hiring a developer to help you with this.  Since you’ve made changes to the system it’s unlikely you’ll get the help you’re seeking from this list.

 

From: <vtigercrm-developers-bounces at lists.vtigercrm.com> on behalf of lajeesh k <lajeeshk at gmail.com>
Reply-To: <vtigercrm-developers at lists.vtigercrm.com>
Date: Thursday, February 15, 2018 at 11:50 AM
To: vtigercrm-developers <vtigercrm-developers at lists.vtigercrm.com>
Subject: Re: [Vtigercrm-developers] Template silently fails when viewing organizations for any user

 

Try any vtiger debugging methods



Regards,
Lajeesh

Freelance developer / entrepreneur

 

 

On Thu, Feb 15, 2018 at 10:01 PM, Alex Hall <ahall at autodist.com> wrote:

Hi all,
I'm still having no luck regarding the templates. I deleted all the organizations and contacts in the CRM, then deleted a user. I re-added that user through the web interface, ran my sync job to give the user some organizations, and... Failure!

The user is created, the job runs, and the user gets assigned organizations. As soon as I try to view contacts or organizations while logged in as that user, though, the template stops and the table of items is never made. Plus, searching, and most everything on the page, won't work either.

The template in question is layouts/v7/modules/Vtiger/ListViewContents.tpl, as far as I can tell. Line 67 works, and is the very last thing on the page when a browser renders it:
<div class="listColumnFilter {if $CURRENT_CV_MODEL and !($CURRENT_CV_MODEL->isCvEditable())}disabled{/if}"  

Then there's one more new line in the HTML source, and that's it. The page just ends right there. I've spent all morning trying to find where the viewer object being used is given its variables, to see if one is missing, but I can't find that. I've also enabled all error reporting in config.template.php, but that doesn't give me any output. My Nginx log for Vtiger is empty. I've even checked the web console for scripting problems, but there's nothing there either.

I'm at a loss as to what to try next. I'd love to hear any ideas anyone has. Thanks in advance.

 

 

On Wed, Feb 14, 2018 at 4:58 PM, Alex Hall <ahall at autodist.com> wrote:

Thank you for the quick response. I'll look into the code you posted.

You asked why I'm doing it this way. Our iSeries stores each sales rep, and all the accounts for each rep. For every account, there can be up to two contacts. Given that I was creating all the accounts and contacts anyway, it seemed easiest to just go ahead and create the users, too. We don't have a lot of them, but I didn't see the point in manually creating every user when the web service documentation claimed I could automate the entire process. For whatever reason, though, the web service flatly refuses to let me add users. Again, I can create them manually before running the import, but I wanted to automate the process if I could. This way, anytime I re-run the sync file to update with new accounts or contacts, any new reps we may have gotten would be added to the CRM.

 

On Wed, Feb 14, 2018 at 4:46 PM, Alan Lord <alanslists at gmail.com> wrote:

On 14/02/18 21:28, Alex Hall wrote:

Two slightly different questions, then. First, how can I properly create users through the web service, without getting the error that what I'm doing is "not valid for id"? 


This was discussed in a thread this month :-)

http://lists.vtigercrm.com/pipermail/vtigercrm-developers/2018-February/037124.html

Thanks for any thoughts. Please let me know what you need to see of my code, the Vtiger code I'm working with, or anything else.


TBH, all bets are off really when you say you are manually creating users...

I guess the first question is WHY? Why are you creating users like this? Do you have a lot to add or something?

The permissions and access control system depends on the users being created properly and thereby having generated their privilege/sharing files.

Turning on error_reporting in config.inc.php and enabling the debug log and using the Javascript console in your browser will probably point you to where you need to start looking.


HTH

Al

NB: you also didn't say what version of vtiger you are testing.

_______________________________________________
http://www.vtiger.com/




-- 

Alex Hall

Automatic Distributors, IT department

ahall at autodist.com




-- 

Alex Hall

Automatic Distributors, IT department

ahall at autodist.com


_______________________________________________
http://www.vtiger.com/

 

_______________________________________________ http://www.vtiger.com/


_______________________________________________
http://www.vtiger.com/




-- 

Alex Hall

Automatic Distributors, IT department

ahall at autodist.com

_______________________________________________ http://www.vtiger.com/


_______________________________________________
http://www.vtiger.com/




-- 

Alex Hall

Automatic Distributors, IT department

ahall at autodist.com

_______________________________________________ http://www.vtiger.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20180215/c948460e/attachment-0001.html>


More information about the vtigercrm-developers mailing list