Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Admin - Question Summary Page loads front page index

  • jkarels
  • jkarels's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #138813 by jkarels
Originally when I tried to load the question summary page (example domain.com/index.php?r=admin/questions/sa/view/surveyid/545867/gid/1/qid/3), I would get an internal server error. I was able to fix this step by going to the config file and switching 'urlFormat' to 'get'

Now when I go to the question summary page, it looks like it is trying to load an admin-style page, and then instead it loads the front page content.

Here is the contents of the .htaccess file:

DirectoryIndex index.php index.html index.htm
<IfModule mod_rewrite.c>
RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f

# otherwise forward it to index.php
RewriteRule . index.php
</IfModule>
# General setting to properly handle LimeSurvey paths
# AcceptPathInfo on
The topic has been locked.
  • jkarels
  • jkarels's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago - 7 years 9 months ago #138815 by jkarels
The same occurs when I try to use the plugin manager option -index.php?r=admin/pluginmanager/sa/index
It gives me an internal server error when I have 'urlFormat' set to 'path', and redirects to the front page when I have 'urlFormat' set to 'get'
Last edit: 7 years 9 months ago by jkarels.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 9 months ago #138824 by DenisChenu
Build number of limesurvey please ?

And what is your webserver ? apache , IIS , Nginx ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • jkarels
  • jkarels's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #138838 by jkarels
Linux, apache, mysql

I did some more digging last night regarding the plugin manager page breaking.
In application/views/admin/pluginmanager/index.php, if I comment out this code, the page at least loads (though mostly empty).
Code:
    $this->widget('bootstrap.widgets.TbGridView', array(
        'dataProvider'=>$dataProvider,
        'id' => 'plugins-grid',
        'summaryText'=>gT('Displaying {start}-{end} of {count} result(s).') .' '.sprintf(gT('%s rows per page'),
            CHtml::dropDownList(
                'pageSize',
                $pageSize,
                Yii::app()->params['pageSizeOptions'],
                array('class'=>'changePageSize form-control', 'style'=>'display: inline; width: auto'))),
        'columns'=>$gridColumns,
    ));
 
The topic has been locked.
  • jkarels
  • jkarels's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #138855 by jkarels
I used one of my dummy test sites to do some further debugging efforts. It turns out that my .htaccess file configuration is messing things up. :blink:

In order to organize my files in the public_html folder, I have my www.example.com files stored in public_html/www and the subdomains are in public_html/subdomain1, public_html/subdomain2, etc.

Here's the htaccess code I have in the public_html directory
Code:
RewriteEngine on
  RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
  RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

When I run limesurvey on a clean domain (without my subdirectory configuration), the plugin manager / question overview pages work.
The topic has been locked.
  • jkarels
  • jkarels's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #138856 by jkarels
I did further research on this. My attempt to nest all of my subdomain folders in www, and have a distinct 'www/www' folder threw everything off. Since I have VPS, I created a separate CPanel account for the survey subdomain. That fixed everything.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose