UtopiaSoftware Forums

Full Version: Problems including news on pages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I get the include tags to work. The page just remains blank.

The pages are html files. i have tried renaming them with .shtml.
I am using the follwing include code provided in the FAQ

<!--#include virtual="unp/news.php"-->

I've tried all the other includes as well. I tried using the cache and setting the news section to a php page.

version 1.2.0
unhacked
Try putting putting it as "./unp/news.php" just as a theory.
Hi All,

I encountered an other problem on including news.php in my main page.

Fatal error: Call to a member function on a non-object in /mnt/121/sdb/6/2/MYSITE/FOLDER1/news_newspro/functions.inc.php on line 269

could you advise me why ?
thanks
jon
What's on line 269 in functions.inc.php for you?
Hello


the 269th instruction line is
$getsettings = $DB->query("SELECT `varname` , `value` FROM `unp_setting`");
it belongs to "unp_getSettings" function
i ensured before posting that the table "unp_setting" exists in my database.

thanks
jon
What's the URL of the page that news is being included on, and what's the URL of your news directory?
as far as i'm concerned
http://xlbysteph.free.fr/index.php
http//xlbysteph.free.fr/phachep/news_newspro/news.php
Ah I see the issue. Try this:

In news.php, find:

require('functions.inc.php');

Add under it:

require('mysql.inc.php');
great
i 'll try t'is weekend

thx brian
Reference URL's