xoops forums

mjz55

Quite a regular
Posted on: 2007/2/3 3:05
mjz55
mjz55 (Show more)
Quite a regular
Posts: 298
Since: 2007/1/18
#1

FriendFinder 3.3 error

Warning: main(../header.php) [function.main]: failed to open stream: No such file or directory in file /modules/friendfinder/blocks/friendfinder.php line 35

This was in debug popup mode.

Line 35 is the first line and this is it, very simple...
include("../header.php");

friendfinder 3.3
Xoops 2.0.16
Operating system Linux
Kernel version 2.6.17.11-grsechg
Machine Type i686
Apache version 1.3.37 (Unix)
PERL version 5.8.7
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
PHP version 4.4.4
MySQL version 4.1.21-standard

Maffy

Just popping in
Posted on: 2007/2/22 13:27
Maffy
Maffy (Show more)
Just popping in
Posts: 18
Since: 2006/12/9
#2

Re: FriendFinder 3.3 error

Hi.

Change
include("../header.php");
to
include(XOOPS_ROOT_PATH."/header.php");

Greetings, Maffy


More errors:

add.php

Change
$height = $size[1];
to
$hight = $size[1];

Change
if ($file1_type!="image/pjpeg" && $file1_type!="image/gif" && $file1_type!="image/jpeg"){
to
if ($file1_type!="image/pjpg" && $file1_type!="image/gif" && $file1_type!="image/jpg"){