Here is an add -
I had same exactly error issue, but clearing JS and setting perms didn’t do anything.
So next step (whenever I have a major system crash)
I started deleting Vardefs in the custom modules (Not in The the Extension folder) being in developer mode you can get instant results when modifying these folders e.g.
custom\modules<Module>\Ext\Vardefs\vardefs.ext.php
Through trial and error I narrowed it down to the User vardefs and then this specific Definition from a Google Authenticator plugin.
/* $dictionary['User']['fields']['ht_remember_browser_name'] = array( 'name' => 'ht_remember_browser_name', 'vname' => 'LBL_HT_REMEMBER_BROWSER_NAME', 'function' => 'getRegisteredDevices', 'type' => 'multienum', 'options' => 'getRegisteredDevices', 'studio' => 'hidden', 'inline_edit' => false, ): */
I’m not sure why???
When def is gone I can get into relationship, when it is there I can’t.
Here is the utils function called in this def:
function getRegisteredDevices(){
$query = "SELECT ht_remember_browser_name FROM users WHERE id = ‘{$REQUEST[‘record’]}‘";
$result = $GLOBALS[‘db’]->query($query, true);
$registeredDevices = array();
$registeredDevicesNames = array();
$registeredDevicesNames[’‘] = ‘’;
$row = $GLOBALS[‘db’]->fetchByAssoc($result);
$registeredDevices = unencodeMultienum($row[‘ht_remember_browser_name’]);
foreach($registeredDevices as $key => $value){
$device_name = explode(’’, $value);
$registeredDevicesNames[$value] = $device_name[1];
$GLOBALS[‘app_list_strings’][‘getRegisteredDevices’][$value] = $device_name[1];} echo "<link href='custom/include/select2/css/select2.css' rel='stylesheet' type='text/css'/>"; return $registeredDevicesNames; }
Any ideas why this would conflict this moduleLoadRelationship2()???