Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Pages: 1 2 [3] 4

Author Topic: Bug report  (Read 25203 times)

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Bug report
« Reply #30 on: December 03, 2006, 03:37:15 PM »

(Brauck ! Do you still have problem with that category thingy we discussed the other day ? I have still that issue.)

Problemo for moi'o:
I have latest version running (done db upgrader on this one), and I posted a new category in which I posted an article, now that article is accessable from "rescent posts" and  "archives" but not from the visible category in the category list... And I can't seem to find a solucija for this... Might it have something to do with the upgrader ?? As I have not seen this problem posted by any othere that is running "1.5 stablesortof" :lol:

Patric.

PS. All fixes in this thread have been applied, of course ;) DS.
Logged
My sNews site
"It's only dead fish that goes with the flow... "
Updated, online again - Free designs

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
Bug report
« Reply #31 on: December 03, 2006, 04:04:00 PM »

brauck's issue

fix
Quote
function menu_articles($start, $size) {
   $query = "SELECT * FROM ".db('prefix')."articles WHERE position = 1 AND published = 1 ORDER BY date DESC LIMIT $start, $size";
...
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Bug report
« Reply #32 on: December 03, 2006, 04:14:58 PM »

I  tried that B-man solution to see if it did anything for me aswell... but as my thingy don't seem to be related to date issues it didn't work out...

Again I'm kind of unsure... Does my categories table have a primary key ? Does it need one ? And if not any present primary key, should I try an add one, can I remove it ? Would this have anything to do woth my problem ?
Logged
My sNews site
"It's only dead fish that goes with the flow... "
Updated, online again - Free designs

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Bug report
« Reply #33 on: December 03, 2006, 06:55:43 PM »

Regarding my dilemma... I have no created and recreated categories, and they work as they should... This CSS category doesn't however. So I deleted it, and made another and posted an article in that...SAME shit again. Could it be related to the number of characters in that particular category ??? Meaning that 3 letter category don't work for some reason ?? In such case I would consider that a buggiebuggbugg...bug.

Patric.
Logged
My sNews site
"It's only dead fish that goes with the flow... "
Updated, online again - Free designs

brauck

  • Hero Member
  • *****
  • Karma: 18
  • Posts: 556
    • http://www.hbw-webdesign.nl/
Bug report
« Reply #34 on: December 03, 2006, 09:31:48 PM »

Are you refering to this Patric?

Edit 03-12-2006. No you don't.

I have the same problem. When you post in a category that has 3 letters (e.g. CSS or PHP) the article id-number in the db is set to 0 (zero).
The article is not showing up in the (article) list of that category, but in the list after that particularly category.
 When you edit that particularly article the delete button does not show up.
So it looks like a bug indeed.

I want to test this again with a clean install of RC4 but it's kind of late now and tomorrow I'm on an outdoor job so it will not be sooner then Tuesday.

Keep you posted.
Logged
Confidence is reduced complexity.
brauck.nl for free css templates

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
Bug report
« Reply #35 on: December 03, 2006, 11:40:21 PM »

I've just tested three-letter category on my fresh snews installation and found no problem. Please check your table categories and look for the primary index on column "id" - if it's not there, add it manually via phpmyadmin. This might help:
Quote
-- use it only if primary key's missing
ALTER TABLE categories
MODIFY id int(11) primary key auto_increment;
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Bug report
« Reply #36 on: December 04, 2006, 07:57:51 AM »

I do however think that the id is primary, and now I've found out a thing... Yesterday I persisted in testing a CSS category, that exact word as category title, and with an number of tries I did not succeed, so today I begin again but this time I try a different three letter combination, ABC, and now it works... Heh, I do not know what this is, but all other comboc seem to be working, but CSS... Perhaps a hint from above :lol:
Logged
My sNews site
"It's only dead fish that goes with the flow... "
Updated, online again - Free designs

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
Bug report
« Reply #37 on: December 04, 2006, 08:13:04 AM »

Yep, an evil masterplan  :lol:
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

markuz

  • Newbie
  • *
  • Karma: 0
  • Posts: 22
Bug report
« Reply #38 on: December 04, 2006, 11:30:06 AM »

When I enter the address www.domain.com/snews (without trailing slash) I get 400 Bad request.
Logged

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
Bug report
« Reply #39 on: December 04, 2006, 11:47:10 AM »

Trailing slash issues have been solved in various topics so far and, afaik, it's included as solution in the last version of .htaccess file.
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

markuz

  • Newbie
  • *
  • Karma: 0
  • Posts: 22
Bug report
« Reply #40 on: December 04, 2006, 11:59:42 AM »

Hmmm... this is my .htaccess file. I guess this is the latest?
Quote

    php_value session.use_trans_sid 0

RewriteEngine On
RewriteBase /snews
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*)$ index.php?category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+) index.php?category=$1&title=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/ index.php?category=$1&title=$2&commentspage=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/([0-9]+)/ index.php?category=$1 articlespage=$2 [L]
Logged

brauck

  • Hero Member
  • *****
  • Karma: 18
  • Posts: 556
    • http://www.hbw-webdesign.nl/
Bug report
« Reply #41 on: December 04, 2006, 09:16:15 PM »

Mika, the table categories was corrupt; I should have seen that by myself (stupid). Sorry  :/

And with a cat named CSS is nothing wrong; storm in a tea-cup, yeak!  :mad:
Logged
Confidence is reduced complexity.
brauck.nl for free css templates

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Bug report
« Reply #42 on: December 05, 2006, 07:51:50 AM »

Brauck, in what way was it corrupt ?
Logged
My sNews site
"It's only dead fish that goes with the flow... "
Updated, online again - Free designs

brauck

  • Hero Member
  • *****
  • Karma: 18
  • Posts: 556
    • http://www.hbw-webdesign.nl/
Bug report
« Reply #43 on: December 05, 2006, 12:22:43 PM »

Quote from: Patric
Brauck, in what way was it corrupt ?
Just like Mika suggested; id was not set as primary key and not auto_increment. That messed up the table's of course. How the column 'id' get corrupted I really don't know. Something must have gone wrong during testing, because the id of the first couple of categories I created where OK.

I did a clean db installation this morning and tried to simulate the error again, but everything went OK, including the 3 letters categories. So, it's a bit of a mystery.   :rolleyes:
Logged
Confidence is reduced complexity.
brauck.nl for free css templates

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Bug report
« Reply #44 on: December 05, 2006, 12:56:03 PM »

Mhm... Well I've also made a clean table set install, and everything works wonders apart from one thing:

extra category problem
Sorted out. I dare not even say what caused this, you'll think I'm an idiot... well, in that case :lol:

You know I've been doing a couple templates with some kind of "wide mode" to it when clicking eg articles, that was due to this snippet:
Quote
"contact" AND $_GET['action'] == "") {?>
Some div


"contact" AND $_GET['action'] == "") {?>




   
         




"contact" AND $_GET['action'] == "") {?>
Some div
So I removed that shit, and the extra functions was visible again, duh :lol: I should have an idiots credit for discovering it myself though, although it took a while, erhm...
Logged
My sNews site
"It's only dead fish that goes with the flow... "
Updated, online again - Free designs
Pages: 1 2 [3] 4