Actions

FAQ - General

From LimeSurvey Manual

Revision as of 17:15, 17 March 2018 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

Primeros pasos

If you don't want to read half the manual to get a feeling what can be done with LimeSurvey we recommend to watch some videos (see below).

Después de ver los vídeos, la página Creating surveys - Introduction del manual de LimeSurvey puede ser un buen lugar de inicio.

Necesita una introducción rápida de LimeSurvey¡

Para una introducción rápida y sencilla sobre LimeSurvey, puede ver el siguiente tutorial en vídeo LimeSurvey Video-Tutorial.

En este otro tutorial, en vídeo, se muestra como comenzar a utilizar  LimeSurvey para crear encuestas online. En este otro vídeo veremos como crear nuestra primera encuesta, como la enviaremos a un usuario y posteriormente veremos los resultados de la encuesta que se han enviado.

Se encuentra disponibles más vídeos en YouTube:

LimeSurvey:

Vídeos antiguos sobre PHP-surveyor :

Diseño de las encuestas.

How can I remove index.php from the URL path to get a shorter URL

If you want to use fancy URLs and so not have /index.php in every URL please edit /application/config/config.php and change

'showScriptName' => true,

to

'showScriptName' => false,

For this to work properly you must use an Apache webserver with a properly installed mod_rewrite module.

If you are using the Nginx http server (with php running via FastCGI) and want to use the 'urlFormat' => 'path' setting, consider the following Nginx site configuration:

server {
    set $host_path "/PATH/TO/LIMESURVEY";
    server_name  YOUR.SERVER.FQDN;
    root /PATH/TO/LIMESURVEY;
    charset utf-8;
    try_files $uri /index.php?$args;
    location ~ ^/(protected|framework|themes/\w+/views) {
        deny  all;
    }
    #avoid processing of calls to unexisting static files by yii
    location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
        try_files $uri =404;
    }
    location ~ \.php$ {
        fastcgi_split_path_info  ^(.+\.php)(.*)$;
        try_files $uri index.php;
        fastcgi_pass   127.0.0.1:9000; # Change this to match your settings
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param  SCRIPT_NAME      $fastcgi_script_name;
    }
}

¿Cómo puedo ocultar el asterisco de color rojo (*) que indica que una pregunta es obligatoria?

In 'LimeSurvey 2.x ,' the red asterisk of mandatory questions is set within the template.css file ("asterisk" class). To hide it:

  • Open the template editor
  • Create a copy of the template you wish to modify
  • Select the "template.css" file and search for the asterix class
  • Add the following line at the end of the asterix class".asterisk {display: none;}".
  • Save template.css
  • Clear your browser cache so that the edited template.css is reloaded and not taken from cache.

Versiones anteriores

  • Abra el archivo qanda.php en su editor de texto favorito.
  • Busque la cadena "asterisk".
  • Comente la siguiente línea con dos barras "//" al comienzo de la línea.
  • Ejemplo:
    • original: $qtitle = ''.$clang->gT('*').''.$qtitle;
    • modificado: // $qtitle = ''.$clang->gT('*').''.$qtitle;

¿Cómo puedo empotrar un archivo de vídeo flash?

First go to Global settings and deactivate the XSS-filter. Please also read up in the implications deactivating that filter. The following steps won't work if the filter is active.

  1. Navigate to the place in your survey where you want insert your Flash file. This can be anywhere where you can use the integrated HTML editor, for example in questions, subquestions, answers, survey welcome/end text and many more.
  2. Open the full-screen editor mode by clicking the 'LimeFitWin' button on the editor tool-bar.
  3. On the full-screen editor tool-bar you will find a little button with a Flash symbol. Click on it. A dialog will open.
  4. In this dialog you can give either the path to an existing Flash file somewhere OR you click the 'Browse server' button.
  5. If you clicked the 'Browse server' button you will be presented with a file browser and on the bottom an file upload field. Choose now an existing file or upload a file first.

¡Esto es todo! Si encuentra que esta descripción se encuentra incompleta, por favor, no dude en actualizarla.

¿Cómo puedo eliminar alguno de los textos que se muestran a continuación?.

