Issue on "group user"

Just create a group user, and every time I recall this group here the error:
Warning: Smarty error: unable to read resource: “modules/Users/tpls/DetailViewHeader.tpl” in /mydirectory/htdocs/suitecrm/SuiteCRM-7.9.5/include/Smarty/Smarty.class.php on line 1094
Attached screenshot

Hi. You can post the screenshot on https://pasteboard.co/ and then post the link here.

You really need to tells us something about your system: versions of OS, SuiteCRM and PHP, at the very least.

Then, you can try reproducing this on the demo:

demo.suiteondemand.com

That way we can check if it’s just your problem, or a bug for everyone.

Thanks.

https://pasteboard.co/GNbawaS.png

on demo there isn’t the admin section
This error show me when I goes to admin–>user management and click on a group user (same error when created it)
I use Version 7.9.5
Sugar Version 6.5.24 (Build 509)
PHP 7

If you need admin access, you can use this other demo instead:

https://www.softaculous.com/demos/SuiteCRM

I suspect you might have permissions problems in your system. Is this a new installation?

Have you tried a Quick Repair and Rebuild, a maybe a few other repairs?

You’ve right! on demo https://demos4.softaculous.com/SuiteCRM/
don’t happen
What kind of permission issue could be?

If you don’t set file and directory permissions correctly, when your web server tries to read files, it gets an error.

Please answer my other questions, and try the repairs, so we can continue.

It’s new installation, on 1and1 server hosting. I’ve follow suggestion on change 755 permission for cache, custom, modules, themes, data, upload
I’ve already quick repair, but same issue

  1. Can you please tell me the instructions you see on the bottom of your Admin/Schedulers screen?

  2. Please run this command from the root of your SuiteCRM installation:


ls -al

and post the results here. This will give me a quick glance at your permissions settings. Thanks

1 Like

total 2032
drwx—r-x 19 u84284662 ftpusers 4096 Oct 1 10:43 .
drwx—r-x 3 u84284662 ftpusers 83 Oct 2 08:29 …
-rw----r-- 1 u84284662 ftpusers 1373 Oct 1 06:41 .htaccess
-rw-rw-r-- 1 u84284662 ftpusers 3094 Sep 6 15:29 CODE_OF_CONDUCT.md
-rwxr-xr-x 1 u84284662 ftpusers 2811 Sep 6 15:29 HandleAjaxCall.php
-rwxr-xr-x 1 u84284662 ftpusers 34539 Sep 6 15:29 LICENSE.txt
-rw----r-- 1 u84284662 ftpusers 1285 Oct 1 07:33 Leggimi.txt
drwx—r-x 3 u84284662 ftpusers 118 Oct 1 06:23 ModuleInstall
-rwxr-xr-x 1 u84284662 ftpusers 3737 Sep 6 15:36 README.md
-rwxr-xr-x 1 u84284662 ftpusers 5327 Sep 6 15:29 SugarSecurity.php
-rwxr-xr-x 1 u84284662 ftpusers 5843 Sep 6 15:29 TreeData.php
drwx—r-x 2 u84284662 ftpusers 47 Oct 1 06:23 XTemplate
drwx—r-x 8 u84284662 ftpusers 4096 Oct 1 06:23 Zend
drwxrwxr-x 15 u84284662 ftpusers 4096 Oct 1 07:33 cache
-rwxr-xr-x 1 u84284662 ftpusers 3590 Sep 6 15:29 campaign_tracker.php
-rw-rw-r-- 1 u84284662 ftpusers 462 Sep 6 15:29 composer.json
-rw-rw-r-- 1 u84284662 ftpusers 17908 Sep 6 15:29 composer.lock
-rwxr-xr-x 1 u84284662 ftpusers 10602 Oct 1 07:33 config.php
-rwxrwxr-x 1 u84284662 ftpusers 844 Oct 2 12:40 config_override.php
-rwxr-xr-x 1 u84284662 ftpusers 5052 Sep 6 15:29 cron.php
-rwxr-xr-x 1 u84284662 ftpusers 2446 Sep 6 15:29 crossdomain.xml
drwxrwxr-x 8 u84284662 ftpusers 145 Oct 1 06:42 custom
drwxrwxr-x 3 u84284662 ftpusers 123 Oct 1 06:23 data
-rwxr-xr-x 1 u84284662 ftpusers 2388 Sep 6 15:29 dictionary.php
-rwxr-xr-x 1 u84284662 ftpusers 12541 Sep 6 15:29 download.php
-rwxr-xr-x 1 u84284662 ftpusers 2392 Sep 6 15:29 emailmandelivery.php
-rwxr-xr-x 1 u84284662 ftpusers 4912 Sep 6 15:29 export.php
-rwxr-xr-x 1 u84284662 ftpusers 967627 Sep 6 15:29 files.md5
-rwxr-xr-x 1 u84284662 ftpusers 2371 Sep 6 15:29 ical_server.php
drwx—r-x 58 u84284662 ftpusers 4096 Oct 1 06:23 include
-rwxr-xr-x 1 u84284662 ftpusers 2374 Sep 6 15:29 index.php
drwx—r-x 6 u84284662 ftpusers 4096 Oct 1 06:41 install
-rw----r-- 1 u84284662 ftpusers 18021 Oct 1 06:42 install.log
-rwxr-xr-x 1 u84284662 ftpusers 31896 Sep 6 15:29 install.php
-rwxr-xr-x 1 u84284662 ftpusers 13373 Sep 6 15:29 json_server.php
drwx—r-x 3 u84284662 ftpusers 147 Oct 1 06:23 jssource
-rwxr-xr-x 1 u84284662 ftpusers 2313 Sep 6 15:29 log_file_restricted.html
-rwxr-xr-x 1 u84284662 ftpusers 2376 Sep 6 15:29 maintenance.php
-rw----r-- 1 u84284662 ftpusers 680 Oct 1 07:33 manifest.php
drwx—r-x 2 u84284662 ftpusers 4096 Oct 1 06:23 metadata
drwxrwxr-x 112 u84284662 ftpusers 4096 Oct 1 06:23 modules
-rwxr-xr-x 1 u84284662 ftpusers 2890 Sep 6 15:29 pdf.php
-rw-rw-r-- 1 u84284662 ftpusers 304 Sep 6 15:29 php_version.php
drwxrws— 4 u84284662 ftpusers 46 Oct 1 07:33 portal
drwxrws— 2 u84284662 ftpusers 4096 Oct 2 08:30 public
-rwxr-xr-x 1 u84284662 ftpusers 73 Sep 6 15:29 robots.txt
-rwxr-xr-x 1 u84284662 ftpusers 3588 Sep 6 15:29 run_job.php
drwx—r-x 11 u84284662 ftpusers 143 Oct 1 06:23 service
drwx—r-x 2 u84284662 ftpusers 4096 Oct 1 06:23 soap
-rwxr-xr-x 1 u84284662 ftpusers 4091 Sep 6 15:29 soap.php
-rwxr-xr-x 1 u84284662 ftpusers 154 Sep 6 15:29 sugar_version.json
-rwxr-xr-x 1 u84284662 ftpusers 2263 Sep 6 15:29 sugar_version.php
-rw----r-- 1 u84284662 ftpusers 124640 Oct 1 06:41 sugarcrm.log
-rw----r-- 1 u84284662 ftpusers 638550 Oct 3 11:18 suitecrm.log
-rwxr-xr-x 1 u84284662 ftpusers 169 Sep 6 15:35 suitecrm_version.php
drwxrwxr-x 6 u84284662 ftpusers 79 Oct 1 06:23 themes
drwxrwxr-x 3 u84284662 ftpusers 4096 Oct 3 08:09 upload
-rwxr-xr-x 1 u84284662 ftpusers 2980 Sep 6 15:29 vCard.php
-rwxr-xr-x 1 u84284662 ftpusers 2707 Sep 6 15:29 vcal_server.php

