phpBB Error - PHP Warning - php

I have one phpBB forum on a shared hosting provider, and i get this error
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 905: session_start(): open(/hermes/phpsessions/S/T/-/Z/sess_ST-ZhPr8mYrwe, O_RDWR) failed: No such file or directory (2)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 905: session_start(): Cannot send session cache limiter - headers already sent (output started at [ROOT]/includes/functions.php:3906)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 1614: session_write_close(): open(/hermes/phpsessions/S/T/-/Z/sess_ST-ZhPr8mYrwe, O_RDWR) failed: No such file or directory (2)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 1614: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (4;/hermes/phpsessions)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 1618: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3906)
the strange thing here, is that happened unexpectedly one day, it used to be working correctly. Also in my private directories i don't have any /hermes.

Make sure that session directory is writable or you can set a path yourself with:
session_save_path
This comment is also useful if you are using above function.

Related

Why do I get a failed to read session_start()

I have just moved to a new webhost called Eurobia and just noticed that at times, I have been getting the following errors. Is this error due to the webhost?
Warning: session_start():
open(/var/cpanel/php/sessions/ea-php73/sess_45073c3b96060f25f10e5a1bd15e842b,
O_RDWR) failed: No such file or directory (2) in
/home/pianocou/domains/pianocourse101.com/public_html/header2.php on
line 2
Warning: session_start(): Failed to read session data: files (path:
/var/cpanel/php/sessions/ea-php73) in
/home/pianocou/domains/pianocourse101.com/public_html/header2.php on
line 2

Wordpress down - no changes

Wordpress website went down without any changes.
Here are the error messages:
Warning: include(/home/theme/public_html/wp-content/themes/sachba/functions.php): failed to open stream: Permission denied in /home/user/public_html/wp-settings.php on line 425
Warning: include(): Failed opening '/home/sachbaco/public_html/wp-content/themes/theme/functions.php' for inclusion (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /home/user/public_html/wp-settings.php on line 425
Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/wp-settings.php:425) in /home/user/public_html/wp-includes/pluggable.php on line 1195
Any help please?
try setting permission on /home/user/public_html/wp-settings.php to 777 and try again. if it works then you must lower the permissions one by one until the error appears. *Do not leave wp-settings.php on 777 for a long time.

Sessions does not work when I change directory

Sessions does not work when I change directory. I mean my files that contain codes for sessions run on the main directory. However, when I upload same files to different directory, they does not run. The same codes, files but not working in different directory. What is the problem? I confused.
Here is my codes:
<?php
ob_start();
session_start();
include("db.php");
$rota=strip_tags($_POST["rota"]);
$date=strip_tags($_POST["date"]);
$_SESSION['rota']=$rota;
$_SESSION['date']=$date;
?>
------
<?php session_start();
ob_start();
include("db.php");
$date=$_SESSION["date"];
$rota=$_SESSION["rota"];
echo "Date : <b>".$date."<br><br></b>";
?>
And here is my error log:
[12-Aug-2016 13:51:41 UTC] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/karelyac/public_html/reserve/en/y1s3.php:1) in /home/karelyac/public_html/reserve/en/y1s3.php on line 3
[12-Aug-2016 13:51:41 UTC] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/karelyac/public_html/reserve/en/y1s3.php:1) in /home/karelyac/public_html/reserve/en/y1s3.php on line 3
[12-Aug-2016 13:51:41 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/karelyac/public_html/reserve/en/db.php on line 7
[12-Aug-2016 13:51:43 UTC] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/karelyac/public_html/reserve/en/y1s2.php:1) in /home/karelyac/public_html/reserve/en/y1s2.php on line 3
[12-Aug-2016 13:51:43 UTC] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/karelyac/public_html/reserve/en/y1s2.php:1) in /home/karelyac/public_html/reserve/en/y1s2.php on line 3

Warning: include(): Failed opening failed to open stream: Permission denied

Warning: include(/home/sarvadcu/public_html/paradisetourism.co.in/wp-content/themes/midway/functions.php): failed to open stream: Permission denied in /home/sarvadcu/public_html/paradisetourism.co.in/wp-settings.php on line 329
Warning: include(): Failed opening '/home/sarvadcu/public_html/paradisetourism.co.in/wp-content/themes/midway/functions.php' for inclusion (include_path='.:/usr/local/altphp54/lib/php') in /home/sarvadcu/public_html/paradisetourism.co.in/wp-settings.php on line 329
Warning: Cannot modify header information - headers already sent by (output started at /home/sarvadcu/public_html/paradisetourism.co.in/wp-settings.php:329) in /home/sarvadcu/public_html/paradisetourism.co.in/wp-includes/pluggable.php on line 1196
It is problem with template path ,on here template function file not get proper path from wp-setting.php.
try to check out that path Or function file path .on theme activation.
when theme activate that time it find function.php file but it not get correctly so that.this error come.

phpbb3 codeigniter library session error

[phpBB Debug] PHP Notice: in file /includes/session.php on line 1024: Cannot modify header information - headers already sent by (output started at /application/libraries/phpbb_library.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1024: Cannot modify header information - headers already sent by (output started at /application/libraries/phpbb_library.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1024: Cannot modify header information - headers already sent by (output started at /application/libraries/phpbb_library.php:1)
How to fix this ?
I red in the phpbb3 library author theme, one of the posts has the same issue, and he fixed it by ‘not cloasing the controller file’, but what did he mean realy ? Sme help ?
It means that he removed ?> in the end of some php file.
But in your case all you need is just to cut off the BOM from the /application/libraries/phpbb_library.php file

Categories