SuiteCRM 7.9.7 Update Errors

Hi,

I have recently updated my SuiteCRM from 7.9.5 and I get many pop up windows with “Undefined” text whenever I open any page.

Is there any way to get rid of these pop-ups?

How can I edit the text in the many fields that appear as “Undefined” on the platform?

The most common cause for multiple “undefined”, especially when they are scattered in several places in the app, not just one, is permissions problems.

However, if your problems are mostly in the Email “compose” window, that’s a different bug (already fixed in the latest version).

Can you post the results of this command, given from your SuiteCRM root directory, so I can have a quick look at your permissions?

ls -al

Thank you very much for your support.

Here you can find a screenshot of the list https://ibb.co/fWaGXb

Hi

you obfuscated the ownerships, which is what I need to see. If you need to keep those detail private simply find-and-replace them for something else before posting online. You can post in text here, inside the forums’ “code” tags.

Let me ask for an additional thing - go into Admin / Schedulers and tell me what is written in the bottom of the list, the instructions for setting up the crontab. I can get the web server user name from there.

I hope this works


drwxr-xr-x 21 rootuser rootuser 4096 Oct 31 00:00 ./
drwxr-x--- 20 rootuser nobody 4096 Oct 29 17:33 ../
drwxr-xr-x 2 rootuser rootuser 4096 Oct 10 11:32 .github/
-rw-r--r-- 1 rootuser rootuser 1376 Oct 10 13:57 .htaccess
-rw-r--r-- 1 rootuser rootuser 3094 Oct 29 17:46 CODE_OF_CONDUCT.md
-rw-r--r-- 1 rootuser rootuser 2811 Oct 10 11:32 HandleAjaxCall.php
-rw-r--r-- 1 rootuser rootuser 34539 Oct 10 11:32 LICENSE.txt
drwxr-xr-x 3 rootuser rootuser 4096 Oct 10 11:50 ModuleInstall/
-rw-r--r-- 1 rootuser rootuser 3737 Oct 29 17:46 README.md
-rw-r--r-- 1 rootuser rootuser 5327 Oct 10 11:32 SugarSecurity.php
-rw-r--r-- 1 rootuser rootuser 5843 Oct 10 11:32 TreeData.php
drwxr-xr-x 2 rootuser rootuser 4096 Oct 10 12:16 XTemplate/
drwxr-xr-x 8 rootuser rootuser 4096 Oct 10 12:16 Zend/
drwxr-xr-x 13 rootuser rootuser 4096 Oct 29 17:27 cache/
-rw-r--r-- 1 rootuser rootuser 3590 Oct 10 11:32 campaign_tracker.php
-rw-r--r-- 1 rootuser rootuser 462 Oct 10 11:32 composer.json
-rw-r--r-- 1 rootuser rootuser 17908 Oct 10 11:32 composer.lock
-rwxr-xr-x 1 rootuser rootuser 10381 Oct 30 17:43 config.php*
-rw-r--r-- 1 rootuser rootuser 586 Oct 31 05:30 config_override.php
-rw-r--r-- 1 rootuser rootuser 5052 Oct 10 11:32 cron.php
-rw-r--r-- 1 rootuser rootuser 2446 Oct 10 11:32 crossdomain.xml
drwxr-xr-x 9 rootuser rootuser 4096 Oct 29 17:46 custom/
drwxr-xr-x 3 rootuser rootuser 4096 Oct 10 11:32 data/
-rw-r--r-- 1 rootuser rootuser 2388 Oct 10 11:32 dictionary.php
-rw-r--r-- 1 rootuser rootuser 12541 Oct 29 17:46 download.php
-rw-r--r-- 1 rootuser rootuser 2392 Oct 10 11:32 emailmandelivery.php
-rw-r--r-- 1 rootuser rootuser 4912 Oct 10 11:32 export.php
-rw-r--r-- 1 rootuser rootuser 967627 Oct 10 11:32 files.md5
-rw-r--r-- 1 rootuser rootuser 2367 Oct 29 17:46 ical_server.php
drwxr-xr-x 58 rootuser rootuser 4096 Oct 10 11:34 include/
-rw-r--r-- 1 rootuser rootuser 2374 Oct 10 11:32 index.php
drwxr-xr-x 6 rootuser rootuser 4096 Oct 30 17:43 install/
-rw-r--r-- 1 rootuser rootuser 17930 Oct 10 13:57 install.log
-rw-r--r-- 1 rootuser rootuser 31896 Oct 29 17:46 install.php
-rw-r--r-- 1 rootuser rootuser 2275 Oct 29 17:46 json_server.php
drwxr-xr-x 3 rootuser rootuser 4096 Oct 10 11:46 jssource/
-rw-r--r-- 1 rootuser rootuser 2313 Oct 10 11:32 log_file_restricted.html
-rw-r--r-- 1 rootuser rootuser 2376 Oct 10 11:32 maintenance.php
-rw-r--r-- 1 rootuser rootuser 889 Oct 10 14:18 manifest.php
drwxr-xr-x 2 rootuser rootuser 4096 Oct 10 11:50 metadata/
drwxr-xr-x 113 rootuser rootuser 4096 Oct 10 14:18 modules/
-rw-r--r-- 1 rootuser rootuser 2890 Oct 10 11:32 pdf.php
-rw-r--r-- 1 rootuser rootuser 3630 Oct 29 14:59 php_errorlog
-rw-r--r-- 1 rootuser rootuser 304 Oct 29 17:45 php_version.php
drwxrws--- 2 rootuser rootuser 4096 Oct 29 17:45 public/
-rw-r--r-- 1 rootuser rootuser 73 Oct 10 11:32 robots.txt
-rw-r--r-- 1 rootuser rootuser 3588 Oct 10 11:32 run_job.php
drwxr-xr-x 12 rootuser rootuser 4096 Oct 10 12:03 service/
drwxr-xr-x 2 rootuser rootuser 4096 Oct 10 12:03 soap/
-rw-r--r-- 1 rootuser rootuser 4091 Oct 10 11:32 soap.php
-rw-r--r-- 1 rootuser rootuser 154 Oct 29 17:45 sugar_version.json
-rw-r--r-- 1 rootuser rootuser 2296 Oct 29 17:46 sugar_version.php
-rw-r--r-- 1 rootuser rootuser 126280 Oct 10 13:57 sugarcrm.log
-rw-r--r-- 1 rootuser rootuser 266674 Oct 29 17:21 suitecrm.log
-rw-r--r-- 1 rootuser rootuser 79542 Oct 29 21:00 suitecrm_10_29_17.log
-rw-r--r-- 1 rootuser rootuser 3143 Oct 30 21:00 suitecrm_10_30_17.log
-rw-r--r-- 1 rootuser rootuser 87 Oct 31 05:07 suitecrm_10_31_17.log
-rw-r--r-- 1 rootuser rootuser 169 Oct 29 17:45 suitecrm_version.php
drwxrws--- 2 rootuser rootuser 4096 Oct 29 17:45 tests/
drwxr-xr-x 6 rootuser rootuser 4096 Oct 10 12:03 themes/
drwxrws--- 3 rootuser rootuser 4096 Oct 10 14:18 upgrade/
-rwxr-xr-x 1 rootuser rootuser 645863 Oct 29 17:49 upgradeWizard.log*
drwxr-xr-x 4 rootuser rootuser 4096 Oct 30 18:01 upload/
-rw-r--r-- 1 rootuser rootuser 2980 Oct 10 11:32 vCard.php
-rw-r--r-- 1 rootuser rootuser 2248 Oct 29 17:45 vcal_server.php

