SuiteCRM/SugarCRM Popup Undefined Error

When cloning an existing install for development purposes, everything mostly worked except a persistent ‘undefined’ pop-up when switching between screens.  For my purposes, I had to use the same server as my production server (cue rants and raves about why you shouldn’t do this – those with shared hosting web servers might understand why…).  So, I needed to change the directory name.

After hours of checking permissions, deleting the cache, running Quick Repair, etc., I finally came across the items I needed to change.

When moving an existing install, you need to update the config.php file.  There are the obvious ones such as the database information, but there are some settings you might not see at first.  The site_url setting is one of them.  Basically, make sure to update any references to the old install directory (which is by default /suitecrm or /sugarcrm), to the new directory.  Otherwise, you might end up getting files from production and not from development.

The other harder one to find was the .htaccess file.  It also contains RewriteBase rules that change the directory.  Quick repair will not fix this properly.  I tried multiple times running all of the repair options and the file was never fixed.  Mine was still set to the old directory.  What made this more frustrating, was that for whatever reason (known only to the developers), not all parts of the system rely on this, only certain parts.  So, make sure that all of these rules (there will be 2-3 places) point to the new directory.

I hope this saves someone some time in the future.

Leave a Comment