Undefined

Hi all
I’m having an issues where random fields will pop up as undefined. I have completed a server host move recently on this server and on initial testing found no issues until we came to add an invoice to a customer all the line items fields are showing undefined. I have Check permissions and these seem to be correct as per previous posts. I am running on an Ubuntu server on digital ocean with Apache 2 and php 7

You forgot to say which version of SuiteCRM you’re running :slight_smile:

Does your issue look like this one?

https://github.com/salesagility/SuiteCRM/issues/5255

Do you have more "undefined"s throughout the app? Where? If you have many in different places, it is almost certainly ownership/permission problems on the file system…

Appolgies im running 7.10. I’m mainly seeing it in the line items of invoices however it’s also present in studio and some pop up messages. I will post a couple of screen shots shortly. Yes it does look similar to that git issue.

Are you using any Language packs, or is it plain out-of-the-box English?

out of the box plain us english

Can you post the results of this command from your SuiteCRM root folder:

ls -al

This will let me have a quick check of your file ownerships and permissions. Thanks

t@crm:/var/www/html# ls -al
total 154376
drwxr-xr-x 22 www-data www-data 4096 Feb 21 01:32 .
drwxr-xr-x 3 www-data www-data 4096 Jan 16 06:11 …
-rw-r–r-- 1 www-data www-data 411 Feb 20 17:45 bower.json
drwxrws— 2 www-data www-data 4096 Feb 20 17:45 build
drwxrwxr-x 18 www-data www-data 4096 Feb 21 01:33 cache
-rwxr-xr-x 1 www-data www-data 3587 Feb 20 17:45 campaign_tracker.php
-rw-r–r-- 1 www-data www-data 3094 Feb 20 17:45 CODE_OF_CONDUCT.md
-rw-r–r-- 1 www-data www-data 1027 Feb 20 17:45 composer.json
-rw-r–r-- 1 www-data www-data 114330 Feb 20 17:45 composer.lock
-rwxrwxr-x 1 www-data www-data 1050 Feb 21 01:14 config_override.php
-rwxr-xr-x 1 www-data www-data 12063 Feb 21 01:32 config.php
-rwxr-xr-x 1 www-data www-data 5140 Feb 19 21:12 cron.php
-rwxr-xr-x 1 www-data www-data 2446 Feb 19 21:12 crossdomain.xml
drwxrwxr-x 13 www-data www-data 4096 Feb 19 21:17 custom
drwxrwxr-x 3 www-data www-data 4096 Feb 19 21:21 data
-rwxr-xr-x 1 www-data www-data 2386 Feb 20 17:45 dictionary.php
-rwxr-xr-x 1 www-data www-data 12566 Feb 20 17:45 download.php
-rwxr-xr-x 1 www-data www-data 2390 Feb 20 17:45 emailmandelivery.php
-rwxr-xr-x 1 www-data www-data 4918 Feb 20 17:45 export.php
-rwxr-xr-x 1 www-data www-data 967627 Feb 19 21:12 files.md5
-rw-r–r-- 1 www-data www-data 32 Feb 21 01:26 get_current_user.php
-rw-r–r-- 1 www-data www-data 1689 Feb 20 17:45 .gitignore
-rwxr-xr-x 1 www-data www-data 2808 Feb 20 17:45 HandleAjaxCall.php
-rwxr-xr-x 1 www-data www-data 1694 Feb 20 16:55 .htaccess
-rwxr-xr-x 1 www-data www-data 2367 Feb 20 17:45 ical_server.php
drwxr-xr-x 58 www-data www-data 4096 Feb 20 17:45 include
-rwxr-xr-x 1 www-data www-data 2374 Feb 20 17:45 index.php
drwxr-xr-x 6 www-data www-data 4096 Feb 21 00:28 install
-rwxr-xr-x 1 www-data www-data 26101 Feb 19 12:44 install.log
-rwxr-xr-x 1 www-data www-data 31893 Feb 20 17:45 install.php
-rwxr-xr-x 1 www-data www-data 2275 Feb 20 17:45 json_server.php
drwxr-xr-x 3 www-data www-data 4096 Feb 19 21:14 jssource
drwxrws— 7 www-data www-data 4096 Feb 20 17:45 lib
-rwxr-xr-x 1 www-data www-data 34539 Feb 19 21:12 LICENSE.txt
-rwxr-xr-x 1 www-data www-data 2313 Feb 19 21:12 log_file_restricted.html
-rwxr-xr-x 1 www-data www-data 2376 Feb 19 21:12 maintenance.php
drwxr-xr-x 2 www-data www-data 4096 Feb 20 17:45 metadata
drwxr-xr-x 3 www-data www-data 4096 Feb 19 21:17 ModuleInstall
drwxrwxr-x 121 www-data www-data 4096 Feb 20 17:45 modules
-rwxr-xr-x 1 www-data www-data 2886 Feb 20 17:45 pdf.php
-rwxr-xr-x 1 www-data www-data 304 Feb 20 17:45 php_version.php
drwxr-xr-x 2 www-data www-data 4096 Feb 19 21:14 public
-rwxr-xr-x 1 www-data www-data 3837 Feb 20 17:45 README.md
-rwxr-xr-x 1 www-data www-data 73 Feb 19 21:12 robots.txt
-rwxr-xr-x 1 www-data www-data 3588 Feb 19 21:12 run_job.php
drwxr-xr-x 12 www-data www-data 4096 Feb 19 14:06 service
drwxr-xr-x 2 www-data www-data 4096 Feb 19 21:17 soap
-rwxr-xr-x 1 www-data www-data 4088 Feb 20 17:45 soap.php
-rwxr-xr-x 1 www-data www-data 123795 Feb 19 21:12 sugarcrm.log
-rwxr-xr-x 1 www-data www-data 5327 Feb 19 21:12 SugarSecurity.php
-rwxr-xr-x 1 www-data www-data 154 Feb 20 17:45 sugar_version.json
-rwxr-xr-x 1 www-data www-data 2296 Feb 20 17:45 sugar_version.php
-rw-rw-r-- 1 www-data www-data 12307925 Feb 21 00:27 suitecrm_1.log
-rw-r–r-- 1 www-data www-data 15655041 Feb 20 17:47 suitecrm_2.log
-rw-r–r-- 1 www-data www-data 16848855 Feb 20 17:46 suitecrm_3.log
-rw-r–r-- 1 www-data www-data 15052606 Feb 20 17:33 suitecrm_4.log
-rw-r–r-- 1 www-data www-data 15348411 Feb 20 17:30 suitecrm_5.log
-rw-r–r-- 1 www-data www-data 15657757 Feb 20 17:21 suitecrm_6.log
-rw-r–r-- 1 www-data www-data 15377307 Feb 20 17:15 suitecrm_7.log
-rw-r–r-- 1 www-data www-data 15148233 Feb 20 17:10 suitecrm_8.log
-rwxr-xr-x 1 www-data www-data 22114409 Feb 20 17:08 suitecrm_9.log
-rw-r–r-- 1 www-data www-data 10453430 Feb 21 02:00 suitecrm.log
-rwxr-xr-x 1 www-data www-data 168 Feb 20 17:45 suitecrm_version.php
drwxrwxr-x 6 www-data www-data 4096 Feb 19 21:22 themes
-rw-r–r-- 1 www-data www-data 839 Feb 20 17:45 .travis.yml
-rwxr-xr-x 1 www-data www-data 5839 Feb 20 17:45 TreeData.php
-rwxr-xr-x 1 www-data www-data 2454176 Feb 20 17:46 upgradeWizard.log
drwxrwxr-x 5 www-data www-data 20480 Feb 20 17:44 upload
-rwxr-xr-x 1 www-data www-data 2248 Feb 20 17:45 vcal_server.php
-rwxr-xr-x 1 www-data www-data 2976 Feb 20 17:45 vCard.php
drwxrws— 18 www-data www-data 4096 Feb 20 17:45 vendor
drwxr-xr-x 3 www-data www-data 4096 Feb 19 21:14 web
drwxr-xr-x 2 www-data www-data 4096 Feb 19 21:22 XTemplate
drwxr-xr-x 8 www-data www-data 4096 Feb 20 17:46 Zend

Your permissions look fine.

Keep an eye on that Issue on GitHub, and when a fix is available, please test it and tell me if it also solves the other “undefineds”.

Thanks

1 Like

Here are the screen shots that I have taken of the issue. https://drive.google.com/open?id=1hfg9kT0gtFuuJGeKntEeRrbO0Qz8gKAf
I’m going to do a new build and try to transfer in my database

This issue has been resolved using info from https://github.com/salesagility/SuiteCRM/pull/5141/files
made changes to .htaccess lines 5 and 6
from

RewriteRule ^cache/jsLanguage/(.._..).js$ index.php?entryPoint=jslang&module=app_strings&lang=$1 [L,QSA]
    RewriteRule ^cache/jsLanguage/(\w*)/(.._..).js$ index.php?entryPoint=jslang&module=$1&lang=$2 [L,QSA]

to

RewriteRule ^cache/jsLanguage/(.._..).js$ index.php?entryPoint=jslang&modulename=app_strings&lang=$1 [L,QSA]
    RewriteRule ^cache/jsLanguage/(\w*)/(.._..).js$ index.php?entryPoint=jslang&modulename=$1&lang=$2 [L,QSA]
1 Like