View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
06151Bug reportsStatisticspublic2012-06-20 14:08
Reporteruser13881Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.92+ 
Fixed in Version1.92+ 
Summary06151: CSS errors on public statistics page
Description
  1. The public stastistics page displays without any CSS, and when viewing source it contains no reference to the applicable css template.

  2. In addition, the referenced table class 'statisticssummary' does not appear in any standard templates.

  3. Finally, on line 592 of statistics_function.php there is an errant right align tag that overrides css

Additional Information

I fixed this on my own installation by replacing the //Create header section in statistics_user.php with the following code from 1.91+ (not sure which build number)

//Create header (fixes bug #3097)
$surveylanguage= $language;
sendcacheheaders();

$header= "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\&quot;>\n&quot;
. "<html xmlns=\"http://www.w3.org/1999/xhtml\&quot; xml:lang=\"".$surveylanguage."\" lang=\"".$surveylanguage."\"";
if (getLanguageRTL($surveylanguage))
{
$header.=" dir=\"rtl\" ";
}
$header.= ">\n\t<head>\n"
. "<title>$sitename</title>\n"
. "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />\n"
. "<link href=\"".$thisSurveyCssPath."/template.css\" rel=\"stylesheet\" type=\"text/css\" />\n"
. "</head>\n<body>\n";

echo $header;

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)120517
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql 5.1.52-10121017
Server OS (if known)Linux 2.6.18-028stab085.3
Webserver software & version (if known)Apache 2.2.12
PHP Version5.3.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2012-05-30 16:36

updater   ~19000

  1. I can reproduce this problem.

  2. That's possible but no bug at all since users can style this themselves I would say (Carsten, your opinion?).

  3. The problem might be related to this commit (not sure if I tracked it down correctly:
    commit f495f51389775abb690e3c90c58f968e08ee537d
    Author: magiclko <shubham.sachdeva@limesurvey.org> 2012-02-18 16:39:29
    Committer: magiclko <shubham.sachdeva@limesurvey.org> 2012-02-18 16:39:29
    Parent: 5ca3898b3421e5f3309363f6a1cb0bd51cc834cb (Fixed issue : 05643 CMS integration hack. Note: this option was removed for 2.00)
    Child: 020abcc0b7ecaeb4bb4ba62092cb05fa35a7b985 (Merged /dev branch to master)
    Branches: origin/master, master

Fixed issue 05752: statistics_user.php - always shown in baselang

Mazi

Mazi

2012-05-30 16:39

updater   ~19001

You can use the attached survey for testing.

c_schmitz

c_schmitz

2012-06-12 13:31

administrator   ~19195

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=8704

c_schmitz

c_schmitz

2012-06-20 14:08

administrator   ~19408

New 1.92+ version released.

Related Changesets

LimeSurvey: master 73969c6c

2012-06-12 04:31:56

c_schmitz

Details Diff
Fixed issue 06151: CSS errors on public statistics page Affected Issues
06151
mod - admin/statistics_function.php Diff File
mod - statistics_user.php Diff File

Issue History

Date Modified Username Field Change
2012-05-30 13:19 user13881 New Issue
2012-05-30 16:36 Mazi Note Added: 19000
2012-05-30 16:36 Mazi Assigned To => c_schmitz
2012-05-30 16:36 Mazi Status new => assigned
2012-05-30 16:39 Mazi File Added: limesurvey_survey_95145-EM_rand_test.lss
2012-05-30 16:39 Mazi Note Added: 19001
2012-06-12 13:31 c_schmitz Changeset attached => LimeSurvey master 73969c6c
2012-06-12 13:31 c_schmitz Note Added: 19195
2012-06-12 13:31 c_schmitz Resolution open => fixed
2012-06-12 13:32 c_schmitz Status assigned => resolved
2012-06-12 13:32 c_schmitz Fixed in Version => 1.92+
2012-06-20 14:08 c_schmitz Note Added: 19408
2012-06-20 14:08 c_schmitz Status resolved => closed