Protect Custom directory

I want to upgrade from 7.7.3 to 7.8.5.

Is the upgrader going to overwrite anything in my ā€œ/custom/ā€ dir?
Or write anything at all to ā€œ/custom/?ā€.

Or have we moved beyond that (back to the Sugar, ā€œupgrade-safeā€ model).

Should I set ā€œ/custom/ā€ to ā€œunwriteableā€ (0400) before running the upgrade?

custom directory is ā€œupgrade safeā€, will not written.
If you want to controll, open the upgrade zip file to verify by your self.

Before every upgrade remember to make a backup of your suitecrm files and db

I cloned all files and database and created a new subdomain.
Then I chmod -R 0400 ā€œ/custom/ā€ (just to be safe).

The upgrade went off without a hitch!
:slight_smile:

Well… almost.
A little bit of strangeness (see attachment).
All my custom field labels seem to have gotten ā€œmisplaced.ā€

Anyone have any thoughts on what might have happened here?

Thanks!

First try ā€œquick repair and rebuildā€ (also ā€œrebuild javascript languageā€ can help) from repair section af the administration pannel.
Check also in the studio if your custom labels are ok.

Custom field labels are parsed properly in Studio > Leads > Labels

But not in
Studio > Leads > Layouts > whateverView

Have they changed the way the "ViewDefs.php files work (e.g.: ā€œ/custom/modules/leads/metadata/detailviewdefs.phpā€???

Mine look like they always have:
4 =>
array (
0 =>
array (
ā€˜name’ => ā€˜phone_work’,
ā€˜studio’ => ā€˜visible’,
ā€˜label’ => ā€˜LBL_PHONE_WORK’,
),
1 =>
array (
ā€˜name’ => ā€˜search_city_c’,
ā€˜label’ => ā€˜LBL_SEARCH_CITY’,
),
),
5 =>
array (
0 =>
array (
ā€˜name’ => ā€˜email1’,
ā€˜customCode’ => ā€˜{$bean->email1} (primary)’,
ā€˜label’ => ā€˜E-mail:’,
),
1 =>
array (
ā€˜name’ => ā€˜email_validation_c’,
ā€˜studio’ => ā€˜visible’,
ā€˜label’ => ā€˜LBL_EMAIL_VALIDATION’,
),
),

I see now, that this is happening to ALL modules. Leads, Users, employees, etc.
Labels are not being translated/parsed

Anyone know where the logic is that’s responsible for this?

It seems that by write-protecting ā€˜/custom/’ dir, I botched the upgrade.

Looking at the installer, there are over 1,000 calls to ā€˜/custom/’ so I was basing everything I did on a false assumption.

*I’ll clone our 7.7.3 install again and try upgrading, ALLOWING it to mess with our ā€œ/custom/ā€ directory.
I sure don’t feel good about this.

Probably there are some code in the installer script to allineate old version to new version…

Probably, yes.