Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Pages: [1] 2 3 4

Author Topic: Bug report  (Read 25266 times)

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
Bug report
« on: December 01, 2006, 06:14:14 PM »

Please post your* bugs here.

___________
* (not ours, we're flawless :D)
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
Bug report
« Reply #1 on: December 01, 2006, 06:48:26 PM »

:lol:  :lol:  :lol:  :lol: anyone else gotta bigger bugger that this one?
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

bramsyuur

  • Hero Member
  • *****
  • Karma: 23
  • Posts: 873
    • http://snews.vietbee.net
Bug report
« Reply #2 on: December 01, 2006, 07:29:40 PM »

Yes! I've found a bigger one!! here is...

 :lol:  :lol:  :lol:  :lol:  :lol:
Logged
La comunidad sNews en tu idioma!
Comunidad sNews en Espaņol

Luka

  • Administrator
  • ULTIMATE member
  • ******
  • Karma: 36
  • Posts: 1716
    • http://www.snewscms.com
Bug report
« Reply #3 on: December 01, 2006, 07:33:40 PM »

LOOL :)

You can't have one topic without OT :)
Logged

Fred K

  • Still trying to learn stuff
  • ULTIMATE member
  • ******
  • Karma: 130
  • Posts: 2728
    • Personal
Bug report
« Reply #4 on: December 01, 2006, 08:41:35 PM »

omfg, he's a, he's a [cue creepy music stab] ** SHAPE SHIFTER ** :lol:

Side note: Mac users might find this to be a bug, even though everyone else considers it a feature -- the default package does not contain a visible htaccess file (on Mac OS X, not Windows or Linux).
viz:
(that is how the unpacked package looks by default on a Mac OS X machine.)

Bug squashed easily by adding a copy of the file and naming it, for example, htaccess.txt


/ End of OS-specific rant /
Logged

ketut

  • Full Member
  • ***
  • Karma: 0
  • Posts: 115
    • Book Bali Hotels
Bug report
« Reply #5 on: December 02, 2006, 03:25:11 AM »

categories did not show! when upgrade from RC3

Sasha

  • Hero Member
  • *****
  • Karma: 28
  • Posts: 938
    • cssanarchy.com
Bug report
« Reply #6 on: December 02, 2006, 04:50:06 AM »

MIKA vs BUG  :D


« Last Edit: April 22, 2009, 02:43:43 PM by Keyrocks »
Logged
Every morning, I get up and look through the 'Forbes' list of the richest people in America. If I'm not there, I go to work. | If you love your job, you haven't worked a day in your life. snews with ♥

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
Bug report
« Reply #7 on: December 02, 2006, 06:38:07 AM »

:lol:  :lol:  :lol: Guys, the challenge area is on the left and two blocks up the hill

Ketut, could you be more specific? I don't see any problem with categories..
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Bug report
« Reply #8 on: December 02, 2006, 06:53:14 AM »

Quote from: Mika
:lol:  :lol:  :lol: Guys, the challenge area is on the left and two blocks up the hill

Ketut, could you be more specific? I don't see any problem with categories..
Same prob as Ketut...

pointing Final snews.php to use the  RC3 databse, categories are not being displayed (except 'Home')

went into admin, categories displayed, but with  (0)  articles assigned...

Viewed article list, and all are present, and editable...

