Undefined

Hi,

I notice that there are a lot of “undefined” in different area, what exactly is undefined in SuiteCRM?

For instance, when I create a new user, there is a “undefined” showing in the User Type? Something is wrong?

Regards

Its because of permission issue

check this : https://suitecrm.com/forum/suitecrm-7-0-discussion/15171-how-know-if-permission-issue#51172

Hi,

Thanks for your advise but I have followed the instruction and make changes to the following permission according to https://suitecrm.com/wiki/index.php/Installation, how should I check further what still to be done about the permission?

Set the following permissions on the SuiteCRM directory(Linux):
sudo chown -R www-data:www-data .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload config_override.php

Thanks.

Hi,

Is there some script that can be used to check the permission and recommend the correction? I have seen this kind of script previously when I install some software to m server some time back ago.

Hi, let’s get your permissions fixed.

  1. can you please post the results of this command run from the SuiteCRM root directory:
ls -al
  1. Also, go into Admin / Schedulers and tell me the instructions that you find at the bottom (about setting up cron jobs).

  2. Is this shared hosting or do you own the server? Do you have SSH access? As root?

  1. I am getting the technician to run command at this moment.
  2. Below is the instruction but I am sure I have added the line * * * * * cd /home/ultrav/public_html/uva.my/crm; php -f cron.php > /dev/null 2>&1

In order to run SuiteCRM Schedulers, edit your web server user’s crontab file with this command:
sudo crontab -e -u ultrav
… and add the following line to the crontab file:

          • cd /home/ultrav/public_html/uva.my/crm; php -f cron.php > /dev/null 2>&1 
            
  1. This is a shared hosting with SSH access, not as root

Hi,

================================================================
ls -al

root@grebes [/home/ultrav/public_html/uva.my/crm]# ll
total 3156
drwxr-xr-x 18 ultrav ultrav 4096 Jul 28 01:28 ./
drwxr-xr-x 7 ultrav ultrav 4096 Jul 28 01:01 …/
drwxrwxr-x 15 ultrav ultrav 4096 Jul 27 17:38 cache/
-rw-r–r-- 1 ultrav ultrav 3590 Jul 25 16:20 campaign_tracker.php
-rw-r–r-- 1 ultrav ultrav 80818 Jul 28 01:28 chperms.php
-rw-r–r-- 1 ultrav ultrav 3094 Jul 25 16:20 CODE_OF_CONDUCT.md
-rw-r–r-- 1 ultrav ultrav 462 Jul 25 16:20 composer.json
-rw-r–r-- 1 ultrav ultrav 17908 Jul 25 16:20 composer.lock
-rwxrwxr-x 1 ultrav ultrav 828 Jul 27 23:14 config_override.php*
-rwxr-xr-x 1 ultrav ultrav 10100 Jul 25 17:22 config.php*
-rw-r–r-- 1 ultrav ultrav 5052 Jul 25 16:20 cron.php
-rw-r–r-- 1 ultrav ultrav 2446 Jul 25 16:20 crossdomain.xml
drwxrwxr-x 12 ultrav ultrav 4096 Jul 27 17:38 custom/
drwxrwxr-x 3 ultrav ultrav 4096 Jul 25 16:21 data/
-rw-r–r-- 1 ultrav ultrav 2388 Jul 25 16:20 dictionary.php
-rw-r–r-- 1 ultrav ultrav 12541 Jul 25 16:20 download.php
-rw-r–r-- 1 ultrav ultrav 2392 Jul 25 16:20 emailmandelivery.php
-rw-r–r-- 1 ultrav ultrav 942136 Jul 28 09:33 error_log
-rw-r–r-- 1 ultrav ultrav 4912 Jul 25 16:20 export.php
-rw-r–r-- 1 ultrav ultrav 967627 Jul 25 16:20 files.md5
-rw-r–r-- 1 ultrav ultrav 2811 Jul 25 16:20 HandleAjaxCall.php
-rw-r–r-- 1 ultrav ultrav 1661 Jul 28 00:56 .htaccess
-rw-r–r-- 1 ultrav ultrav 2371 Jul 25 16:20 ical_server.php
drwxr-xr-x 2 ultrav ultrav 4096 Jul 25 17:34 images/
drwxr-xr-x 58 ultrav ultrav 4096 Jul 27 07:56 include/
-rw-r–r-- 1 ultrav ultrav 2374 Jul 25 16:20 index.php
drwxr-xr-x 6 ultrav ultrav 4096 Jul 25 17:22 install/
-rw-r–r-- 1 ultrav ultrav 18092 Jul 28 03:05 install.log
-rw-r–r-- 1 ultrav ultrav 30844 Jul 25 16:20 install.php
-rw-r–r-- 1 ultrav ultrav 13373 Jul 25 16:20 json_server.php
drwxr-xr-x 3 ultrav ultrav 4096 Jul 25 16:27 jssource/
-rw-r–r-- 1 ultrav ultrav 34539 Jul 25 16:20 LICENSE.txt
-rw-r–r-- 1 ultrav ultrav 2313 Jul 25 16:20 log_file_restricted.html
-rw-r–r-- 1 ultrav ultrav 2376 Jul 25 16:20 maintenance.php
drwxr-xr-x 2 ultrav ultrav 4096 Jul 25 16:21 metadata/
drwxr-xr-x 3 ultrav ultrav 4096 Jul 25 16:22 ModuleInstall/
drwxrwxr-x 113 ultrav ultrav 4096 Jul 27 17:38 modules/
-rw-r–r-- 1 ultrav ultrav 2890 Jul 25 16:20 pdf.php
-rw-r–r-- 1 ultrav ultrav 304 Jul 25 16:20 php_version.php
-rw-r–r-- 1 ultrav ultrav 3737 Jul 25 16:20 README.md
-rw-r–r-- 1 ultrav ultrav 73 Jul 25 16:20 robots.txt
-rw-r–r-- 1 ultrav ultrav 3588 Jul 25 16:20 run_job.php
drwxr-xr-x 11 ultrav ultrav 4096 Jul 25 16:26 service/
drwxr-xr-x 2 ultrav ultrav 4096 Jul 25 16:21 soap/
-rw-r–r-- 1 ultrav ultrav 4091 Jul 25 16:20 soap.php
-rw-r–r-- 1 ultrav ultrav 124640 Jul 25 17:22 sugarcrm.log
-rw-r–r-- 1 ultrav ultrav 5327 Jul 25 16:20 SugarSecurity.php
-rw-r–r-- 1 ultrav ultrav 154 Jul 25 16:20 sugar_version.json
-rw-r–r-- 1 ultrav ultrav 2263 Jul 25 16:20 sugar_version.php
-rw-r–r-- 1 ultrav ultrav 724367 Jul 28 07:55 suitecrm.log
-rw-r–r-- 1 ultrav ultrav 169 Jul 25 16:20 suitecrm_version.php
drwxr-xr-x 6 ultrav ultrav 4096 Jul 25 16:31 themes/
-rw-r–r-- 1 ultrav ultrav 5843 Jul 25 16:20 TreeData.php
-rwxr-xr-x 1 ultrav ultrav 9292 Jul 28 01:35 upgradeWizard.log*
drwxrwxr-x 5 ultrav ultrav 4096 Jul 28 00:54 upload/
-rw-r–r-- 1 ultrav ultrav 2707 Jul 25 16:20 vcal_server.php
-rw-r–r-- 1 ultrav ultrav 2980 Jul 25 16:20 vCard.php
drwxr-xr-x 2 ultrav ultrav 4096 Jul 25 16:21 XTemplate/
drwxr-xr-x 8 ultrav ultrav 4096 Jul 25 16:26 Zend/

  1. Admin / Schedulers and tell me the instructions as follow:

