Jump to content

Recommended Posts

Posted

Getting this error when pilots apply.

Catchable fatal error: Object of class stdClass could not be converted to string in /home1/pirateai/public_html/kesukvirtual/core/common/PilotGroups.class.php on line 87
Guest lorathon
Posted

I looked Roger but I must have changed my PilotGroups.class.php My line 87 looks like this. }

Can you post your line 87 and whatever is around it?

Posted

here is that whole string

/**
    * Get a group ID, given the name
    */
   public static function getGroupID($groupname) {
       $sql = 'SELECT groupid FROM ' . TABLE_PREFIX . 'groups
 	WHERE name=\'' . $groupname . '\'';

       $res = DB::get_row($sql);

       return $res->groupid;
   }

Guest lorathon
Posted

Make sure that the $groupname that is being supplied is a string and not an object. Is this just the standard phpVMS or are there mod's?

Guest lorathon
Posted

Whatever is sending the $groupname variable looks to be sending an object not a string.

Object of class stdClass could not be converted to string

Guest lorathon
Posted

In the newest version RegistrationData.class.php. Maybe something is wrong here. I dont have 950 installed I just used the github for the code

/* Add them to the default group */
$defaultGroup = SettingsData::getSetting('DEFAULT_GROUP');
PilotGroups::AddUsertoGroup($pilotid, $defaultGroup);

In version 944

/* Add them to the default group */
PilotGroups::AddUsertoGroup($pilotid, DEFAULT_GROUP);

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...