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.
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.
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
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.
Fatal error: Cannot redeclare class news in /home/.urgent/ebjcole/graphicproposal.com/news/news.inc.php on line 19
New error
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.
Awesome thanks a lot, I appreciate your time.
You're quite welcome. Did those changes fix it or did you opt for the cache?
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.
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?