Quote
// DISPLAY CATEGORIES
function categories() {
   $categorySEF = get_id('category');
   $class = $category_title == $categorySEF ? ' class="current"' : '';
   echo '<li><a'.$class.' href="'.db('website').'" title="'.s('website_title').'">'.l('home').'</a></li>';
   $query = "SELECT * FROM ".db('prefix')."categories WHERE published = 'YES' ORDER BY catorder ASC";
   $result = mysql_query($query);
   while ($r = mysql_fetch_array($result)) {
      $calc_num_query = "SELECT * FROM ".db('prefix')."articles WHERE position = 1 AND category = $r[id] AND published = 'YES'";
      $cm_result = mysql_query($calc_num_query);
      $num_rows = mysql_num_rows($cm_result);
      if (($num_rows == 0 && isset($_SESSION[db('website').'Logged_In'])) || $num_rows > 0) {
         $category_title = $r['seftitle'];
         $class = $category_title == $categorySEF ? ' class="current"' : '';
         echo '<li><a'.$class.' href="'.db('website').$category_title.'/" title="'.$r['description'].'">'.$r['name'];
         echo (s('num_categories') == 'on' ? ' ('.$num_rows.')' : '').'</a></li>';
      }
   }
}
make blue line like
Quote
$calc_num_query = "SELECT * FROM ".db('prefix')."articles WHERE position = 1 AND category = $r[id] AND published = '1'";
sql is calling for field to be set to YES but db field is numerical.

from readme html, db in final is also being set up as numerical...
Quote
CREATE TABLE articles (
   id int(11) primary key auto_increment,
   title varchar(100) default NULL,
   seftitle varchar(100) default NULL,
     `text` longtext,
     `date` datetime default NULL,
     category int(8) NOT NULL default '0',
     position int(6) default NULL,
     displaytitle char(3) NOT NULL default 'YES',
     displayinfo char(3) NOT NULL default 'YES',
     commentable varchar(5) NOT NULL default '',
     published int(3) NOT NULL default '1',
     description_meta varchar(255) default NULL,
     keywords_meta varchar(255) default NULL
);
« Last Edit: April 22, 2009, 02:43:25 PM by Keyrocks »
Logged
Of all the things I have lost, it is my mind that I miss the most.

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
Bug report
« Reply #9 on: December 02, 2006, 07:17:20 AM »

ups  :/  you're right - my db is slightly different so I was unable to see the error..
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

ketut

  • Full Member
  • ***
  • Karma: 0
  • Posts: 115
    • Book Bali Hotels
Bug report
« Reply #10 on: December 02, 2006, 08:43:24 AM »

thanks to all, especially philmoz
the problem was resolved.  :cool:

markuz

  • Newbie
  • *
  • Karma: 0
  • Posts: 22
Bug report
« Reply #11 on: December 02, 2006, 09:58:52 AM »

When making an article to be posted in the future, the server time setting obeys the date format in the general settings. That shouldn't be that way, because some people (including me) might use only date (d.m.) and then the server time does not show time, only date. (Server time: 02.12.:42). :)

I also think that the default size for text areas could be larger, e.g. 10x50 or 10x60. 2x5 is quite small, I think...

Anyway, great to get 1.5 final so fast for testing. I use Joomla on bigger sites, but I like this CMS very much, because of it's lightness. :)
Logged

markuz

  • Newbie
  • *
  • Karma: 0
  • Posts: 22
Bug report
« Reply #12 on: December 02, 2006, 10:02:38 AM »

Comment approval doesn't work. The comment stays unapproved even if approved.

Line 1287: missing 'index.php'
old: ?action=process&task=editcomment&id='.$commentid
new: index.php?action=process&task=editcomment&id='.$commentid
Logged

markuz

  • Newbie
  • *
  • Karma: 0
  • Posts: 22
Bug report
« Reply #13 on: December 02, 2006, 11:05:19 AM »

Hardcoded text, line 854: echo '

Login

';
Logged

markuz

  • Newbie
  • *
  • Karma: 0
  • Posts: 22
Bug report
« Reply #14 on: December 02, 2006, 11:15:28 AM »

If a article is to be published in the future, the chekbox "Enable" is not anymore checked, when you come back to edit an article.
Also it should be possible for an admin to see the article even if it waits for publishing, but now it is not.

Edit:
Oh, now I see. The checkbox actually shoudn't be checked, because the checkbox "Publish article" is unchecked.
Logged
Pages: [1] 2 3 4