News: Welcome to the TinyPortal Support site.

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

February 28, 2020, 05:55:01 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189516
  • Total Topics: 20802
  • Online Today: 110
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 0
Guests: 63
Total: 63

Author Topic: article comments 2 bugs  (Read 13200 times)

0 Members and 1 Guest are viewing this topic.

Offline zalias7

  • Jr. Member
  • **
  • Posts: 11
article comments 2 bugs
« on: January 03, 2012, 03:13:35 AM »
Link to my site:localhost
SMF version: SMF ver. 2.0.2
TP version: TP ver. 1.0 RC2
Default Forum Language: lithuanian-utf8
Theme name and version: Theme name here
Browser Name and Version: firefox 9.0.1
Mods installed: TinyPortal
Related Error messages: The database value you're trying to insert does not exist: com

a problem
When I delete the article comments and reading the article in the article, I get an error: The database value you're trying to insert does not exist: com

I see that the table tp_articles Value for the comments field does not change. Changing to a fair number of comments the problem no longer exists.

issue 2
Article comments, removed user name is displayed as 0

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: article comments 2 bugs
« Reply #1 on: January 03, 2012, 01:33:41 PM »
Can you post the full error please? I need the file name and line number that it gives.

Offline zalias7

  • Jr. Member
  • **
  • Posts: 11
Re: article comments 2 bugs
« Reply #2 on: January 03, 2012, 02:01:40 PM »
sorry for my English.

error:

The database value you're trying to insert does not exist: com
Function: doTPpage
File: ../www/Sources/TPortal.php
Line: 801

You need to do is: write article -> write article for comment. Delete comment from article. Read article with comment and you get the error

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: article comments 2 bugs
« Reply #3 on: January 03, 2012, 03:01:00 PM »
Find in TPortal.php
Code: [Select]
array('com' => $count, 'artid' => $article['id'])
Replace $count as $ccount.
Code: [Select]
array('com' => $ccount, 'artid' => $article['id'])
This is fixed in the next version coming out soon. :)

Offline zalias7

  • Jr. Member
  • **
  • Posts: 11
Re: article comments 2 bugs
« Reply #4 on: January 04, 2012, 02:16:46 AM »
sorry, but anyway Error:
Unknown column 'i' in 'where clause'
File ..\ www \ Sources \ TPortal.php
Line: 801

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: article comments 2 bugs
« Reply #5 on: January 04, 2012, 09:14:05 AM »
Attach your file please.

Offline zalias7

  • Jr. Member
  • **
  • Posts: 11
Re: article comments 2 bugs
« Reply #6 on: January 04, 2012, 11:27:25 AM »
Attach your file please.

Attach TPortal.php  or other ?

Offline lurkalot

  • Administrator
  • *
  • Posts: 6450
    • Camera Craniums
Re: article comments 2 bugs
« Reply #7 on: January 04, 2012, 12:22:58 PM »
Attach your file please.

Attach TPortal.php  or other ?

Your TPortal.php file is the file you need to attach.

Offline zalias7

  • Jr. Member
  • **
  • Posts: 11
Re: article comments 2 bugs
« Reply #8 on: January 04, 2012, 12:46:26 PM »
Attach your file please.

Attach TPortal.php  or other ?

Your TPortal.php file is the file you need to attach.

vakaras.lt/TPortal.p_p

Offline ZarPrime

  • Friends
  • *
  • Posts: 4653
Re: article comments 2 bugs
« Reply #9 on: January 05, 2012, 11:04:52 AM »
zalias7,

Your last post did not have the TPortal.php file attached but you should be able to attach it to your next post.  Could you try it again please?

ZarPrime