SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
SEO-Board Forum Software Community / General / Support / Laspost_addon "Fatal Error"
Posted:  23 Sep 2006 18:32   Last Edited By: Peropoko
Hi,

i read a lot of threads with this problem, but i can't solve it.

the only message is "Fatal Error"

Code:


if(!defined('SEO-BOARD'))
{
  die('Fatal Error');
}


how to define 'SEO-BOARD'??

this is my problem?

I have:

subdomain/web/index.php (include)
Code:

<?php DEFINE ('SEO-BOARD', true); include('http://subdomain/seo/lastposts_addon.php');?>

i try to put only 'seo/lastposts_addon.php' but not funk.

subdomain/seo/skin/ (two .htm)

subdomain/seo/ (lastpost_addon)
Code:


require('./seo/seo-board_options.php');
require ('./seo/code/functions.php');
require ('./seo/code/skinning.php');
require ("./seo/lang/$lang.php");


someone helpme?
Posted:  23 Sep 2006 20:24   Last Edited By: Hristo
This is not how you should include files in php:
Code:

include('http://subdomain/seo/lastposts_addon.php');

Instead of http://.. etc. use the local path to the file.
Posted:  23 Sep 2006 22:06   Last Edited By: Hristo
ok. but i think that it isn't the problem...

now i try with:

Code:


<?php DEFINE ('SEO-BOARD', true); include('H:\\localuser\\web\\seo\\lastposts_addon.php');?>

and

<?php DEFINE ('SEO-BOARD', true); include('../seo/lastposts_addon.php');?>


but in any funk. If i put like http://..., show me the error "Fatal Error", but in this two examples, show me nothing. what is the correct??

and i think that the error not stay in the include becuse if i execute directly de lastposts_addon, show me "Fatal Error"

Code:


http://subdomain/seo/lastposts_addon.php


any idea?

thanks for the attention:)
Posted:  24 Sep 2006 09:09
Nope, you are doing it wrong. When you put the http in front of the file name, you are calling the script as if it is a page and since calling it directly has no SEO-BOARD defined it shows a fatal error.
You have messed sth. Read again the instructions of the addon.