PDA

View Full Version : [resolved] Errors



artoonie
01-27-2007, 02:24 PM
I have recently changed domain names, and I'm getting errors in news/admin/index.php:


Warning: session_start() [function.session-start]: open(/var/lib/php/session /vservers/artoonie/tmp/sess_35bfdbf91ba8b7dda036c09fdf50c40b, O_RDWR) failed: No such file or directory (2) in /vservers/artoonie/htdocs/news/admin/index.php on line 57

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /vservers/artoonie/htdocs/news/admin/index.php:57) in /vservers/artoonie/htdocs/news/admin/index.php on line 57

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /vservers/artoonie/htdocs/news/admin/index.php:57) in /vservers/artoonie/htdocs/news/admin/index.php on line 57

Warning: EP_Dev_Forum_News_Admin::require_once(../config/config.php) [function.EP-Dev-Forum-News-Admin-require-once]: failed to open stream: Permission denied in /vservers/artoonie/htdocs/news/admin/index.php on line 70

Fatal error: EP_Dev_Forum_News_Admin::require_once() [function.require]: Failed opening required '../config/config.php' (include_path='.:/usr/share/pear5') in /vservers/artoonie/htdocs/news/admin/index.php on line 70

Warning: Unknown: open(/var/lib/php/session /vservers/artoonie/tmp/sess_35bfdbf91ba8b7dda036c09fdf50c40b, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session /vservers/artoonie/tmp) in Unknown on line 0

I deleted the entire news folder, updated to 2.24, reuploaded, but i had the same errors as before.
I kept the same database (with only the necessary updates).



I a line in admin/index.php so I could have /news instead of /forum-news:
Line 376 from:

$referrer = "http://" . $_SERVER['HTTP_HOST'] . str_replace("forum-news/admin/index.php" , "", $_SERVER['PHP_SELF']);
to

$referrer = "http://" . $_SERVER['HTTP_HOST'] . str_replace("news/admin/index.php" , "", $_SERVER['PHP_SELF']);



Any ideas?
&& thanks for such an awesome script :)

Patrick
01-27-2007, 02:31 PM
This has to do with your new host (did you get a new host?) and their PHP sessions configuration. This is not a problem specific to this script. Ask your host for help in properly configuring your sessions for PHP.

It looks like your session path is incorrect. This is a php setting specific to your web host.

artoonie
01-27-2007, 03:28 PM
wow, thanks for the fast reply! :)
I contacted my host.

you rock!

edit: They resolved most of my errors. Now i get:


Warning: EP_Dev_Forum_News_Admin::require_once(../config/config.php) [function.EP-Dev-Forum-News-Admin-require-once]: failed to open stream: Permission denied in /vservers/artoonie/htdocs/news/admin/index.php on line 70

Fatal error: EP_Dev_Forum_News_Admin::require_once() [function.require]: Failed opening required '../config/config.php' (include_path='.:/usr/share/pear5') in /vservers/artoonie/htdocs/news/admin/index.php on line 70
line 70 is:
require_once("../config/config.php");

My permissions are set correctly.
I appreciate your help :)

edit, again:
randomly started working o.O thanks!