Sugarcrm on Windows using Xamp/Wamp

Hi All,

I am a Linux user for the past couple of years and have been doing SugarCRM dev in Ubuntu. Due to some requirements, I need to set up sugar 9 on window 10. 

I am using xamp and tried wamp. However, I am facing a weird error and still unable to fix it. I have ensured that all recommended PHP extensions are enabled but no luck... 

Anyone using SugarCRM on Windows can help me? (Tried with php 7.1 and 7.3)

I am getting this js error in the console "classic is not defined"

VM1371:3 Uncaught ReferenceError: classic is not defined
at eval (eval at <anonymous> (cache.js:67), <anonymous>:3:1)
at cache.js:67
at cache.js:98
at Function.h.each.h.forEach (eval at e.exports (addScript.js:9), <anonymous>:5:1994)
at l (cache.js:93)
at Object.init (cache.js:135)
at Object.init (app.js:304)
at (index):64
eval @ VM1371:3
(anonymous) @ cache.js:67
(anonymous) @ cache.js:98
h.each.h.forEach @ VM1358:5
l @ cache.js:93
init @ cache.js:135
init @ app.js:304
(anonymous) @ (index):64

Thanks,

  • Hi Mohammad,

    I've always used Xampp and it worked fine. I'm guessing the error could be related to cache, both in the browser and server.

    Can you try the following:

    1. Delete your cache and custom/application/Ext folder in your code. Recreate an empty cache folder.

    2. Which browser are you using? Delete your browser cache completely, or open an Incognito window and try accessing Sugar.

    If you're still having trouble, you can try the entire quick repair process from command line from our Community legend Jeff Bickart - https://gist.github.com/bickart/5468138 . This will create all the files that might be missing in your initial run. After running the repair, you should most certainly access sugar in your local machine.

  • We had faced something similar in the past.

    Did you install/log in the CRM under Chrome?

    For the first log in try Firefox and after successful authentication go to Chrome. This may fix that issue.

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • Hello Mohammad,

    Verify you have the .htaccess file on your root folder if not then copy it from the instance where you have actual setup

    if you have the .htaccess file open it and verify the folder name in <IfModule mod_rewrite.c> section RewriteBase /<<your folder name>>

    At many times chrome browser cache act wired so please try to open it chrome incognito mode and check it

    let me know if it work or not

  • I always used XAMPP without issues. Currently it's with php 7.3.20.for version 9 and 10 of SugarCRM.

    With the new utf8mb4 character set support the MariaDB which is delivered with XAMMP must be replaced by the original mysql package. Here I have mysql 5.7.28 32 bit (!) running. The 64 bit version throws some errors, why ever.

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

  • Thanks, it was an issue with chrome version 79.xx. Updating the browser fixed it. 

  • Hi Andre,

    Yes, to guessed it right. To my surprise, it worked on firefox, and later I found that only chrome version 79.xx gave console errors. It was fixed right after the update. 

  • Hi Harald,

    It appeared to be a chrome issue (v7.9.xx) and was fixed right after the update. 

  • Hi Shrikant,

    Thanks for the help.

    It appeared to be a chrome issue (v7.9.xx) and was fixed right after the update.