View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
03582Bug reportsSurvey editingpublic2009-09-15 12:30
Reporteruser4590Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionunable to reproduce 
Product Version1.85+ 
Summary03582: Issue when attempting to create Survey
Description

When trying to create a survey, I get the following,

Warning: Invalid argument supplied for foreach() in D:\InternalWebsites\Intranet2009\limesurvey\classes\adodb\adodb-lib.inc.php on line 806

Warning: Invalid argument supplied for foreach() in D:\InternalWebsites\Intranet2009\limesurvey\classes\adodb\adodb-lib.inc.php on line 806

Warning: array_map() [function.array-map]: Argument #2 should be an array in D:\InternalWebsites\Intranet2009\limesurvey\admin\html.php on line 442

Notice: Undefined variable: currentadminlang in D:\InternalWebsites\Intranet2009\limesurvey\admin\html.php on line 942

Notice: Undefined index: surveyls_url in D:\InternalWebsites\Intranet2009\limesurvey\admin\html.php on line 968

Additional Information

The system isn't writing the survey back to the database.

I can current enter all this information in to the survey form with no problem, but as soon as I click the "Submit Survey" button and the page refreshes, at the bottom I get this. I've activated the debug option in the config.php file and the same information is written to the top of the page.

Any assistance you could lend would be fantasic.

Apologies, but I cannot put a link to the survey as its hosted on an internal web server.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)7460
I will donate to the project if issue is resolved
BrowserInternet Explorer 6
Database type & versionMicrosoft SQL 2000
Server OS (if known)Windows Server 2003
Webserver software & version (if known)IIS 6
PHP Version5.2.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2009-08-21 10:53

administrator   ~09192

Last edited: 2009-08-27 16:46

This is not reproducable here with SQL Server 2005

Can you please put
$debug=1;
in your config.php

and clear your database, retry installation and see what error you get then when you try to create a survey. Check for any errors.

user4590

2009-08-24 10:31

  ~09198

I'm afraid this hasn't resolved it. Installation went fine. No errors. I've created the database already, setup a SQL user that has DBO Access and the programmed this information in to the config.php file. I have then dropped all the tables from the database, entered the debug line in to the code, saved the config.php file and then access the admin installation. Created the database tables correctly, removed the installation folder (can't login to admin interface without this removal) then tried logging in with the username and password setup in the config.php file, tried to create a survey and get the same error again.

Sorry, but could you try using SQL Server 2000 with your install to see if you get an issue. Thats the only difference I think we're having here.

Thanks :)

c_schmitz

c_schmitz

2009-08-26 16:24

administrator   ~09225

I am sorry but I don't have MS SQL Server 2000 handy right now. It may take some time until I get access to one. MSSQL 2000 is on the other hand 9 years old - maybe it is time to update.

c_schmitz

c_schmitz

2009-08-28 15:39

administrator   ~09245

I tested on MSSQL Server 2000 now - works fine here.
I guess it is something with your server or configuration. Can you attach your config.php please?

user4590

2009-09-01 16:25

  ~09309

I don't see how showing the config.php file will make a difference as the ssytem is already creating the databases on the server using the username and password I have programmed and alsio allowing me to add users and other bits and pieces to the system.

Here is a copy of the file for your review, but I'm don't think it will help.

Thanks

$databasetype = 'odbc_mssql'; // ADOdb database driver - valid values are mysql, odbc_mssql or postgres
$databaselocation = 'SERVER_NAME_HERE'; // Network location of your Database - for odbc_mssql use the mssql servername, not localhost or IP
$databasename = 'LIMESURVEYS'; // The name of the database that we will create
$databaseuser = 'USERNAME_HERE'; // The name of a user with rights to create db (or if db already exists, then rights within that db)
$databasepass = 'PASSWORDHERE'; // Password of db user
$dbprefix = 'lime
'; // A global prefix that can be added to all LimeSurvey tables. Use this if you are sharing
// a database with other applications. Suggested prefix is 'lime_'

