1
matanguay
Bug in form Survey version 0.6 (Beta) By Mithrandir
  • 2006/11/30 15:00

  • matanguay

  • Just popping in

  • Posts: 2

  • Since: 2006/11/30


I have a problem with this module. I try and configure Survey 0.6 on my home server. All the module works great and I want to use for petitions. After, I upload the module on my real hosted server and we have a bug, I don't understand because, my home server have the same configuration of my real server. The difference is My home server are in Windows and my real server are in Linux. You can see the configuration of both server bottom the message. I try to put the php.ini configuration same on both server, but the module not working on linux. I try many of thing, but not success. I thing the problem can be the capital letter in the code, because, linux manages the capital letters and not windows. So I supposed the problem are here, but i don't know how to resolve the problem. I can't show the form in the admin panel, so I cannot create the survey because I can't add question. If you want to see the problem, follow the procedure :

1 - Go on http://www.fansdescanadiens.com
Login : testmax
Passw : testmax
2 - Go on this adress
http://www.fansdescanadiens.com/modules/survey/admin/index.php
3 - clique on EDIT QUESTION or the small box with different color
4 - try to add a "text line" and GO
5 - Nothing appear and in the debug mode :
Quote:

Warning: main() [function.main]: open_basedir restriction in effect. File(/elements/checkbox.php) is not within the allowed path(s): (:/tmp) in file /modules/survey/class/element.php line 3

Warning: main(elements/checkbox.php) [function.main]: failed to open stream: Operation not permitted in file /modules/survey/class/element.php line 3

Warning: main() [function.include]: Failed opening 'elements/checkbox.php' for inclusion (include_path='.:') in file /modules/survey/class/element.php line 3

Warning: main() [function.main]: open_basedir restriction in effect. File(/elements/surveydate.php) is not within the allowed path(s): (:/tmp) in file /modules/survey/class/element.php line 4

Warning: main(elements/surveydate.php) [function.main]: failed to open stream: Operation not permitted in file /modules/survey/class/element.php line 4

Warning: main() [function.include]: Failed opening 'elements/surveydate.php' for inclusion (include_path='.:') in file /modules/survey/class/element.php line 4

Warning: main() [function.main]: open_basedir restriction in effect. File(/elements/label.php) is not within the allowed path(s): (:/tmp) in file /modules/survey/class/element.php line 5

Warning: main(elements/label.php) [function.main]: failed to open stream: Operation not permitted in file /modules/survey/class/element.php line 5

Warning: main() [function.include]: Failed opening 'elements/label.php' for inclusion (include_path='.:') in file /modules/survey/class/element.php line 5

Warning: main() [function.main]: open_basedir restriction in effect. File(/elements/persondata.php) is not within the allowed path(s): (:/tmp) in file /modules/survey/class/element.php line 6

Warning: main(elements/persondata.php) [function.main]: failed to open stream: Operation not permitted in file /modules/survey/class/element.php line 6

Warning: main() [function.include]: Failed opening 'elements/persondata.php' for inclusion (include_path='.:') in file /modules/survey/class/element.php line 6

Warning: main() [function.main]: open_basedir restriction in effect. File(/elements/radio.php) is not within the allowed path(s): (:/tmp) in file /modules/survey/class/element.php line 7

Warning: main(elements/radio.php) [function.main]: failed to open stream: Operation not permitted in file /modules/survey/class/element.php line 7

Warning: main() [function.include]: Failed opening 'elements/radio.php' for inclusion (include_path='.:') in file /modules/survey/class/element.php line 7

Warning: main() [function.main]: open_basedir restriction in effect. File(/elements/select.php) is not within the allowed path(s): (:/tmp) in file /modules/survey/class/element.php line 8

Warning: main(elements/select.php) [function.main]: failed to open stream: Operation not permitted in file /modules/survey/class/element.php line 8

Warning: main() [function.include]: Failed opening 'elements/select.php' for inclusion (include_path='.:') in file /modules/survey/class/element.php line 8

Warning: main() [function.main]: open_basedir restriction in effect. File(/elements/textarea.php) is not within the allowed path(s): (:/tmp) in file /modules/survey/class/element.php line 9

Warning: main(elements/textarea.php) [function.main]: failed to open stream: Operation not permitted in file /modules/survey/class/element.php line 9