In order to run SuiteCRM Schedulers, edit your web server user’s crontab file with this command:
sudo crontab -e -u ultrav
… and add the following line to the crontab file:

          • cd /home/ultrav/public_html/uva.my/crm; php -f cron.php > /dev/null 2>&1

================================================================
crontab -e -u ultrav

          • cd /home/ultrav/public_html/uva.my/crm; php -f cron.php > /dev/null 2>&1
            ================================================================
  1. There is no access to the shell access for shared hosting.

  2. We also has done the following:

================================================================
Warning: Your PHP configuration must be changed to allow files of at least 6MB to be uploaded. Please modify the upload_max_filesize value in your php.ini located at: /opt/alt/php71/etc/php.ini

  • We have changed the max upload to 128MB.
    ================================================================

Hope these information will help.

So, can you do these commands starting from the SuiteCRM root directory:


sudo chown -R ultrav:ultrav .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload config_override.php

Notice that some of those commands end with a space and a dot (" .").

I know you said you already did them, but your actual permissions don’t show that. They look different.

Also, in config.php put this:


'default_permissions' =>
array (
	'dir_mode' => 02775
	'file_mode' => 0755
	'user' => 'ultrav', 
	'group' => 'ultrav', 
),

I’m going on vacation now so I can’t really help you further, but my advice is to work until you get rid of all those “undefined”: you won’t have a positive experience in SuiteCRM unless you get permissions right. It will just break randomly.

Hi,

Have a great vacation ahead.

Just a confirmation, is the permission ‘dir_mode’ => 02775 or 0755?

We will run the command and see if it can solve the issue.

:cheer:

02775

The 2 is for the setGID bit which is essential for new directories to get created with the same permissions as the parent directory.

Hi,

My server provider has ran the command but the undefined is still maintain unchanged, do you think a fresh reinstall would solve the undefined issue? Or, is there anything else we should do before the fresh reinstalling?

Try a Quick Repair and Rebuild now.

A fresh install would give the same results, I think.

If you have many “undefineds”, it looks like permissions issues. If you have just one or two places, it could be another bug. See if you can live with it…

When you have permissions problems, you can see the permissions wrongly set. That is the case in your listing those “-rw-r–r--” are “0644”.

The files you set with 755 should show “-rwxr-xr-x”
The files you set with 775 should show “-rwxrwxr-x”

Hi,

Finally, the issue solved. I recheck the permission and found out the one of the permission was set wrongly to 755.

Thank you so much.