PDA

View Full Version : Problem, script not working



psycop
10-16-2006, 04:24 PM
Hello, i just installed the script and tried to run the following code on a test site:

<?php include_once("/home/sites/zeus-gaming.net/public_html/news/news.php");
$forum_obj = new EP_Dev_Forum_News();
$forum_obj->display_News("1", "1", "0", "0"); ?>

But all i get is:
Fatal error: Call to a member function on a non-object in /home/sites/zeus-gaming.net/public_html/news/news.php on line 424

Patrick
10-16-2006, 05:11 PM
Is the forum enabled in the news script?

Go to the settings page and make sure that the first news source is enabled.

psycop
10-16-2006, 05:26 PM
it is enabled

Patrick
10-16-2006, 06:44 PM
This is definitely a bug. However, at the moment you can get around the bug by ensuring that new source #8 is disabled (in fact, make sure all other sources are disabled). I think the script was accidentally released the other day with #8 enabled.

I will fix the bug and release another update quickly as well.

Patrick
10-16-2006, 06:57 PM
As promised, here is the actual bug fix:
Open news.php :
find:

for($i=0, $connect_success=true; $i<count($this->FORUM) && $connect_success; $i++)

and Replace with:

for($i=0, $connect_success=true; $i<count($this->FORUM) && $connect_success; $i++)

There should be only one replacement on line 422.

I will also be releasing an updated version of the script.

EDIT: I have released v 2.24 which fixes this bug (or you can apply the fix above).

psycop
10-17-2006, 08:42 AM
Thanks, is working now... But i was wondering. If there is a image in the topic is there any possible way to set a max width on it on the news?

Patrick
10-17-2006, 10:41 AM
There is no built in mechanism for the script to resize images.

Images and the interaction with them greatly depends on the forum. Most people who use forums which do not provide good image functionality for posts end up using the [ img ] bbcode tags to display a manually created thumbnail of the image that links to the larger image.

Naadris
10-26-2006, 04:22 PM
I upgraded to 2.24 and now I get this error. Only happened after the upgrade from 2.21



Fatal error: Call to undefined function: initialize() in /home/venomx1/public_html/revoked/forum-news/news.php on line 424

UPDATE : Found the problem. Apparently my FTP program didn't overwrite the old files.