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.
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.
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.
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.
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.
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)
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.
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