"Hay X preguntas".

"Una nota sobre la privacidad...".

"Código de la pregunta".

All these texts are inserted at the template you are using by placeholders. You can easily remove them. Go to the Template Editor and remove the {THEREAREXQUESTIONS} / {PRIVACYMESSAGE} / {QUESTION_CODE} placeholder(s).

Configuración de las encuestas.

¿Cómo puedo crear una encuesta que sea abierta para todo el mundo?

To make a survey public to everyone you should:

Su encuesta debería aparecer listada en la página principal de tu instalación de LimeSurvey. Puede publicar el enlace a la encuesta en su sitio web o blog y todo el mundo podrá ver la encuesta sin ningún tipo de restricción.

¿Cómo puedo hacer que mi sistema deje de enviar mensajes de confirmación?

If you are using tokens and a participant fills out the survey, a confirmation email is sent to his/her email address. If you don't want this message to be sent just delete the whole confirmation email subject and message. You have to switch to source code mode to be able to delete all the text. Save the empty message and no confirmation emails should be sent anymore.

¡Ayuda!, Accidentalmente...

I forgot my admin password. How do I reset it?

Version 2.x.x and newer

  1. Access to your server with a command line (ssh for example)
  2. Ensure you have php command line access (see http://php.net/features.commandline.php).
  3. Go to your limesurvey directory
  4. Launch this command php application/commands/starter.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS or php application/commands/console.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASSThe php can need complete directory access, example /usr/bin/php

Version 2.x.x and newer with only FTP access

See ResetPasswordController

Directly change the password at the database

If you have direct access to the Limesurvey database you can change the old password there by uploading the new password as SHA256 hash. You can create the SHA256 hash of your password here.

For example, you can use this instruction to set password to password:

UPDATE lime_users SET password = 0x35653838343839386461323830343731353164306535366638646336323932373733363033643064366161626264643632613131656637323164313534326438 WHERE uid =1;

Here with prefix to lime_ and database selected.

¿Cómo puedo restaurar datos de una encuesta desactivada?

El equipo de LimSurvey siempre utiliza la opción time-out, en vez de desactivar la encuesta. Si accidentalmente ha cerrado su encuesta es importante que no cambie nada en su encuesta.

Entonces, y sólo entonces los siguientes pasos le ayudarán a recuperar la encuesta:

  1. Active su encuesta de nuevo.
  2. Diríjase al menú "Explorar las respuestas de esta encuesta".
  3. Haga clic en el botón "Importar respuestas desde una tabla de una encuesta desactivada" button.
  4. Selecciona la tabla de origen.
  5. Haga clic en el botón "Importar respuestas".

He borrado una pregunta/grupo de preguntas/encuesta!

¡Vaya! Eso si que es mala suerte. Si ha eliminado, realmente, ha perdido los datos. En este caso,es posible que una copia de seguridad le ayudé (cosa que por supuesto hace con regularidad, ¿no?)..

Requisitos de Hardware y Software.

For general requirements please refer to our installation instructions.

¿Qué limitaciones tiene LimSurvey?...

...en relación a la velocidad.

No hay ninguna limitación con la velocidad de LimeSurvey. Todo depende como rápido que sea su servidor y su conexión a Internet. Si está teniendo problemas con un gran número de usuarios en un espacio de tiempo corto y no sabe si su servidor esta preparado para manejar esta situación puede comprobar este hilo en el cual los usuarios comparten sus experiencias en relación a este problema.

...en relación al tamaño de las encuestas.

Note: 'Survey size' refers to the maximum number of questions (and answers) in your survey - don't confuse this with the number of replies on your survey (there is no limitation on that). Theoretically there would also be no limit on the maximum number of questions/answers in LimeSurvey. But the database engine you are using has several limits. The most important one is the limit on the number of fields(columns) in the result table.

  • MySQL ISAM: The sum of the lengths of the VARCHAR and CHAR columns in a table may be up to 64KB.
  • MySQL InnoDB: Maximum number of 1000 columns
  • MS SQL Server 2000: Maximum number of 1024 columns
  • Postgres: Maximum number of 250-1600 columns depending on column types. The maximum number of columns can be quadrupled by increasing the default block size to 32k. See Installation FAQ and PostgreSQL FAQ.

Take care here: please think about what you do before you do it: an array of 10 x 10 items already costs you 100 columns. Rule of thumb: every item on the screen that can be filled in or selected costs one column!

El más importante es el límite en el numero de campos (columnas) que se pueden crear en la tabla de resultados.

  • MySQL ISAM: La suma de las longitudes de las columnas de tipo VARCHAR y CHAR en una tabla puede llegar hasta 64KB.
  • MySQL InnoDB: El número máximo de columnas es 1000.
  • MS SQL Server 2000: El número máximo de columnas es 1024.
  • Postgres: El número máximo de columnas está entre 250-1600 dependiendo del tipo de columna. El número máximo de columnas puede cuadruplicarse si aumenta el tamaño de bloque por defecto a 32k. Vea el Installation FAQ y el  PostgreSQL FAQ.

El motor mySQL ISAM es el más complicado. Solo le permite un máximo de 65,535 bytes por fila y los caracteres utf8 pueden necesitar hasta tres bytes por carácter con lo que el máximo puede ser solo de 21,844 caracteres (aunque esto depende en completamente de la codificación que utilice en su base de datos).

Puede hacerse una idea del tamaño de la encuesta calculándolo de la siguiente manera:

  • Todas las preguntas numéricas múltiples: 20 caracteres por cada respuesta.
  • Todas las preguntas de selección múltiple y las respuestas a un array de preguntas: 5 caracteres por cada respuesta.
  • Cualquier otro tipo de pregunta: 5 caracteres.
  • Para evitar problemas incremente un 10% el resultado obtenido.

¿Cómo incrementar el número máximo de columnas en PostgreSQL?.

En caso de que su encuesta contenga demasiadas preguntas, puede definir un tamaño de bloques diferente en PostgreSQL, con lo cual será posible crear más columnas. Es posible que esto sea más complicado porque debe compilar PostgreSQL y establecer BLCKSZ a un valor superior, como 16kiB o 32kiB. Para ello busque la opción de configuración "--with-blocksize=BLOCKSIZE". Para más detalles sobre este problema, puede ver los archivos de la lista de correo de PostgreSQL o preguntar en la siguiente dirección de correo electrónico(pgsql-patches(at)postgresql(dot)org).

Instrucciones para Debian (Gracias a Martin Pitt):

sudo apt-get build-dep postgresql-8.3
apt-get source postgresql-8.3
cd postgresql-8.3-*
debian/rules patch
sensible-editor build-tree/postgresql-8.3.5/src/include/pg_config_manual.h
dpkg-buildpackage -us -uc -b -nc

Note: the above could not be reproduced on Ubuntu 14.04 in August 2014. A patch is required (the configuration option is not enough). See (tested with PostgreSQL 9.3 on Linux): Instructions for increasing the maximum number of columns in PostgreSQL on Linux

Fatal error: Allowed memory size

Depending on your server configuration you might run into memory problems being reported by an error like "Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 233472 bytes) in /path/to/htdocs/limesurvey/filename.php on line 7296".

You can try to raise the limit by adding an optional setting to LimeSurvey's config file.

Please mind that such local settings by an application can always be overruled by global server settings. To increase the memory limit to 128M directly on your server you could try adding:

  • memory_limit = 128M to your server's main php.ini file (recommended, if you have access)
  • memory_limit = 128M to a php.ini file in the LimeSurvey root
  • php_value memory_limit 32M in a .htaccess file in the LimeSurvey root
  • ini_set('memory_limit', '128M'); in your config.php

Specific configuration

Under certain circumstances, you need tu update LimeSurvey configuration in application/config/config.php

2 limesurvey instance on same domain

With 2 limesurvey instance on same domain, but different directory, you need to update the session configuration.

For example, if you have example.org/ls1 and example.org/ls2 : update the ls1 config file

        'session' => array (
            'cookieParams' => array(
                    'path' => '/ls1',
                ),
            ),
        'request' => array(
            'csrfCookie' => array( 'path' => '/ls1' )
        ),