Warning: main() [function.include]: Failed opening 'elements/textarea.php' for inclusion (include_path='.:') in file /modules/survey/class/element.php line 9

Warning: main() [function.main]: open_basedir restriction in effect. File(/elements/textbox.php) is not within the allowed path(s): (:/tmp) in file /modules/survey/class/element.php line 10

Warning: main(elements/textbox.php) [function.main]: failed to open stream: Operation not permitted in file /modules/survey/class/element.php line 10

Warning: main() [function.include]: Failed opening 'elements/textbox.php' for inclusion (include_path='.:') in file /modules/survey/class/element.php line 10

Warning: main() [function.main]: open_basedir restriction in effect. File(/elements/textdhtml.php) is not within the allowed path(s): (:/tmp) in file /modules/survey/class/element.php line 11

Warning: main(elements/textdhtml.php) [function.main]: failed to open stream: Operation not permitted in file /modules/survey/class/element.php line 11

Warning: main() [function.include]: Failed opening 'elements/textdhtml.php' for inclusion (include_path='.:') in file /modules/survey/class/element.php line 11

Warning: main() [function.main]: open_basedir restriction in effect. File(/elements/radiogroup.php) is not within the allowed path(s): (:/tmp) in file /modules/survey/class/element.php line 12

Warning: main(elements/radiogroup.php) [function.main]: failed to open stream: Operation not permitted in file /modules/survey/class/element.php line 12

Warning: main() [function.include]: Failed opening 'elements/radiogroup.php' for inclusion (include_path='.:') in file /modules/survey/class/element.php line 12


INFO FOR HOSTED SERVER:
-------------------------
Website URL: http://www.fansdescanadiens.com
XOOPS Version: XOOPS 2.0.15
XOOPS Template Set: default
PHP Version: 5.0.4
MySQL Version: 4.1.20
Server Software: Apache/2.0.54 (Fedora)
User's Browser: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

INFO FOR MY HOME TEST SERVER:
-------------------------------
XOOPS Version: XOOPS 2.0.15
XOOPS Template Set: default
PHP Version: 5.0.4
MySQL Version: 4.1.21-community-nt
Server Software: Microsoft-IIS/6.0
User's Browser: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

2
stefan88
Re: Bug in form Survey version 0.6 (Beta) By Mithrandir
  • 2006/11/30 15:08

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,
You have diferent configurations for PHP in php.ini. You need to adjust "open_basedir" or "upload_tmp_dir" settings for the real server. If you do not have access to this file (probably), contact hosting company.
..

3
blueteen
Re: Bug in form Survey version 0.6 (Beta) By Mithrandir
  • 2006/11/30 15:22

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


to complete stefan's answer

"open_basedir restriction in effect" is active when safe mode=ON

with safe mode to ON and code like this : include_once("header.php");
we can sometimes see your bug.

can you control this safe mode parameter on your both servers ?
or adapt open_basedir in php.ini
if i'm rigth, this is not a big bug, and by changing somes paths in concerned files, this will be solved !

4
matanguay
Solution
  • 2006/11/30 18:23

  • matanguay

  • Just popping in

  • Posts: 2

  • Since: 2006/11/30


I found the solution
in class\element.php
Change all include_once by :

include_once(XOOPS_ROOT_PATH.'/modules/survey/class/elements/checkbox.php');
include_once(XOOPS_ROOT_PATH.'/modules/survey/class/elements/surveydate.php');
include_once(XOOPS_ROOT_PATH.'/modules/survey/class/elements/label.php');
include_once(XOOPS_ROOT_PATH.'/modules/survey/class/elements/persondata.php');
include_once(XOOPS_ROOT_PATH.'/modules/survey/class/elements/radio.php');
include_once(XOOPS_ROOT_PATH.'/modules/survey/class/elements/select.php');
include_once(XOOPS_ROOT_PATH.'/modules/survey/class/elements/textarea.php');
include_once(XOOPS_ROOT_PATH.'/modules/survey/class/elements/textbox.php');
include_once(XOOPS_ROOT_PATH.'/modules/survey/class/elements/textdhtml.php');
include_once(XOOPS_ROOT_PATH.'/modules/survey/class/elements/radiogroup.php');

Login

Who's Online

434 user(s) are online (394 user(s) are browsing Support Forums)


Members: 0


Guests: 434


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits