Undefined warning message for import.

Just installed a fresh copy of SuiteCRM 7.3.1 MAX

I’m trying to track down why the warning pop up during the import of contacts is not showing he label. This happens when you select " Create new records and update existing records Information" radio box and then click next.

The page loads with this error in the java-script console. :


SyntaxError: syntax error
<!doctype html>

# Contains valid javascript code 
http://sonesbox.suitecrm.7.3.1.ib4t.co/include/javascript/calendar.js?v=0nZrdB18U4QXeaPtWFq8CQ

# Contains HTML + java-script code
http://sonesbox.suitecrm.7.3.1.ib4t.co/cache/jsLanguage/Import/en_us.js?v=RG8kpujABV7rNYwVeJu1IQ
...
<!doctype html>
<html lang='en_us'>
<head>
    <link rel="SHORTCUT ICON" href="themes/Suite7/images/sugar_icon.ico?v=l9zvVXxkQuhRdb-l1D0ojQ">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="X-UA-Compatible" content="IE=9"/>
    <title>Blue Wing Honda CRM</title>
    <script>jscal_today = 1000*1442389925; if(typeof app_strings == "undefined") app_strings = new Array();</script><script type="text/javascript" src="cache/include/javascript/sugar_grp1_jquery.js?v=l9zvVXxkQuhRdb-l1D0ojQ"></script><script type="text/javascript" src="cache/include/javascript/sugar_grp1_yui.js?v=l9zvVXxkQuhRdb-l1D0ojQ"></script><script type="text/javascript" src="cache/include/javascript/sugar_grp1.js?v=l9zvVXxkQuhRdb-l1D0ojQ"></script><script type="text/javascript" src="include/javascript/calendar.js?v=l9zvVXxkQuhRdb-l1D0ojQ"></script><script>
SUGAR.config.stockAjaxBannedModules = ["Calendar","Emails","Campaigns","Documents","DocumentRevisions","Project","ProjectTask","EmailMarketing","CampaignLog","CampaignTrackers","Releases","Groups","EmailMan","Administration","ModuleBuilder","Schedulers","SchedulersJobs","DynamicFields","EditCustomFields","EmailTemplates","Users","Currencies","Trackers","Connectors","Import_1","Import_2","Versions","vCals","CustomFields","Roles","Audit","InboundEmail","SavedSearch","UserPreferences","MergeRecords","EmailAddresses","Relationships","Employees","Import","OAuthKeys","KReports","KReports","KReports","KReports","KReports","KReports"];

I’m guessing the second script if the one that’s causing the problem. Why the SuiteCRM mixing html and java-script code when this should just be java-script?

Hi sone,
This seems to be a javascript issue, normally caused by 'src=" "

Are you sure your permissions are correct for this instance?
Are you sure your owner/group user is correct?
Are you sure your config.php has the correct settings for the default_permissions array? e.g: dir_mode and file_mode

If you have checked all of these, make sure you have done a Quick Repair/Rebuild since installing

If none of these work, you could try running a “Rebuild JS Grouping files”. This can be found in Admin > Repair menu
Afterwards, run a Quick repair and rebuild again.

Hi John

the permission are 775 for everything. Owner and group are both apache


sone@sonesbox.ib4t.co[10.92.40.125] /var/www/html/sonesbox.suitecrm.7.3.1.ib4t.co [master]4064556 first commit
> $  ll
total 1.2M
drwxrwsr-x   21 apache apache 4.0K Sep 14 10:54 .
drwxrwxr-x.  29 apache apache 4.0K Sep 17 09:20 ..
-rwxrwxr-x    1 apache apache 2.7K Aug 26 03:10 acceptDecline.php
drwxrwsr-x   15 apache apache 4.0K Sep 14 10:55 cache
-rwxrwxr-x    1 apache apache 3.6K Aug 26 03:10 campaign_tracker.php
-rwxrwxr-x    1 apache apache 2.7K Aug 26 03:10 campaign_trackerv2.php
-rwxrwxr-x    1 apache apache  516 Sep 14 11:01 config_override.php
-rwxrwxr-x    1 apache apache 9.9K Sep 14 10:54 config.php
-rwxrwxr-x    1 apache apache 3.9K Aug 26 03:10 cron.php
-rwxrwxr-x    1 apache apache 2.4K Aug 26 03:10 crossdomain.xml
drwxrwsr-x   11 apache apache 4.0K Sep 16 14:50 custom
drwxrwsr-x    3 apache apache 4.0K Sep 16 08:42 data
.....

“Are you sure your config.php has the correct settings for the default_permissions array? e.g: dir_mode and file_mode”

my config.php below


  'default_permissions' =>  
  array (
    'dir_mode' => 1528,
    'file_mode' => 432,
    'user' => '', 
    'group' => '', 
  ),  

should I bet setting user and group to apache? Also dir mode and file mode seems a bit odd.

Hi,

The best settings may be a bit different depending on your hosting solution/ instance but we recommend:

‘dir_mode’ => 1517
‘file_mode’ => 420
‘user’ => apache
‘group’ => apache