Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Error with usergroup changing
Code:
<?php include("inc/init.php"); //***************// // START SCRIPT // //***************// if(!$mysidia->user->isloggedin){ // The user is not logged in, show generic login error message $mysidia->displayerror("guest"); } else{ $newgroup= 7; $mysidia->db->update("users", array("usergroup" => $newgroup), "username='{$mysidia->user->username}'"); $article_title = "Hello, {$username}!"; $article_content = "You are now a part of the faction of Plutas."; $mysidia->page->addcontent($article_content,TRUE); } //***************// // OUTPUT PAGE // //***************// $mysidia->output(); ?> Fatal error: Uncaught exception 'Exception' with message 'Cannot recognize usergroup category for this user, he/she may be a guest, a bot, or else...' in /home/infern/public_html/classes/class_membercreator.php:28 Stack trace: #0 /home/infern/public_html/classes/class_membercreator.php(32): MemberCreator->getgroupcategory() #1 /home/infern/public_html/classes/class_mysidia.php(89): MemberCreator->create() #2 /home/infern/public_html/classes/class_mysidia.php(39): Mysidia->getcurrentuser() #3 /home/infern/public_html/inc/init.php(27): Mysidia->initialize() #4 /home/infern/public_html/index.php(3): require('/home/infern/pu...') #5 {main} thrown in /home/infern/public_html/classes/class_membercreator.php on line 28 And by manually editing in the usergroup, I get the same error. So I don't think it is my script doing it. http://www.iaza.com/work/130212C/iaza13908980085500.png http://www.iaza.com/work/130212C/iaza13908984561500.png - usergroups |
#2
|
||||
|
||||
Oh my goodness, thanks for bringing it up. It seems to be a minor glitch resulted from my playing with the usergroup system lol. Go to classes/class_membercreator.php file and find this:
PHP Code:
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
|||
|
|||
Yaaaayyy It worked ^.^
|
#4
|
||||
|
||||
Thats so good to know. ^^
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Page that changes player's usergroup | Derpstra | Tutorials and Tips | 3 | 07-30-2020 12:27 AM |
Editing Usergroup Restriction for Shops | Hwona | Questions and Supports | 5 | 08-13-2014 04:44 PM |
ACP Error : Fatal error: Class 'AppController' not found in... | Isura | Questions and Supports | 39 | 06-17-2013 03:26 AM |
Help with changing css | MaximumRide | Questions and Supports | 5 | 04-25-2012 01:37 AM |
Parse error: syntax error, unexpected T_ELSE in /home/.nyles/ | Saphira | Questions and Supports | 11 | 05-26-2009 12:45 PM |
What's New? |
What's Hot? |
What's Popular? |