// Debug Option
$debug = '1';

// File Locations
$rooturl = "http://{$_SERVER['HTTP_HOST']}/limesurvey"; //The root web url for your limesurvey installation (without a trailing slash). The double quotes (") are important.

$rootdir = dirname(FILE); // This is the physical disk location for your limesurvey installation. Normally you don't have to touch this setting.
// If you use IIS then you MUST enter the complete rootdir e.g. : $rootDir='C:\Inetpub\wwwroot\limesurvey'!
// Some IIS installations also require to use forward slashes instead of backslashes, e.g. $rootDir='C:/Inetpub/wwwroot/limesurvey'!
// If you use OS/2 this must be the complete rootdir with FORWARD slashes e.g.: $rootDir='c:/limesurvey';!
// Site Setup
$sitename = 'GeneralSurvey'; // The official name of the site (appears in the Window title)

$defaultuser = 'admin'; // This is the default username when LimeSurvey is installed
$defaultpass = 'password'; // This is the default password for the default user when LimeSurvey is installed

// Email Settings

$siteadminemail = 'test@test.com'; // The default email address of the site administrator
$siteadminbounce = 'admin@test.com'; // The default email address used for error notification of sent messages for the site administrator (Return-Path)
$siteadminname = 'AdminName'; // The name of the site administrator

c_schmitz

c_schmitz

2009-09-02 18:25

administrator   ~09345

Well, your config looks okay.
Since I cannot reproduce it I cannot fix it. Since you are the only person reproting this issue so far it is likely that there is something special with your system. Unless I get direct access to your system there is no way to fix this. Do you think this is possible? If not we will have to close this bug.

user4590

2009-09-07 17:38

  ~09442

Well do you think it could be an incorrectly configured php.ini maybe?

Other than this, I cannot see why there would be any problems other than it being maybe an IIS6 issue, but thats unlikely.

At the stage I've mentioned above, is there any writing back to the files on the server by any chance, as I don't think IIS is permitted to write back to the files on the server.

Thanks

c_schmitz

c_schmitz

2009-09-07 18:23

administrator   ~09443

No writing occurs at that point and I would not know what settings in php.ini could cause this. Sorry.
Please re-open only if you can provide access to such a system or have other new intelligence. Thank you.

Issue History

Date Modified Username Field Change
2009-08-18 14:42 user4590 New Issue
2009-08-18 14:42 user4590 Status new => assigned
2009-08-18 14:42 user4590 Assigned To => user372
2009-08-18 14:42 user4590 Build Number => 7460
2009-08-18 14:42 user4590 Browser => Internet Explorer 6
2009-08-18 14:42 user4590 Database & DB-Version => Microsoft SQL 2000
2009-08-18 14:42 user4590 Operating System (Server) => Windows Server 2003
2009-08-18 14:42 user4590 Webserver => IIS 6
2009-08-18 14:42 user4590 PHP Version => 5.2.6
2009-08-21 10:53 c_schmitz Note Added: 09192
2009-08-21 10:53 c_schmitz Assigned To user372 => c_schmitz
2009-08-21 10:53 c_schmitz Status assigned => feedback
2009-08-24 10:31 user4590 Note Added: 09198
2009-08-26 16:24 c_schmitz Note Added: 09225
2009-08-27 16:46 c_schmitz Note Edited: 09192
2009-08-28 15:39 c_schmitz Note Added: 09245
2009-09-01 16:25 user4590 Note Added: 09309
2009-09-02 17:53 Mazi Status feedback => assigned
2009-09-02 18:25 c_schmitz Note Added: 09345
2009-09-07 17:38 user4590 Note Added: 09442
2009-09-07 18:23 c_schmitz Note Added: 09443
2009-09-07 18:23 c_schmitz Status assigned => resolved
2009-09-07 18:23 c_schmitz Resolution open => unable to reproduce
2009-09-15 12:30 c_schmitz Status resolved => closed
2010-10-25 00:17 c_schmitz Category Survey Design => Survey design
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing