CrazyYoda Posted December 30, 2014 Share Posted December 30, 2014 (edited) First let me just say, I am by no means a coder. But I am trying to set up a website for a friend. I am no novice when it comes to the web design part, but I am one when it comes to PHP code. That said, I have a joomla site on my local machine for the time being. I am using joomla for this site. Joomla wont help me with this problem. They refer me to the creator of the extension. Well, problem is, I have posted there and have not had any answer yet either. The problem is when I use a form component and ue the select box option. Anyway, the problem I am having is: Notice: Undefined property: stdClass::$listitemid in C:\xampp\htdocs\joomla30\administrator\components\com_visforms\helpers\html\visforms.php on line 505 Notice: Undefined property: stdClass::$listitemvalue in C:\xampp\htdocs\joomla30\administrator\components\com_visforms\helpers\html\visforms.php on line 505 Notice: Undefined property: stdClass::$listitemlabel in C:\xampp\htdocs\joomla30\administrator\components\com_visforms\helpers\html\visforms.php on line 505 Here is the code I found there: $returnopts[] = array( 'id' => $option->listitemid, 'value' => $option->listitemvalue, 'label' => $option->listitemlabel, 'selected' => $selected); What is causing this problem? How can I fix this? Edited December 30, 2014 by CrazyYoda Quote Link to comment Share on other sites More sharing options...
Zane Posted December 31, 2014 Share Posted December 31, 2014 Where are you declaring $option. Either those properties do not exist, as the error suggests, or ... something else. Quote Link to comment Share on other sites More sharing options...
yozyk Posted December 31, 2014 Share Posted December 31, 2014 @crazyyoda, var_dump($option); gives you some information about the object. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.