Don’t forget the other thing I asked - I need to know your web server user.

It does look like you have permissions problems. Your files should be owned by the web server user, not rootuser.

You also need to make sure your cron jobs are not running as root. For this, they have to be defined in the correct crontab, not root’s crontab.

I can give you specific commands once you tell me your web server user.

This is what I see:

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

          • cd /home/rootuser/public_html/domain.com/crm; php -f cron.php > /dev/null 2>&1 
            

SuiteCRM has been written and assembled by SalesAgility. The Program is provided AS IS, without warranty. Licensed under AGPLv3.

Hi,

I have manually modified the username to “rootuser” to share the data here. My user includes my name and surname so I thought it would be better changing it.

Wherever you see rootuser was the real name of the main admin user.

Sorry for the confusion.

Ok, I understand you changed the name, but is that actually a “root” user on this machine? Because, if it is, you’re running your installation against all basic best-practices.

The web-server should under a relatively low-privilege account, and an account that is not allowed to log in interactively. On Ubuntu with Apache this is usually www-data.

The commands you would need for that user name are these:


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

These should be given from the root directory of your SuiteCRM installation. Pay attention to the " ." at the end of some of those commands - it’s a space followed by a dot.

When finished, do a Quick Repair and Rebuild.

I can’t click on those links on the Admin Panel because they are hidden under the oversized header. Is there any way to access them through a direct link?

I think you can click “view source”, find the link in the middle of the HTML, and click it.

Anyway, once permissions are fixed, you shouldn’t have problems with broken layouts. You can delete the cache/themes folder on your server (it will get recreated) and try from a different browser, to work around caching problems.

You can try the chmod and the chown without sudo to see if it works.

If not, try something from CPanel. Give the equivalent permissions where appropriate.

http://permissions-calculator.org/

You were totally right!
I had to update the files permissions manually, but just after that, the platform start working again as a charm!

I’m glad you got it working, congratulations!