What is this error? Help please.

More
2 years 11 months ago - 2 years 11 months ago #111162 by Serafim
Serafim created the topic: What is this error? Help please.

File Attachment:

File Name: limesurvey...5457.lss
File Size:363 KB

implode(): Invalid arguments passed

What is this error? Help please. I cant activate my survey.

Thanks

This is the error:
PHP warning
 
 implode(): Invalid arguments passed 
 
 
/srv/www/htdocs/limesurvey/application/controllers/admin/surveyadmin.php(482)
 
470                 $aViewUrls['output']= "<br />\n<div class='messagebox ui-corner-all'>\n" .
471                 "<div class='header ui-widget-header'>".$clang->gT("Activate Survey")." ($iSurveyID)</div>\n";
472                 if ($aResult['error']=='surveytablecreation')
473                 {
474                     $aViewUrls['output'].="<div class='warningheader'>".$clang->gT("Survey table could not be created.")."</div>\n";
475                 }
476                 else
477                 {
478                     $aViewUrls['output'].="<div class='warningheader'>".$clang->gT("Timings table could not be created.")."</div>\n";
479                 }
480                 $aViewUrls['output'].="<p>" .
481                 $clang->gT("Database error!!")."\n <font color='red'>" ."</font>\n" .
482                 "<pre>".implode(' ', $aResult['error'])."</pre>\n
483                 <a href='".Yii::app()->getController()->createUrl("admin/survey/sa/view/surveyid/".$iSurveyID)."'>".$clang->gT("Main Admin Screen")."</a>\n</div>" ;
484             }
485             else
486             {
487                 $aViewUrls['output']= "<br />\n<div class='messagebox ui-corner-all'>\n"
488                 ."<div class='header ui-widget-header'>".$clang->gT("Activate Survey")." ({$iSurveyID})</div>\n"
489                 ."<div class='successheader'>".$clang->gT("Survey has been activated. Results table has been successfully created.")."</div><br /><br />\n";
490 
491                 if (isset($aResult['warning']))
492                 {
493                     $aViewUrls['output'] .= "<div class='warningheader'>"
494                     .$clang->gT("The required directory for saving the uploaded files couldn't be created. Please check file premissions on the /upload/surveys directory.")
 
 
Stack Trace
 
 
 
 #0 
 
 
 
 
 
–
 /srv/www/htdocs/limesurvey/application/controllers/admin/surveyadmin.php(482): implode(" ", "surveytablecreation") 
477                 {
478                     $aViewUrls['output'].="<div class='warningheader'>".$clang->gT("Timings table could not be created.")."</div>\n";
479                 }
480                 $aViewUrls['output'].="<p>" .
481                 $clang->gT("Database error!!")."\n <font color='red'>" ."</font>\n" .
482                 "<pre>".implode(' ', $aResult['error'])."</pre>\n
483                 <a href='".Yii::app()->getController()->createUrl("admin/survey/sa/view/surveyid/".$iSurveyID)."'>".$clang->gT("Main Admin Screen")."</a>\n</div>" ;
484             }
485             else
486             {
487                 $aViewUrls['output']= "<br />\n<div class='messagebox ui-corner-all'>\n"
 
 
 
#1 
 
 
 unknown(0): SurveyAdmin->activate("755457") 
 
 
 
#2 
 
 
 
+
 
 
 /srv/www/htdocs/limesurvey/framework/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(SurveyAdmin, array("755457")) 
 
 
 
#3 
 
 
 
 
 
–
 /srv/www/htdocs/limesurvey/application/core/Survey_Common_Action.php(100): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("surveyid" => "755457", "sa" => "activate", "iSurveyId" => "755457", "iSurveyID" => "755457")) 
095             $oMethod = new ReflectionMethod($this, $sDefault);
096         }
097 
098         // We're all good to go, let's execute it
099         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
100         return parent::runWithParamsInternal($this, $oMethod, $params);
101     }
102 
103     /**
104     * Some functions have different parameters, which are just an alias of the
105     * usual parameters we're getting in the url. This function just populates
 
 
 
#4 
 
 
 
+
 
 
 /srv/www/htdocs/limesurvey/framework/web/CController.php(309): Survey_Common_Action->runWithParams(array("surveyid" => "755457", "sa" => "activate")) 
 
 
 
#5 
 
 
 
+
 
 
 /srv/www/htdocs/limesurvey/framework/web/CController.php(287): CController->runAction(SurveyAdmin) 
 
 
 
#6 
 
 
 
+
 
 
 /srv/www/htdocs/limesurvey/framework/web/CController.php(266): CController->runActionWithFilters(SurveyAdmin, array()) 
 
 
 
#7 
 
 
 
 
 
–
 /srv/www/htdocs/limesurvey/application/controllers/AdminController.php(169): CController->run("survey") 
164                     $this->redirect($this->createUrl('/admin/authentication/sa/login'));
165                 }
166                 
167             }
168 
169             return parent::run($action);
170     }
171 
172     /**
173     * Routes all the actions to their respective places
174     *
 
 
 
#8 
 
 
 
+
 
 
 /srv/www/htdocs/limesurvey/framework/web/CWebApplication.php(276): AdminController->run("survey") 
 
 
 
#9 
 
 
 
+
 
 
 /srv/www/htdocs/limesurvey/framework/web/CWebApplication.php(135): CWebApplication->runController("admin/survey/sa/activate") 
 
 
 
#10 
 
 
 
+
 
 
 /srv/www/htdocs/limesurvey/framework/base/CApplication.php(162): CWebApplication->processRequest() 
 
 
 
#11 
 
 
 
+
 
 
 /srv/www/htdocs/limesurvey/index.php(178): CApplication->run()
Attachments:
Last Edit: 2 years 11 months ago by DenisChenu.

Please Log in to join the conversation.

More
2 years 11 months ago #111192 by Serafim
Serafim replied the topic: What is this error? Help please.
Can someone help?

I ve tested the survey and it worked fine, but when i try to activate i have this error.

Please Log in to join the conversation.

More
2 years 11 months ago #111210 by DenisChenu
DenisChenu replied the topic: What is this error? Help please.
Hi,

What is Your LS version ?

Because you have a lot of question code with accent.

Attention: Several question codes were updated. Please check these carefully as the update may not be perfect with customized expressions.


Maybe fixing this can be a great solution.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: Serafim

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #111217 by Serafim
Serafim replied the topic: What is this error? Help please.
My LS is Version 2.00+ Build 130116

But I found the problem, but I don´t think it as a solution.

I have a lot of attributes, and the results table just gets too big, my questions are not much, but they are matrix with numbers from 0 to 10. I tried to remove a few options from one of the questions and it worked.

Or I find a solution or I have to review some of the questions.
Last Edit: 2 years 11 months ago by Serafim.

Please Log in to join the conversation.

More
1 year 2 months ago - 1 year 2 months ago #136039 by delarammahdaviii
delarammahdaviii replied the topic: What is this error? Help please.

Serafim wrote: I have a lot of attributes, and the results table just gets too big, my questions are not much, but they are matrix with numbers from 0 to 10. I tried to remove a few options from one of the questions and it worked.

exactly that's my problem
big survey , a lot of attributes , a lot of sub question's relevance , very big array numbers
a lot of question have logic connection
What shall I do now? :( :( :(
Last Edit: 1 year 2 months ago by delarammahdaviii.

Please Log in to join the conversation.

More
1 year 2 months ago #136045 by Ben_V
Ben_V replied the topic: What is this error? Help please.
You may read this other post about survey size , number of columns etc. A provided solution is to split big survey in several smallest surveys (sharing some key ID) :(

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now