I'm looking to use a TeamSpeak script to show updated users and channels on a website. However, I can't install it because of these error:
[code]Warning: session_start() [function.session-start]: open(/var/chroot/home/content/03/8831203/tmp/sess_roskthct7jgsbakc1lc0pa0db0, O_RDWR) failed: No such file or directory (2) in /home/content/03/8831203/html/teamspeak/install/index.php on line 19
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/03/8831203/html/teamspeak/install/index.php:19) in /home/content/03/8831203/html/teamspeak/install/index.php on line 19
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/03/8831203/html/teamspeak/install/index.php:19) in /home/content/03/8831203/html/teamspeak/install/index.php on line 19[/code]
If anything else is needed to help me solve this, I'd be willing to provide it.
Make sure [code]session_start();[/code] is the first thing in your code - right after <?php
[code]<?php
/**
* This file is part of TeamSpeak3 Webviewer.
*
* TeamSpeak3 Webviewer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TeamSpeak3 Webviewer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TeamSpeak3 Webviewer. If not, see http://www.gnu.org/licenses/.
*/
session_name("tswv");
session_start();[/code]
Should I change that "session_start();" to right after the "<?php"? Like on a separate line?
EDIT: I moved it from line 19 to line 2, and all it did was change the error at the end from "line 19" to "line 2".
[QUOTE=ChXaXin;34223775][code]<?php
/**
* This file is part of TeamSpeak3 Webviewer.
*
* TeamSpeak3 Webviewer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TeamSpeak3 Webviewer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TeamSpeak3 Webviewer. If not, see http://www.gnu.org/licenses/.
*/
session_name("tswv");
session_start();[/code]
Should I change that "session_start();" to right after the "<?php"? Like on a separate line?
EDIT: I moved it from line 19 to line 2, and all it did was change the error at the end from "line 19" to "line 2".[/QUOTE]
session_start has be there before any thing is stated.
comments do not matter though.
[code]<?php
session_start();
/**
* This file is part of TeamSpeak3 Webviewer.
*
* TeamSpeak3 Webviewer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TeamSpeak3 Webviewer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TeamSpeak3 Webviewer. If not, see http://www.gnu.org/licenses/.
*/
session_name("tswv");
error_reporting(E_STRICT);
/* Author : Maximilian Narr
* Homepage : http://maxesstuff.de
* Email : maxe@maxesstuff.de
*/
define("PROJECTPATH", realpath("../") . "/l10n");
define("ENCODING", "UTF-8");[/code]
That's what it looks like right now, and it is still giving me the normal error.
Any idea?
Are you using that file alone or is it included by some other(s)?
Sorry, you need to Log In to post a reply to this thread.