Home arrow Forum Recent topics issues
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2008, 08:00:37 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Recent topics issues
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Recent topics issues  (Read 7296 times)
joelabq
Joomla Newbie
*

Karma: +2/-0
Offline Offline

Posts: 26


View Profile
Recent topics issues
« on: October 14, 2005, 10:47:47 AM »

I have trouble here and on my site with the "Unread Posts" link from SMF.

From my website I get this randomly, if I refresh eventually I get the recent topics correctly:

Quote
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND ml.ID_MSG = t.ID_LAST_MSG
AND IFNULL(lt.logTime, IFNULL
File: /home/myfolder/public_html/simpleMachines/Sources/Recent.php
Line: 742

And here I get a database error, I am assuming its the same error since if you just keep trying it works.

Quote

Database Error
Please try again. If you come back to this error screen, report the error to an administrator.

Joel
Logged
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: Recent topics issues
« Reply #1 on: October 14, 2005, 11:21:51 AM »

I thought this issue was gone.
I will take a look at this.
Logged
joelabq
Joomla Newbie
*

Karma: +2/-0
Offline Offline

Posts: 26


View Profile
Re: Recent topics issues
« Reply #2 on: October 14, 2005, 04:46:56 PM »

If it's any help, if I click on the "Show new replies to your posts" link it always works, and it makes the "Show unread posts since last visit." link work everytime.

Joel
Logged
masyomo
Joomla Newbie
*

Karma: +1/-1
Offline Offline

Posts: 35


View Profile
Re: Recent topics issues
« Reply #3 on: October 14, 2005, 07:37:47 PM »

i'm getting this error too - it didn't work before but since the last joomla upgrade it seems to show more errors. the strange thing is that if you keep trying then after a few attempts it works - but on the first attemp it always shows the error......

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND ml.ID_MSG = t.ID_LAST_MSG
AND IFNULL(lt.logTime, IFNULL(lmr.logTime, 0))' at line 7
File: /home/masyomo/public_html/board/Sources/Recent.php
Line: 742
Logged
Sorian
Joomla Newbie
*

Karma: +2/-0
Offline Offline

Posts: 19



View Profile
Re: Recent topics issues
« Reply #4 on: October 20, 2005, 02:10:54 PM »

Hi,

as written in another post, same error here. Getting the error after logging in via optional loginmodule and hitting view unread posts after that.

No error after loggin in via forum-login...

J!brigde 1.0.1b
J! 1.03
SMF 1.1 RC1
Logged
joelabq
Joomla Newbie
*

Karma: +2/-0
Offline Offline

Posts: 26


View Profile
Re: Recent topics issues
« Reply #5 on: October 21, 2005, 11:00:53 AM »

My best guess for this one, since you can create a pattern of when it won't work (like right after login) is that the "SQL Syntax error" is really because there is missing data... I haven't dug into yet, but I'm guessing a cookie issue where it's asking for the var that holds the last visit time is empty or improperly formatted. This holds true until you click on or login using something that sets the value correctly then the recent posts start working.

Just a guess in case someone else wants to look at it.

Joel
Logged
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: Recent topics issues
« Reply #6 on: October 21, 2005, 03:58:58 PM »

This error is due to some session issue. The thing is it's not happening here. maybe I just don't catch it. I will try to work on this issue this weekend. But i can't promise, I've just been really busy with my job and family. Hopefully I can release 1.0.2 this weekend with the session sync issue fixed.

Logged
joelabq
Joomla Newbie
*

Karma: +2/-0
Offline Offline

Posts: 26


View Profile
Re: Recent topics issues
« Reply #7 on: October 21, 2005, 04:49:25 PM »

I can make it happen here too.

Here's how: Logout. Then click on login on the top right (which is your joomla login, you can't make this happen with the SMF stock login box). Do not do anything else except enter the forum and click on the link "Show unread posts since last visit." Do not click on "Show new replies to your posts." first or you won't see the error. Your error apparently does not have the SQL error mentioned, but then again all it says is "Database error". I am assuming you have changed it for security reasons not to dump the SQL error code.

I've noticed that if you actively move around your site or my site, at some point the session gets fixed up and everything will work as it is supposed to.

Joel
Logged
Sorian
Joomla Newbie
*

Karma: +2/-0
Offline Offline

Posts: 19



View Profile
Re: Recent topics issues
« Reply #8 on: October 21, 2005, 07:03:11 PM »

Hi!

This issue has no pattern at all! Sometimes I get this message directly after login and othertimes after a while using the forum!

And yes, itīs reproduceable here by login via login-module:

Quote
Database Error
Please try again. If you come back to this error screen, report the error to an administrator.

Edit: This error also happens with the other *ambo/joomla-smf-bridge from ostio. Error seems to be gone after klicking some topics or posts and than hitting "Show unread posts since last visit." Very strange...
« Last Edit: October 21, 2005, 07:06:44 PM by Sorian » Logged
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: Recent topics issues
« Reply #9 on: October 21, 2005, 07:09:42 PM »

I can make it happen here too.

Here's how: Logout. Then click on login on the top right (which is your joomla login, you can't make this happen with the SMF stock login box). Do not do anything else except enter the forum and click on the link "Show unread posts since last visit." Do not click on "Show new replies to your posts." first or you won't see the error. Your error apparently does not have the SQL error mentioned, but then again all it says is "Database error". I am assuming you have changed it for security reasons not to dump the SQL error code.

I've noticed that if you actively move around your site or my site, at some point the session gets fixed up and everything will work as it is supposed to.

Joel
The fix I did for this was to set something in session. I guess something is still wrong with it. I have to check my fix again.
Logged
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: Recent topics issues
« Reply #10 on: October 25, 2005, 01:34:33 PM »

Joel,

I tried to recreate this error on this website but it's really not happening. I deleted the cookies and follow the steps you mentioned.

There's one change on one file though but I don't think that should fix it because it's just a fix for session life sync.

Let me know if you still see Unread error here.

I'm just adding more issues to fix for 1.0.2, the session time sync is fixed.
Logged
joelabq
Joomla Newbie
*

Karma: +2/-0
Offline Offline

Posts: 26


View Profile
Re: Recent topics issues
« Reply #11 on: October 25, 2005, 08:10:39 PM »

I logged in, clicked on a couple posts (this being the second one).. saw you asked me to check to see if I still had problems here, so I clicked on your "unread since last visit" link and got this again:

Quote

Database Error
Please try again. If you come back to this error screen, report the error to an administrator.

Clicked on it a second time, works fine.

Joel
Logged
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: Recent topics issues
« Reply #12 on: October 26, 2005, 01:59:15 PM »

This should be fixed now on 1.0.2!  Wink If not, I don't know now!
Logged
Sorian
Joomla Newbie
*

Karma: +2/-0
Offline Offline

Posts: 19



View Profile
Re: Recent topics issues
« Reply #13 on: October 28, 2005, 02:34:30 AM »

This error still appears at this forums but not at my own forum installation... strange...  Wink
Logged
kai920
Moderator
Joomla Expert
*****

Karma: +14/-2
Offline Offline

Posts: 275



View Profile
Re: Recent topics issues
« Reply #14 on: October 28, 2005, 02:52:16 AM »

I logged in, clicked on a couple posts (this being the second one).. saw you asked me to check to see if I still had problems here, so I clicked on your "unread since last visit" link and got this again:

Clicked on it a second time, works fine.

Joel

I cannot duplicate this error on Joomlahacks forums...
Logged

Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login