22, August 2008

Who is Familiar with Cutenews? - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Who is Familiar with Cutenews?
« previous next »
Pages: [1] Print

Author Topic: Who is Familiar with Cutenews?  (Read 489 times)
Community Supporter ?
I am a fanatic. So?
*****
Gender: Male
Posts: 526
5094 credits
Members referred : 0


www.demonhale.com


« on: May 10, 2007, 09:14:16 AM »

Cutephp.com had a pretty good flatfile cms before called cutenews, the last update was version 1.4.5 and some of the fanatics released their own new versions based on this one via strawberry, and others developed a MySql version.

Heaps more are stuck with the original, the only problem is with the comments system.

What happens is that, the comments.txt db of the installation goes blank or back to 0bytes.

What do you think causes the deletion of the flatfile comments on a cutenews installation?

This concerns me as I have been experimenting on this cms for quite a while...

http://www.demonhale.com Visit through proxy , Just Visit...
Partners:
http://www.resume-fix.com Visit through proxy , Free Resumes

Last blog : Beijing Olympics Show
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8020
41077 credits
Members referred : 3



« Reply #1 on: May 10, 2007, 11:15:01 AM »

I can't say what causes it as I never used it (and to be honest I would never use a txt file cms) but I guess in the install it is creating the files and delete them. It should be something like :

$fp fopen('/path/to/commentFile''w');

If you change that to :

$fp fopen('/path/to/commentFile''a');

it will probably installed without erasing any file.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Community Supporter ?
I am a fanatic. So?
*****
Gender: Male
Posts: 526
5094 credits
Members referred : 0


www.demonhale.com


« Reply #2 on: May 10, 2007, 11:41:18 AM »

IMHO I do like SQL databases as opposed to text files, but to get all bases covered in learning PHP, the primitive process of analyzing flatfile dbs is a must.

There is no problem with the "CMS installation" per se, the problem lies when the cms is already running, ie. it is used by the site already... Most functions works like a charm, until the site owner later discovers that the comments to the posts on his website mysteriously disappears. There first reaction would actually to think their site was hacked, but if you trace it carefully, theres no attempt at all but notice your comment db file is blank.

One of my conclusions is a server time out during loading of the db causing it to default. Or an excessive amount of posts that crashes it. Ive prevented the latter from happening by coding a basic captcha, and flood protection... this manages to cut out on spam comments, but doesn't solve the comment db crashes...
« Last Edit: May 10, 2007, 11:44:44 AM by designer »

http://www.demonhale.com Visit through proxy , Just Visit...
Partners:
http://www.resume-fix.com Visit through proxy , Free Resumes

Last blog : Beijing Olympics Show
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8020
41077 credits
Members referred : 3



« Reply #3 on: May 10, 2007, 11:51:42 AM »

And that's the reason that you should avoid text files Smiley

1) The size might be a problem.
2) If two concurrent connections try to write to the file, the best thing happens is to erase the file, the worst is to crash the server.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Community Supporter ?
I am a fanatic. So?
*****
Gender: Male
Posts: 526
5094 credits
Members referred : 0


www.demonhale.com


« Reply #4 on: May 10, 2007, 11:56:26 AM »

So any quick remedies?

I was thinking if its possible to simply recode the comment area to write and read through a mysql db...

I know theres a risk in using the text db principle, but i was experimenting on it trying to solve the issue.

One more thing, did you know Limbo is a flatfile version of Mambo/Joomla? Why doesn't its comments db crash like on cutenews? I was figuring the problem, and alternately inspected on Limbo, where there is no occurrence of a flatfile db crash...
« Last Edit: May 10, 2007, 12:01:13 PM by designer »

http://www.demonhale.com Visit through proxy , Just Visit...
Partners:
http://www.resume-fix.com Visit through proxy , Free Resumes

Last blog : Beijing Olympics Show
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8020
41077 credits
Members referred : 3



« Reply #5 on: May 10, 2007, 12:08:28 PM »

The fact that both have flat files, does not mean that they have the same bugs Smiley

In my opinion don't waste your time. Get a mysql based CMS and start from there. Flat files can not give what a database can, plus they are not faster than a db.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Community Supporter ?
I am a fanatic. So?
*****
Gender: Male
Posts: 526
5094 credits
Members referred : 0


www.demonhale.com


« Reply #6 on: May 10, 2007, 12:12:40 PM »

I agree... Im not using it commercially, just for small projects, etc... if we could just solve that one bug, we could help a bunch of them out there who's having the same issues. (I know theres many, I actually searched LOL!)...

http://www.demonhale.com Visit through proxy , Just Visit...
Partners:
http://www.resume-fix.com Visit through proxy , Free Resumes

Last blog : Beijing Olympics Show
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6550
Tags : cutenew cms comments Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Who is Familiar with Cutenews?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Aug 22, 2008, 01:43:48 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 36.084
Total Topics: 7.439
Total Members: 3.807
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: marthawelch

41 Guests, 2 Users online :

16 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.