Post Reply  Post Thread 
Problems including news on pages
Author Message
faylin
Junior Member
**


Posts: 1
Group: Registered
Joined: Jul 2006
Status: Offline
Reputation: 0
Post: #1
Problems including news on pages

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

This post was last modified: 07-01-2006 01:47 PM by faylin.

07-01-2006 12:07 PM
Find all posts by this user Quote this message in a reply
Brian
Administrator
*******


Posts: 122
Group: Administrators
Joined: Jan 2006
Status: Offline
Reputation: 0
Post: #2
RE: Problems including news on pages

Try putting putting it as "./unp/news.php" just as a theory.


Brian Earley
Utopia Software
utopiasupport@gmail.com
http://www.utopiasoftware.net
Software: Utopia News Pro
07-01-2006 05:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jon
Junior Member
**


Posts: 4
Group: Registered
Joined: Sep 2006
Status: Offline
Reputation: 0
Post: #3
RE: Problems including news on pages

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

09-10-2006 03:43 AM
Find all posts by this user Quote this message in a reply
Brian
Administrator
*******


Posts: 122
Group: Administrators
Joined: Jan 2006
Status: Offline
Reputation: 0
Post: #4
RE: Problems including news on pages

What's on line 269 in functions.inc.php for you?


Brian Earley
Utopia Software
utopiasupport@gmail.com
http://www.utopiasoftware.net
Software: Utopia News Pro
09-10-2006 04:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jon
Junior Member
**


Posts: 4
Group: Registered
Joined: Sep 2006
Status: Offline
Reputation: 0
Post: #5
RE: Problems including news on pages

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

09-10-2006 06:57 PM
Find all posts by this user Quote this message in a reply
Brian
Administrator
*******


Posts: 122
Group: Administrators
Joined: Jan 2006
Status: Offline
Reputation: 0
Post: #6
RE: Problems including news on pages

What's the URL of the page that news is being included on, and what's the URL of your news directory?


Brian Earley
Utopia Software
utopiasupport@gmail.com
http://www.utopiasoftware.net
Software: Utopia News Pro
09-11-2006 03:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jon
Junior Member
**


Posts: 4
Group: Registered
Joined: Sep 2006
Status: Offline
Reputation: 0
Post: #7
RE: Problems including news on pages

as far as i'm concerned
http://xlbysteph.free.fr/index.php
http//xlbysteph.free.fr/phachep/news_newspro/news.php

09-11-2006 03:30 AM
Find all posts by this user Quote this message in a reply
Brian
Administrator
*******


Posts: 122
Group: Administrators
Joined: Jan 2006
Status: Offline
Reputation: 0
Post: #8
RE: Problems including news on pages

Ah I see the issue. Try this:

In news.php, find:

require('functions.inc.php');

Add under it:

require('mysql.inc.php');


Brian Earley
Utopia Software
utopiasupport@gmail.com
http://www.utopiasoftware.net
Software: Utopia News Pro

This post was last modified: 09-11-2006 03:01 PM by Brian.

09-11-2006 03:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jon
Junior Member
**


Posts: 4
Group: Registered
Joined: Sep 2006
Status: Offline
Reputation: 0
Post: #9
RE: Problems including news on pages

great
i 'll try t'is weekend

thx brian

This post was last modified: 09-15-2006 09:34 AM by Brian.

09-15-2006 04:46 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: