Fatal Error when I include cutenews

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
mike643

Fatal Error when I include cutenews

Post by mike643 »

Dear sir/madam,

When I want to include cutenews in a page, i get the error:

Fatal error: Cannot redeclare check_login() (previously declared in /var/www/c/mywebsite/HTML/lib/page.functions.php:37) in /var/www/c/mywebsite/HTML/cute_news/inc/functions.inc.php on line 81

Can somebody help me?

Regards
Mike643
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Fatal Error when I include cutenews

Post by Ted »

That's a tricky one...  CMSMS and CuteNews are using the same function name.  Basically, it's going to have to be changed for one or the other.

Does anyone have time to figure out a quick fix?  I'm kind of busy today.

Actually, CuteNews is pretty intriguing.  It's much more featured than our News module.  I almost wonder if it would be worth embedding in a module as a decent alternative...
mike643

Re: Fatal Error when I include cutenews

Post by mike643 »

I hope so that somebody can fix this.
mike643

Re: Fatal Error when I include cutenews

Post by mike643 »

whisky, can you solve this problem?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Fatal Error when I include cutenews

Post by Ted »

Well, I got it working after messing with cutenews's code (which is VERY inconsistent).  It displays news, but links to Comments and stuff still don't work.  I would advice turning them off.

I'm not sure how to get it to reinstall.  You probably have to remove the data/config.php file for it to force it to reinstall and be able to set a new admin user.  If it doesn't work right, let me know and I guess I can play with it some more.

If someone wants to take this over and clean it up further, you're more than welcome.  (read: PLEASE!!!!)

http://cmsmadesimple.org/downloads/cute ... -1.3.6.zip
mike643

Re: Fatal Error when I include cutenews

Post by mike643 »

Whishy,

What I have to do exactly? Replace the files of the links with the files on the server?

Thank you

Mike643
rwesterh

Re: Fatal Error when I include cutenews

Post by rwesterh »

I think it's a great idea to embed cutenews.
I use it a couple of years, but then i used CMS MS.
Then it did'nt worked any more (Like more people have i see)

Perhaps it's easier to edit Cutenews?
I will give it a try!

Edit:

After i changed some codes, i get the news, but also a couple of warnings.
Somebody know what these are, and how to "remove" it?

Code: Select all

Warning: file(./data/comments.txt): failed to open stream: No such file or directory in /home/httpd/vhosts/rene.gtacrime.nl/httpdocs/cutenewstest/inc/functions.inc.php on line 229

Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/rene.gtacrime.nl/httpdocs/cutenewstest/inc/functions.inc.php on line 231
The title!  
Blah blah blah 
19 Jul 2004 by Admin
 Read More ... comments (0)
Last edited by rwesterh on Wed Apr 06, 2005 6:23 pm, edited 1 time in total.
Locked

Return to “CMSMS Core”