http://www.translatum.gr/
It is loaded before anything else, but at times, and for certain users, it comes up with this error:
Quote''Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/translat/public_html/forum/SSI.php on line 160''
Here is the code from my page:
<?php require("/home/translat/public_html/forum/SSI.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[...]
<?php
$array = ssi_recentTopics(10, array(7,8,11,12,13,16,17,7,24,25,28,29,30,31,32,34,35,39,40,43,44,47,48,53,54,48,84,85,86,87,90), 'array');
foreach ($array as $recent)
{
$subject = html_entity_decode($recent['subject']);
if (strlen($subject) > 250)
$subject = htmlentities(substr($subject, 0, 250)) . '...';
else
$subject = $recent['subject'];
echo ' <tr bgcolor="#999999"><td><span class="textb"> <img src="images/dot.gif" alt="" width="11" height="11" /> <a href="', $recent['href'], ' - Poster: ', $recent['poster']['name'], '">', $subject, '</a> ', $recent ? '<a href="' . $scripturl . '?topic=' . $recent['topic'] . '.from' . $recent['newtime'] . $settings['images_url'] . '/' . $context['user']['language'] . $txt[302] . '" border="0" /></a> ': '', '<br/> </span> </td> </tr>';
}
?>
</table>
<div align="left"><br />
<img src="images/menu2_15.gif" alt="" width="384" height="3" /> </div>
</div></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#999999">
<td height="3" style="background-image: url(images/home.gif)">
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#666666" width="273" align="left" height="12"><font face="Arial, Helvetica, sans-serif" size="1"><img src="images/menu2_03.gif" alt="" width="13" height="18" /><b class="tra"><font face="Verdana, Arial, Helvetica, sans-serif"><a name="latest" id="latest"></a> <font color="#CCCCCC">Computer and CAT tools tips </font></font></b></font></td>
<td width="158" valign="bottom" height="12"><img src="images/menu2_05.gif" alt="" width="31" height="20" /></td>
<td width="31" height="12"><a href="#"><img src="images/top.gif" alt="" width="27" height="18" border="0" /></a></td>
</tr>
<tr>
<td colspan="3" valign="top" align="left" height="11">
<div align="left">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<?php
$array = ssi_recentTopics(10, array(1,2,3,4,5,6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,88,89,90,91), 'array');
foreach ($array as $recent)
{
$subject = html_entity_decode($recent['subject']);
if (strlen($subject) > 250)
$subject = htmlentities(substr($subject, 0, 250)) . '...';
else
$subject = $recent['subject'];
echo ' <tr bgcolor="#999999"><td><span class="textb"> <img src="images/dot.gif" alt="" width="11" height="11" /> <a href="', $recent['href'], ' - Poster: ', $recent['poster']['name'], '">', $subject, '</a> ', $recent ? '<a href="' . $scripturl . '?topic=' . $recent['topic'] . '.from' . $recent['newtime'] . $settings['images_url'] . '/' . $context['user']['language'] . $txt[302] . '" border="0" /></a> ': '', '<br/> </span> </td> </tr>';
}
?>
</table>
<div align="left"><br />
<img src="images/menu2_15.gif" alt="" width="384" height="3" /> </div>
</div></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#999999">
<td height="3" style="background-image: url(images/home.gif)">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="table5">
<tr>
<td bgcolor="#666666" width="249" align="left" height="12"><font face="Arial, Helvetica, sans-serif" size="1"><img src="images/menu2_03.gif" alt="" width="13" height="18" /><b class="tra"><font face="Verdana, Arial, Helvetica, sans-serif"><a name="latest1" id="latest1"></a> <font color="#CCCCCC">Events</font></font></b></font></td>
<td width="182" valign="bottom" height="12"><img src="images/menu2_05.gif" alt="" width="31" height="20" /></td>
<td width="31" height="12"><a href="#"><img src="images/top.gif" alt="" width="27" height="18" border="0" /></a></td>
</tr>
<tr>
<td colspan="3" valign="top" align="left" height="11">
<div align="left">
<table width="100%" border="0" cellspacing="1" cellpadding="2" id="table6">
<?php
$array = ssi_recentTopics(10, array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91), 'array');
foreach ($array as $recent)
{
$subject = html_entity_decode($recent['subject']);
if (strlen($subject) > 250)
$subject = htmlentities(substr($subject, 0, 250)) . '...';
else
$subject = $recent['subject'];
echo ' <tr bgcolor="#999999"><td><span class="textb"> <img src="images/dot.gif" alt="" width="11" height="11" /> <a href="', $recent['href'], ' - Poster: ', $recent['poster']['name'], '">', $subject, '</a> ', $recent ? '<a href="' . $scripturl . '?topic=' . $recent['topic'] . '.from' . $recent['newtime'] . $settings['images_url'] . '/' . $context['user']['language'] . $txt[302] . '" border="0" /></a> ': '', '<br/> </span> </td> </tr>';
}
?>
</table>
<div align="left"><br />
<img src="images/menu2_15.gif" alt="" width="384" height="3" /> </div>
</div></td>
</tr>
</table><br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#666666" width="249" align="left" height="12"><font face="Arial, Helvetica, sans-serif" size="1"><img src="images/menu2_03.gif" alt="" width="13" height="18" /><b class="tra"><font face="Verdana, Arial, Helvetica, sans-serif"><a name="fun" id="fun"></a> <font color="#CCCCCC">General Topics </font></font></b></font></td>
<td width="182" valign="bottom" height="12"><img src="images/menu2_05.gif" alt="" width="31" height="20" /></td>
<td width="31" height="12"><a href="#"><img src="images/top.gif" alt="" width="27" height="18" border="0" /></a></td>
</tr>
<tr>
<td colspan="3" valign="top" align="left" height="11">
<div align="left">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<?php
$array = ssi_recentTopics(10, array(1,2,3,4,5,6,7,8,9,10,14,15,18,19,20,21,22,23,24,26,27,33,34,36,37,38,41,42,45,46,48,49,53,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,84,85,86,87,88,89,91), 'array');
foreach ($array as $recent)
{
$subject = html_entity_decode($recent['subject']);
if (strlen($subject) > 250)
$subject = htmlentities(substr($subject, 0, 250)) . '...';
else
$subject = $recent['subject'];
echo ' <tr bgcolor="#999999"><td><span class="textb"> <img src="images/dot.gif" alt="" width="11" height="11" /> <a href="', $recent['href'], ' - Poster: ', $recent['poster']['name'], '">', $subject, '</a> ', $recent ? '<a href="' . $scripturl . '?topic=' . $recent['topic'] . '.from' . $recent['newtime'] . $settings['images_url'] . '/' . $context['user']['language'] . $txt[302] . '" border="0" /></a> ': '', '<br/> </span> </td> </tr>';
}
?>
</table>
<div align="left"><br />
<img src="images/menu2_15.gif" alt="" width="384" height="3" /> </div>
</div></td>
</tr>
</table>
Are those users guests (or not logged in) or registered members? Do they belong to specific membergroups? Do they get the error when they log in (if they get the error as guests) and vice-versa?
What is your PHP version?
Does it happen only in the first page or two that they visit, or all the time?
Do those users see a PHPSESSID variable in the URL of the page that shows the error?
Does the error happen only in Firefox or IE or some other browser?
Good.
Have you tried checking/unchecking the database driven sessions?
also this may sound dumb but is this a different sub domain than your forum?