View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
04603Bug reportsSurvey participants (Tokens)public2010-09-29 16:29
Reporterlovepade Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Target Version1.90+Fixed in Version1.90+ 
Summary04603: OPTOUT link causes error in optout.php
Description

When I click the optout url I get this error:

Warning: file(templates/mytemplate/startpage.pstpl) [function.file]: failed to open stream: No such file or directory in /var/www/public_html/public/limesurvey/optout.php on line 84

Warning: Invalid argument supplied for foreach() in /var/www/public_html/public/limesurvey/optout.php on line 84

Warning: file(templates/mytemplate/survey.pstpl) [function.file]: failed to open stream: No such file or directory in /var/www/public_html/public/limesurvey/optout.php on line 88

Warning: Invalid argument supplied for foreach() in /var/www/public_html/public/limesurvey/optout.php on line 88
You have been already removed from this survey.
Warning: file(templates/mytemplate/endpage.pstpl) [function.file]: failed to open stream: No such file or directory in /var/www/public_html/public/limesurvey/optout.php on line 93

Warning: Invalid argument supplied for foreach() in /var/www/public_html/public/limesurvey/optout.php on line 93

As it says - It does work - the token gets marked as opted out. But its not pretty :-)

I used the default template on a fresh install, and have tried with different permissions for optout.php.

Steps To Reproduce

click on optouturl

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)9118
I will donate to the project if issue is resolved
Browserchrome
Database type & versionmysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (x86_64) using readline 5.2
Server OS (if known)Linux Debian Lenny
Webserver software & version (if known)Apache 2.0 Handler
PHP VersionPHP Version 5.2.6-1+lenny9

Users monitoring this issue

There are no users monitoring this issue.

Activities

lemeur

lemeur

2010-09-18 09:30

developer   ~12860

It says that you're using the "mytemplate" instead of the default template.
Please double check this on your survey setup.
Try with a fresh new dummy survey with default settings.

Thanks in advance,
Thibault

DenisChenu

DenisChenu

2010-09-18 10:43

developer   ~12861

Last edited: 2010-09-18 10:46

Lemeur, maybe it's again a template url and dir problem.

I think we had to replace
template/$thistpl/ by $thistpl/

and
if (!isset($thissurvey['template']) || !$thissurvey['template'])

{

$thistpl=validate_templatedir("default");

}

else

{

$thistpl=validate_templatedir($thissurvey['template']);

}

by
//SET THE TEMPLATE DIRECTORY
if (!$thissurvey['templatedir'])
{
$thistpl=sGetTemplatePath($defaulttemplate);
}
else
{
$thistpl=sGetTemplatePath($thissurvey['templatedir']);
}

Just like in index.php

:)

PS: maybe i have time to do a patch this week end

lovepade

lovepade

2010-09-18 13:28

reporter   ~12863

@Thibault - this happens with the default template as well. It would be amazing if Shnoulle could fix a patch :-D

lemeur

lemeur

2010-09-20 09:24

developer   ~12864

Shnoulle, I assignt his one to you then.
Thanks for your work as developper by the way ;-)

Thibault

DenisChenu

DenisChenu

2010-09-20 15:54

developer   ~12875

fixed in 9138
Using of templatereplace function and add a div wrapper and a p optoutmessage (same as tokenmessage)

Thanks Thibault !!

c_schmitz

c_schmitz

2010-09-29 16:29

administrator   ~12933

New 1.90+ version was released.

Issue History

Date Modified Username Field Change
2010-09-16 12:14 lovepade New Issue
2010-09-18 09:30 lemeur Note Added: 12860
2010-09-18 09:30 lemeur Assigned To => lemeur
2010-09-18 09:30 lemeur Status new => feedback
2010-09-18 10:43 DenisChenu Note Added: 12861
2010-09-18 10:46 DenisChenu Note Edited: 12861
2010-09-18 13:28 lovepade Note Added: 12863
2010-09-18 13:28 lovepade Status feedback => assigned
2010-09-20 09:23 lemeur Assigned To lemeur => DenisChenu
2010-09-20 09:24 lemeur Note Added: 12864
2010-09-20 15:54 DenisChenu Note Added: 12875
2010-09-20 15:55 DenisChenu Status assigned => resolved
2010-09-20 15:55 DenisChenu Resolution open => fixed
2010-09-20 15:55 DenisChenu Fixed in Version => 1.90+
2010-09-20 15:55 DenisChenu Target Version => 1.90+
2010-09-29 16:29 c_schmitz Note Added: 12933
2010-09-29 16:29 c_schmitz Status resolved => closed
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)