I even numbered my two questions, hoping to get both answers from you, but you still only answered one :slight_smile:

And here’s a number 3, please give me the result of this:

ls -al modules/Users/tpls

Sorry
first question–>
sudo crontab -e -u u84284662
… ed aggiungi la seguente linea al file crontab:

          • cd /homepages/39/d616817840/htdocs/suitecrm/SuiteCRM-7.9.5; php -f cron.php > /dev/null 2>&1 
            

3rd question–>
total 116
drwxrwxr-x 2 u84284662 ftpusers 4096 Oct 1 06:23 .
drwxrwxr-x 7 u84284662 ftpusers 4096 Oct 1 06:23 …
-rwxrwxr-x 1 u84284662 ftpusers 26497 Sep 6 15:29 DetailView.tpl
-rwxrwxr-x 1 u84284662 ftpusers 27051 Sep 6 15:29 EditViewFooter.tpl
-rwxrwxr-x 1 u84284662 ftpusers 3073 Sep 6 15:29 EditViewGroup.tpl
-rwxrwxr-x 1 u84284662 ftpusers 8300 Sep 6 15:29 EditViewHeader.tpl
-rwxrwxr-x 1 u84284662 ftpusers 3216 Sep 6 15:29 QuickEditFooter.tpl
-rwxrwxr-x 1 u84284662 ftpusers 30100 Sep 6 15:29 wizard.tpl

Your permissions seem to be correct.

There was another question several posts ago: Is this a new installation? Or was it working fine before?

If it’s new, you should probably just ask your hosting provider about your error. They should be able to explain why a file isn’t getting served.

Ask them if they’re running modsec, or try disabling it from your CPanel, if you have that option. Some people have reported that this interferes.

New installation.
I don’t think my hosting provider (1and1)
I do not think 1and1 knows how to solve the problem
1and1 doesn’t use cpanel, instead use own proprietary control panel
It’s strange, but other all suitecrm works very well.

also this issue on latest release 7.9.7

I just re-read this whole thread and there’s one question I forgot to ask you: do you have any problem with this, apart from the message on the screen?

Because if you don’t, what you should do is simply turn off error_reporting on php.ini.

Honestly, I have no problem with this warning, except that (I think) I do not work the permissions, roles and security systems for employees. But I’m definitely telling you I’m not good at setting permissions, roles, and groups.
Can you help me with this topic, or give me a hint where to find explanations / manuals about using ect permissions-roles?

Turning off error_reporting is a basic task in administering SuiteCRM, everybody does it, I just forgot to tell you earlier. So do it and don’t worry about this warning any more.

The other issue you’re asking me about, we need to distinguish two things:

  1. Linux ownerships and permissions on your files and directories - let’s assume you got this right unless we have further problems

  2. SuiteCRM Security Suite settings. Yes, it’s complicated. I normally recommend this article, copy that set up and then adjust it to your needs:

https://www.sugaroutfitters.com/docs/securitysuite/example-of-a-typical-setup

1 Like