Current time: 03-22-2010, 05:14 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] variables not defined when using postgresql
08-21-2008, 06:59 PM (This post was last modified: 08-21-2008 07:07 PM by Gibheer.)
Post: #1
[F] variables not defined when using postgresql
Hey,

I have changed my board from mysql to postgresql and it works so far, but not for all users.
With my admin-account all is possible, but some users get error messages, when they try to open a new topic, they get the following message
Code:
MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
    22P02 - ERROR: invalid input syntax for integer: ""
Query:
    SELECT lastpost,fid FROM zero_threads WHERE lastposteruid='11' AND tid='' LIMIT 1

I have checked all I could get in my hands, but I could not find anything. What is the cause for this?

edit: forum for testing - http://testforum.blubotter.org/moepforum
Find all posts by this user
08-21-2008, 07:58 PM
Post: #2
RE: variables not defined when using postgresql
Which version of PostgreSQL? What modifications / plugins do you have installed?

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user
08-21-2008, 08:02 PM
Post: #3
RE: variables not defined when using postgresql
(08-21-2008 07:58 PM)Ryan Gordon Wrote:  Which version of PostgreSQL? What modifications / plugins do you have installed?

I use the version 8.3.1 of postgresql and my forum has none plugin installed. The testforum is the new installation of mybb 1.4 and it shows the exact same behavior.
Find all posts by this user
08-21-2008, 08:03 PM
Post: #4
RE: variables not defined when using postgresql
I don't see where we fetch lastpost,fid in any query in showthread.php

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user
08-21-2008, 08:05 PM
Post: #5
RE: variables not defined when using postgresql
It's in inc/datahandlers/post.php, I assume "open a new topic" means creating a new thread.

[Image: sig.php?mybb]
MyBB is on Facebook and Twitter
Hosting available, PM for details
Visit this user's website Find all posts by this user
08-21-2008, 08:10 PM
Post: #6
RE: variables not defined when using postgresql
yes, I meant create a new topic, sorry Undecided (stupid german thinking)

When I'm in the newthread.php and let me show the source with the browser, the hidden field tid has no value. Is that correct?
Find all posts by this user
08-21-2008, 08:11 PM
Post: #7
[F] variables not defined when using postgresql
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user
08-21-2008, 08:12 PM
Post: #8
RE: [F] variables not defined when using postgresql
Try This. goes in inc/datahandlers/


Attached File(s)
.php  post.php (Size: 43.05 KB / Downloads: 87)

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user
08-21-2008, 08:16 PM
Post: #9
RE: [F] variables not defined when using postgresql
in this file is a failure in line 313, there is one ) to much, but it works, thanks Smile
Find all posts by this user
08-21-2008, 08:17 PM
Post: #10
RE: [F] variables not defined when using postgresql
Ah yeh, so it works with that fixed?

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user


Forum Jump: