SuiteCRM 8.8 Templates Download Not Working

Hello Friends,

I am a new member here, just installed the SuiteCRM 8.8 and now trying to import contacts from Excel. However, when I click on Download Template link it shows “javascript: void(0);” at the bottom and it takes me to the contact screen which is empty at the moment, but it doesn’t download the file. I checked that the JavaScript is enabled in my browser settings but still can’t seem to download any templates.

All help is appreciated in advance.

When I hover over Download Import File Template I can see same “javascript:void(0)” but when I click on it. It download a file for me. I have attached in zip format.

Contacts.zip (1.8 KB)

You may need to click KEEP on the browser. Sometimes, the browser does not allow it.

Thanks for sharing the Contacts template file.

I would still need the template files for Accounts, Opportunities, Leads, and Quotes.

Is it a bug in the rel 8.8.0 that the link is empty without a hyperlink?

Here are all other template files:

template files.zip (7.5 KB)


For me, it worked for all the modules.

The Quotes module has Import and Import Line Items.

The Import option did not work for me. When I click on template link, it sends me back to quotes view and I get the error in the browser.

500 (Internal Server Error) entryPoint=export&module=AOS_Quotes&action=index&all=true&sample=true

Thanks so much for sharing the rest of the templates.

As a new user to the SuiteCRM v8.8, this makes me think is this version is ready for Full Monty, there could be several other nuances that I haven’t stumbled upon yet.

Click :+1: on the issue:

@Blue did you check if it is your browser blocking the Javascript execution, as @rsp suggested?

turn off anti-virus for a moment, try a different browser, turn off ad blockers etc and run your test again.

I did try it in Chrome, and Edge, ensured the JavaScript execution is set to true. No other blockers are present except AdBlocker. The problem is that when I hover over the download template link, the url is showing javascript: void(0); this should have displayed the file location url down at the bottom.

Not sure how to fix it.

The fact that it says javascript: void(0) is not a problem, because there’s also an onclick event firing there. Assuming no software is stripping it out.

I just tried it on the live demo and it works well.

→ https://suite8demo.suiteondemand.com

image

You should see a similar code in your browser’s web tools (click to “inspect” that element)
Also in the tools, the console might show relevant JS errors.
And when you click it, if the event fires, you should see the request being made to the back-end (in the “network” tab)

Here a template for Quote:

Quotes.zip (1.2 KB)

I again tried today, in several browsers with javascript enabled, my locally hosted website link to download any templates doesn’t work and it takes me to the respective display page. I tested the SuiteCRM 8.8 Demo website, and it works fine on all browsers, I can download templates. What could be wrong with my installation? I am running it on Ubuntu 24.04 LTS.

Do you see /public in your URL?

Nope because I set the DocumentRoot as per the installation guide :slight_smile:

That’s good :smile: can you please check your config.php file for site_url parameter? Is it correct?

Located at: /public/legacy/

site_url

‘site_url’ => ‘http://localhost’

Interesting, it is usually your system IP address or website URL.

For example,

‘site_url’ => ‘http://IP_ADDRESS’

Noted, but wouldn’t localhost resolve to 127.0.0.1 via /etc/hosts file?

Do you think this can be the issue? I can update this value to the local IP address.

I usually use the /etc/hosts file to setup something like localsuite.asdf or similar and use a standard VHost file - then there is nothing odd going one with localhost / 127.0.0.1 or similar.
Do you use Apache? Redirect and everything works? Did you keep the .htaccess files as they are?
Just a few hints around this topic - but usually in those cases, it’s all about the server setup and not SuiteCRM.

I think this issue with the site_url and localhost is a red herring, it shouldn’t be the problem because the redirect is not using the host name (it is an internal redirect within the same site, the CRM).

@Blue I don’t know if you are a technical user or not, but if my last post is not too technical for you, please have a look at those 3 things and report back here, there might be more clues about what is going on.

  • the HTML that is there (as in my screenshot)
  • the errors in the console, if any
  • the request that is produced to the back-end

You can even compare these between your system that doesn’t work, and the demo site where it works, try to spot any differences.

I’ve same issue. I catch this error in the backend:

2025/02/10 13:54:36 [error] 257644#257644: *209870 FastCGI sent in stderr:
"PHP message: PHP Warning:  include(install/demoData.en_us.php):
Failed to open stream: No such file or directory in
/var/www/public/legacy/include/export_utils.php on line 602
PHP message: PHP Warning:  include(): Failed opening
'install/demoData.en_us.php' for inclusion 
(include_path='/var/www/public/legacy:/var/www/public/legacy/include/..:.:/usr/share/php')
 in /var/www/public/legacy/include/export_utils.php on line 602
PHP message: PHP Warning:  Undefined variable $sugar_demodata in /var/www/public/legacy/include/export_utils.php on line 739
PHP message: PHP Warning:  Trying to access array offset on value of type null in /var/www/public/legacy/include/export_utils.php on line 739
PHP message: PHP Fatal error:  Uncaught ValueError: mt_rand(): Argument #2 ($max) must be greater than or equal to argument #1 ($min) in /var/www/public/legacy/include/export_utils.php:740

Stack trace:
#0 /var/www/public/legacy/include/export_utils.php(740): mt_rand()
#1 /var/www/public/legacy/include/export_utils.php(237): returnFakeDataRow()
#2 /var/www/public/legacy/include/export_utils.php(588): export()
#3 /var/www/public/legacy/export.php(77): exportSample()
#4 /var/www/public/legacy/include/MVC/Controller/SugarController.php(1012): require_once('...')
#5 /var/www/public/legacy/include/MVC/Controller/SugarController.php(467): SugarController->handleEntryPoint()
#6 /var/www/public/legacy/include/MVC/Co" while reading response header from upstream, c