Bug: Notice: Undefined property: stdClass::$key in
Bug: Notice: Undefined property: stdClass::$key in
components/com_communitysurveys/views/response/tmpl/default_form.php on line 128
Versions: com_communitysurveys_v3.5.9
with cjlib v 2.0.12
Joomla 2.5.16 / php5.5.1-2
I've a survey with 3 pages:
When filling in the survey and after switching to page 2, a notice is shown:
I digged into the code, and found that the object $this->item->key _does_ exist on page 1, but if you switch to page 2 the $this-item->key is gone and a message is fired!
I made a dump of the object $this-item (@page2) of my survey on a test platform (no "key"):
a var_dump($this->item) outputs:
Ihre Antworten werden streng vertraulich behandelt. Was Sie sagen ist uns wichtig, bitte reagieren Sie noch heute. Für weiter Informationen rufen Sie uns an: +43 (1) 4020805-0 oder
' (length=230)
public 'endtext' => string 'Danke für Ihre Antworten.
Hochachtungsvoll,
>>> On page = 1, the value of key looks like:
public 'key' => string '5yjJR9PAEYvF0vSeiUncI5nfhcsxNurB' (length=32)
BR
Thomas Kuschel alias oe1tkt
I'm responsible for the website www.loytec.com; Mr Dietmar Loy who is logged-in bought your software community surveys;
Thomas
Versions: com_communitysurveys_v3.5.9
with cjlib v 2.0.12
Joomla 2.5.16 / php5.5.1-2
I've a survey with 3 pages:
When filling in the survey and after switching to page 2, a notice is shown:
( ! ) Notice: Undefined property: stdClass::$key in /home/tkuschel/workspace/joomla/src/components/com_communitysurveys/views/response/tmpl/default_form.php on line 128 Call Stack #TimeMemoryFunctionLocation 10.0001138280{main}( )../index.php:0 20.10293013696JSite->dispatch( )../index.php:42 30.10443061260JComponentHelper::renderComponent( )../application.php:197 40.10823120456JComponentHelper::executeComponent( )../helper.php:351 50.10823137552require_once( '/home/tkuschel/workspace/joomla/src/components/com_communitysurveys/communitysurveys.php' )../helper.php:383 60.11343223980CommunitySurveysController->execute( )../communitysurveys.php:58 70.11423252768JController->execute( )../controller.php:112 80.11423253212CommunitySurveysControllerResponse->save_response( )../controller.php:761 90.11973300644CommunitySurveysControllerResponse->display_to_survey_form( )../response.php:160 100.12193368464CommunitySurveysViewResponse->display( )../response.php:227 110.12283387348JView->display( )../view.html.php:160 120.12283387648JView->loadTemplate( )../view.php:205 130.12293405800include( '/home/tkuschel/workspace/joomla/src/components/com_communitysurveys/views/response/tmpl/default_form.php' )../view.php:649 ">
I digged into the code, and found that the object $this->item->key _does_ exist on page 1, but if you switch to page 2 the $this-item->key is gone and a message is fired!
I made a dump of the object $this-item (@page2) of my survey on a test platform (no "key"):
a var_dump($this->item) outputs:
object(stdClass)[1018]
public 'id' => string '2' (length=1)
public 'title' => string 'Kundenzufriedenheit' (length=19)
public 'alias' => string 'kundenzufriedenheit' (length=19)
public 'created_by' => string '42' (length=2)
public 'created' => string '2013-12-19 14:57:26' (length=19)
public 'catid' => string '1127' (length=4)
public 'introtext' => string 'Ihre Meinung zählt!
Ihre Antworten werden streng vertraulich behandelt. Was Sie sagen ist uns wichtig, bitte reagieren Sie noch heute. Für weiter Informationen rufen Sie uns an: +43 (1) 4020805-0 oder
' (length=230)
public 'endtext' => string 'Danke für Ihre Antworten.
Hochachtungsvoll,
Ihr LOYTEC-Marketing-Team.' (length=73)
public 'custom_header' => string 'Kundenzufriedenheit Umfrage - LOYTEC electronics GmbH' (length=53)
public 'private_survey' => string '0' (length=1)
public 'skip_intro' => string '0' (length=1)
public 'notification' => string '1' (length=1)
public 'backward_navigation' => string '1' (length=1)
public 'display_progress' => string '1' (length=1)
public 'survey_key' => string '5v1jhHSwVjtDkHYzTE1YLhdOJyAGBpX7' (length=32)
public 'public_permissions' => string '0' (length=1)
public 'publish_up' => string '0000-00-00 00:00:00' (length=19)
public 'publish_down' => string '0000-00-00 00:00:00' (length=19)
public 'max_responses' => string '0' (length=1)
public 'responses' => string '0' (length=1)
public 'anonymous' => string '1' (length=1)
public 'redirect_url' => null
public 'display_template' => string '1' (length=1)
public 'display_notice' => string '1' (length=1)
public 'published' => string '1' (length=1)
public 'restriction' => string 'cookie' (length=6)
public 'email' => string 'tkuschel@loytec.com' (length=19)
public 'username' => string 'Thomas Kuschel' (length=14)
public 'pages' =>
array (size=3)
0 => string '4' (length=1)
1 => string '5' (length=1)
2 => string '6' (length=1)
public 'response_id' => int 7
public 'pid' => string '5' (length=1)
public 'current' => string '2' (length=1)
public 'finalize' => int 0
public 'start' => boolean false
public 'questions' =>
array (size=6)
38 =>
object(stdClass)[998]
public 'id' => string '38' (length=2)
public 'title' => string 'Website und Newsletter' (length=22)
public 'description' => string '' (length=0)
public 'question_type' => string '1' (length=1)
public 'page_number' => string '5' (length=1)
public 'responses' =>
array (size=0)
...
public 'sort_order' => string '1' (length=1)
public 'mandatory' => string '0' (length=1)
public 'created_by' => string '73' (length=2)
public 'custom_choice' => string '0' (length=1)
public 'orientation' => string 'H' (length=1)
37 =>
object(stdClass)[999]
public 'id' => string '37' (length=2)
public 'title' => string 'Wie häufig besuchen Sie unsere Website www.loytec.com?' (length=55)
public 'description' => string '' (length=0)
public 'question_type' => string '2' (length=1)
public 'page_number' => string '5' (length=1)
public 'responses' =>
array (size=1)
...
public 'sort_order' => string '2' (length=1)
public 'mandatory' => string '1' (length=1)
public 'created_by' => string '73' (length=2)
public 'custom_choice' => string '0' (length=1)
public 'orientation' => string '' (length=0)
public 'answers' =>
array (size=5)
...
39 =>
object(stdClass)[1002]
public 'id' => string '39' (length=2)
public 'title' => string 'Sie besuchen unsere Website www.loytec.com um:' (length=46)
public 'description' => string 'Multi selection is possible' (length=43)
public 'question_type' => string '3' (length=1)
public 'page_number' => string '5' (length=1)
public 'responses' =>
array (size=1)
...
public 'sort_order' => string '3' (length=1)
public 'mandatory' => string '0' (length=1)
public 'created_by' => string '73' (length=2)
public 'custom_choice' => string '1' (length=1)
public 'orientation' => string 'H' (length=1)
public 'answers' =>
array (size=8)
...
40 =>
object(stdClass)[1015]
public 'id' => string '40' (length=2)
public 'title' => string 'Wie beurteilen Sie die Aufbereitung der Inhalte, die Sie auf www.loytec.com finden?' (length=83)
public 'description' => string '' (length=0)
public 'question_type' => string '2' (length=1)
public 'page_number' => string '5' (length=1)
public 'responses' =>
array (size=1)
...
public 'sort_order' => string '4' (length=1)
public 'mandatory' => string '1' (length=1)
public 'created_by' => string '73' (length=2)
public 'custom_choice' => string '0' (length=1)
public 'orientation' => string '' (length=0)
public 'answers' =>
array (size=5)
...
41 =>
object(stdClass)[1001]
public 'id' => string '41' (length=2)
public 'title' => string 'Wie beurteilen Sie unsere Newsletter' (length=36)
public 'description' => string 'Erhalten Sie unseren Newsletter (LOYTEC Info, New Software Releases)?' (length=69)
public 'question_type' => string '2' (length=1)
public 'page_number' => string '5' (length=1)
public 'responses' =>
array (size=1)
...
public 'sort_order' => string '5' (length=1)
public 'mandatory' => string '1' (length=1)
public 'created_by' => string '73' (length=2)
public 'custom_choice' => string '0' (length=1)
public 'orientation' => string '' (length=0)
public 'answers' =>
array (size=2)
...
42 => &
object(stdClass)[1049]
public 'id' => string '42' (length=2)
public 'title' => string 'Wenn ja, fühlen Sie sich durch den Newsletter gut informiert?' (length=62)
public 'description' => string '' (length=0)
public 'question_type' => string '2' (length=1)
public 'page_number' => string '5' (length=1)
public 'responses' =>
array (size=1)
...
public 'sort_order' => string '6' (length=1)
public 'mandatory' => string '0' (length=1)
public 'created_by' => string '73' (length=2)
public 'custom_choice' => string '0' (length=1)
public 'orientation' => string '' (length=0)
public 'answers' =>
array (size=5)
...
public 'pageno' => int 2
================ end of dump ===============================
>>> On page = 1, the value of key looks like:
public 'key' => string '5yjJR9PAEYvF0vSeiUncI5nfhcsxNurB' (length=32)
BR
Thomas Kuschel alias oe1tkt
I'm responsible for the website www.loytec.com; Mr Dietmar Loy who is logged-in bought your software community surveys;
Thomas
Access to viewing replies is restricted.
Showing 2 of 2 replies
You do not have permissions for replying to this topic.