I'm getting this in the Accounts module (possibly other modules, but only use Accounts)

Warning: aSubPanel::require(modules//subpanels/.php) [function.aSubPanel-require]: failed to open stream: No such file or directory in /Users/login/Sites/Sugar/include/SubPanel/SubPanelDefinitions.php on line 66

Fatal error: aSubPanel::require() [function.require]: Failed opening required 'modules//subpanels/.php' (include_path='.:') in /Users/login/Sites/Sugar/include/SubPanel/SubPanelDefinitions.php on line 66

I've moved the files to a different computer (OSX 10.4.8). The file ownership/permissions didn't copy over properly but I've repaired as best I can.

chmod -R 775 cache custom data modules
I've even tried chmod -R 777 cache custom data modules

I've tried to make sure that the folders that Sugar has created have an owner of www.

It looks as if Sugar can't read the list of modules? Where does it get that list?

Any help gratefully received.