Help with "Case" Page (SOLVED)

Forum
Last Post
Threads / Messages

Ittermat

The awesomesauce
Member
Joined
Feb 2, 2016
Messages
304
Points
18
Location
in front of my laptop
Mysidian Dollar
21,294
Okay so Im trying to make a Premium currency trade in page... Everything works until you go to choose something- I cant figure this out... I get this error-


?>
Fatal error: Uncaught exception 'ItemException' with message 'No selection made.' in /home/atrocity/public_html/classes/class_item.php:38 Stack trace: #0 /home/atrocity/public_html/classes/class_stockitem.php(14): Item->__construct(NULL) #1 /home/atrocity/public_html/view/candypaintbrushshopview.php(41): StockItem->__construct(NULL) #2 /home/atrocity/public_html/classes/class_frontcontroller.php(100): candypaintbrushshopView->index() #3 /home/atrocity/public_html/index.php(79): FrontController->render() #4 /home/atrocity/public_html/index.php(83): IndexController::main() #5 {main} thrown in /home/atrocity/public_html/classes/class_item.php on line 38

I know this means its not reading the item... but I dunno what I did wrong??


---Heres my code below..any help would be appreciated--


 
Last edited:
Sorry to bug you all- I got it working simply by copy pasting this part


$qty = 1;
$newitem = new StockItem($item);
$newitem->append($qty, $mysidia->user->username);

from a different working page..

I dont see what the difference between them is.. but ey it works now- Sorry to be a bother.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,118
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top