I just added a safecracker form to a site running:
ee 2.4.0 20120123
msm 2.1.2 Build: 20120123
safecracker 2.1
I get a bunch of these errors in the template:
A PHP ERROR WAS ENCOUNTERED
Severity: Notice
Message: Undefined index: site_url
Filename: config/config.php
Line Number: 154
In the index.php of site1 I have this set:
$assign_to_config[‘site_url’] = ‘http://site1.com’;
In the index.php of site2 I have this set:
$assign_to_config[‘site_url’] = ‘http://site2.com’;
The first instance of the php error is referring to this line in the config:
$config[‘avatar_url’] = $config[‘site_url’].”/images/avatars/”;
The error says the variable is not set in the config, which it isn’t because it’s set in the index.php of each site. Any advice on this? Thanks.