Welcome, Guest. Please Login or Register.
July 31, 2025, 08:28:12 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Help with SSI.php « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Help with SSI.php  (Read 476 times)
Valconeye
Full Member
***
Posts: 190


Help with SSI.php
« on: April 29, 2003, 12:44:40 AM »
Reply with quote

i get these errors when i call in the SSI.php function

Warning: Failed opening './Settings.php' for inclusion (include_path='') in /home/forum/SSI.php on line 47

Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/forum/SSI.php on line 48

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/forum/SSI.php on line 48

Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/forum/SSI.php on line 49

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/forum/SSI.php on line 49

Warning: MySQL: A link to the server could not be established in /home/forum/SSI.php on line 49

Warning: ChDir: No such file or directory (errno 2) in /home/forum/SSI.php on line 50

Warning: open_basedir restriction in effect. File is in wrong directory in /home/forum/SSI.php on line 52

Warning: Failed opening '/Errors.php' for inclusion (include_path='') in /home/forum/SSI.php on line 52

Warning: open_basedir restriction in effect. File is in wrong directory in /home/forum/SSI.php on line 53

Warning: Failed opening '/Subs.php' for inclusion (include_path='') in /home/forum/SSI.php on line 53

Warning: open_basedir restriction in effect. File is in wrong directory in /home/forum/SSI.php on line 54

Warning: Failed opening '/Load.php' for inclusion (include_path='') in /home/forum/SSI.php on line 54

Fatal error: Call to undefined function: loadcookie() in /home/forum/SSI.php on line 60
Logged
Nonya
Beta Tester
Sr. Member
****
Posts: 375


YaBBse Developer Wannabe!

ICQ - 172862020nonya69rs@hotmail.com WWW
Re:Help with SSI.php
« Reply #1 on: April 29, 2003, 01:19:56 AM »
Reply with quote

Open SSI.php search for this line

   $full_yabbse_path = '.';   // if in same folder as yabb board can be left

insert your full path to you YaBB directory
Logged

Nonya
Beta Tester
Sr. Member
****
Posts: 375


YaBBse Developer Wannabe!

ICQ - 172862020nonya69rs@hotmail.com WWW
Re:Help with SSI.php
« Reply #2 on: April 29, 2003, 01:22:07 AM »
Reply with quote

Otherwise
i think your path should be /home/YOURUSERNAME/public_html/forum
insted of
/home/forum
Logged

Valconeye
Full Member
***
Posts: 190


Re:Help with SSI.php
« Reply #3 on: April 29, 2003, 01:45:54 AM »
Reply with quote

i did instead of "." i did "/home/forum/" and i get this error

Warning: Cannot send session cookie - headers already sent by (output started at /home/about.php:2) in /home/forum/SSI.php on line 67

Warning: Cannot send session cache limiter - headers already sent (output started at /home/about.php:2) in /home/forum/SSI.php on line 67
Logged
Valconeye
Full Member
***
Posts: 190


Re:Help with SSI.php
« Reply #4 on: April 29, 2003, 02:03:33 AM »
Reply with quote

i figured it out.
Logged
andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:Help with SSI.php
« Reply #5 on: April 29, 2003, 02:30:33 AM »
Reply with quote

Quote from: Valconeye on April 29, 2003, 02:03:33 AM
i figured it out.

And? What was the solution of the problem?
Logged

Nonya
Beta Tester
Sr. Member
****
Posts: 375


YaBBse Developer Wannabe!

ICQ - 172862020nonya69rs@hotmail.com WWW
Re:Help with SSI.php
« Reply #6 on: April 29, 2003, 04:00:29 AM »
Reply with quote

i neva have seen path like this /home/forum/
this would be the reason
Logged

Valconeye
Full Member
***
Posts: 190


Re:Help with SSI.php
« Reply #7 on: April 29, 2003, 09:32:20 AM »
Reply with quote

i have it working, just 1 little problem, my site http://www.warcraftwars.com/ the first time anyone goes to it, its all screwed up, but refresh the page, and its fine.
Logged
Nonya
Beta Tester
Sr. Member
****
Posts: 375


YaBBse Developer Wannabe!

ICQ - 172862020nonya69rs@hotmail.com WWW
Re:Help with SSI.php
« Reply #8 on: April 29, 2003, 02:34:27 PM »
Reply with quote

Open SSI.php Search for this

if (function_exists('session_start'))
{
 session_start();
 $sc = session_id();
}
else
 $sc = '';

Remove It
Logged

Valconeye
Full Member
***
Posts: 190


Re:Help with SSI.php
« Reply #9 on: April 29, 2003, 08:12:23 PM »
Reply with quote

thanks
Logged
Valconeye
Full Member
***
Posts: 190


Re:Help with SSI.php
« Reply #10 on: April 30, 2003, 10:41:23 PM »
Reply with quote


if i take out

if (function_exists('session_start'))
{
 session_start();
 $sc = session_id();
}
else
 $sc = '';

It doesnt load guests, or users, only if they visit the forums, What could i do to put this back in there and have it work?
« Last Edit: April 30, 2003, 10:44:37 PM by Valconeye » Logged
Nonya
Beta Tester
Sr. Member
****
Posts: 375


YaBBse Developer Wannabe!

ICQ - 172862020nonya69rs@hotmail.com WWW
Re:Help with SSI.php
« Reply #11 on: May 01, 2003, 10:56:26 AM »
Reply with quote

Its work fine with me on my Site   :)
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Help with SSI.php
« Reply #12 on: May 01, 2003, 05:37:34 PM »
Reply with quote

Quote from: Valconeye on April 30, 2003, 10:41:23 PM

if i take out

if (function_exists('session_start'))
{
 session_start();
 $sc = session_id();
}
else
 $sc = '';

It doesnt load guests, or users, only if they visit the forums, What could i do to put this back in there and have it work?

the code above is only used in logout() in SSI.php
if your users name dont appear on the SSI, try setting the cookies to global (not local) in Installed Mods Settings page
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
NV
Noobie
*
Posts: 15


I'm a llama!

Re:Help with SSI.php
« Reply #13 on: May 03, 2003, 09:33:03 AM »
Reply with quote

As described in another topic I 'found' a much simpler solution, should always work, as long as you don't mind working with frame pages:

1/
In the SSI.php rename the
$full_yabbse_path = '[.]';

and make sure it resides in the yabbse folder

2/
create inside the yabbse folder the file that will presented outside the forum and include the desired functions and be sure to put the php-require function on the top of the page (aboce the opening HTML statement) like this:
<?php require('yabbse/SSI.php');?>

3/
create with your web design prog a framed page in the different (most op the times top)location of your site.
One of the frames should load the edited file (step 2)within your yabbse folder, the other frame can contain anything (or nothing of course).

This should always work, no hassle!
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Help with SSI.php « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.478 seconds with 21 queries.