Post Reply  Post Thread 
Pages (2): « First [1] 2 Next > Last »
Headlines and News on same Page
Author Message
jwcelement
Junior Member
**


Posts: 9
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 0
Post: #1
Headlines and News on same Page

Utopia News 1.2.0

On my website (http://www.graphicproposal.com) I want to have a listing of the headlines at the bottom of the page. However whenever I include the headlines file I get this error:

Code:
Fatal error: Cannot redeclare exec_gpc_stripslashes() (previously declared in /home/.urgent/ebjcole/graphicproposal.com/news/global.inc.php:24) in /home/.urgent/ebjcole/graphicproposal.com/news/global.inc.php on line 24


I tried including the file to a seperate .php document and it didn't work. I'm not sure as to what to do to fix the problem, or even if it is fixable.

06-29-2006 05:38 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: #2
RE: Headlines and News on same Page

Hi,

Open global.inc.php and find this:

if (get_magic_quotes_gpc())

Replace with:

if ( get_magic_quotes_gpc() && !function_exists('exec_gpc_stripslashes') )

This might fix that error only to show you another one. If it does, let me know and we'll fix that one as well. It shouldn't be too hard.


Brian Earley
Utopia Software
utopiasupport@gmail.com
http://www.utopiasoftware.net
Software: Utopia News Pro
06-29-2006 02:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jwcelement
Junior Member
**


Posts: 9
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 0
Post: #3
RE: Headlines and News on same Page

Fatal error: Cannot redeclare class db_driver in /home/.urgent/ebjcole/graphicproposal.com/news/mysql.inc.php on line 28

That's the new error

06-29-2006 03:26 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: #4
RE: Headlines and News on same Page

Open mysql.inc.php and find:

class DB_Driver {

Add before it:

if (!class_exists('DB_Driver')) {

Find:
}
?>

Add another } before it.

In functions.inc.php, find:

require('global.inc.php');

And under it add:

if (!function_exists('unp_msgBox'))
{

And at the end of the file before ?>, add }

We should be almost there.


Brian Earley
Utopia Software
utopiasupport@gmail.com
http://www.utopiasoftware.net
Software: Utopia News Pro
06-29-2006 11:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jwcelement
Junior Member
**


Posts: 9
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 0
Post: #5
RE: Headlines and News on same Page

Fatal error: Cannot redeclare class news in /home/.urgent/ebjcole/graphicproposal.com/news/news.inc.php on line 19

New error

07-01-2006 02:45 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: #6
RE: Headlines and News on same Page

In news.inc.php, find:

class News {

Add before it:

if (!class_exists('News')) {

And at the end of the file, right before ?>, add:

}

All of this will be fixed in the next release. The other option is to just use the news cache.


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


Posts: 9
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 0
Post: #7
RE: Headlines and News on same Page

Awesome thanks a lot, I appreciate your time.

07-01-2006 08:56 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: Headlines and News on same Page

You're quite welcome. Did those changes fix it or did you opt for the cache?


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


Posts: 9
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 0
Post: #9
RE: Headlines and News on same Page

Those changes fixed it - however in version 1.3.0 nothing appears, no error, just nothing appears. I am assuming the same fixes listed above work for this version as well?

Note: With version 1.3.0 I cannot even attempt to create a cache it says ' Opening news file...There was an error opening news.php. Please go back and try again. Update aborted.' the /news folder the files are listen in are already chmod to 777.

This post was last modified: 07-27-2006 04:28 PM by jwcelement.

07-27-2006 04:26 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: #10
RE: Headlines and News on same Page

1.3.0 should automatically work with both on the same page without making edits, because those same edits are now built in. Is anything modified?


Brian Earley
Utopia Software
utopiasupport@gmail.com
http://www.utopiasoftware.net
Software: Utopia News Pro
07-28-2006 03:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Pages (2): « First [1] 2 Next > Last »
Post Reply  Post Thread 

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

Forum Jump: