|
Headlines and News on same Page
|
| Author |
Message |
jwcelement
Junior Member
 
Posts: 9
Group: Registered
Joined: Jun 2006
Status:
Offline
Reputation: 0
|
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:
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 |
|
 |
Brian
Administrator
      
Posts: 122
Group: Administrators
Joined: Jan 2006
Status:
Offline
Reputation: 0
|
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 |
|
 |
jwcelement
Junior Member
 
Posts: 9
Group: Registered
Joined: Jun 2006
Status:
Offline
Reputation: 0
|
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 |
|
 |
Brian
Administrator
      
Posts: 122
Group: Administrators
Joined: Jan 2006
Status:
Offline
Reputation: 0
|
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 |
|
 |
jwcelement
Junior Member
 
Posts: 9
Group: Registered
Joined: Jun 2006
Status:
Offline
Reputation: 0
|
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 |
|
 |
Brian
Administrator
      
Posts: 122
Group: Administrators
Joined: Jan 2006
Status:
Offline
Reputation: 0
|
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 |
|
 |
jwcelement
Junior Member
 
Posts: 9
Group: Registered
Joined: Jun 2006
Status:
Offline
Reputation: 0
|
RE: Headlines and News on same Page
Awesome thanks a lot, I appreciate your time.
|
|
| 07-01-2006 08:56 AM |
|
 |
Brian
Administrator
      
Posts: 122
Group: Administrators
Joined: Jan 2006
Status:
Offline
Reputation: 0
|
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 |
|
 |
jwcelement
Junior Member
 
Posts: 9
Group: Registered
Joined: Jun 2006
Status:
Offline
Reputation: 0
|
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 |
|
 |
Brian
Administrator
      
Posts: 122
Group: Administrators
Joined: Jan 2006
Status:
Offline
Reputation: 0
|
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 |
|
 |
|
|