News:

Join the Facebook Fan Page.

Main Menu

DB Error when posting...

Started by Xarcell, July 26, 2011, 12:30:51 PM

Previous topic - Next topic

Xarcell

Ever since I updated my site from RC5 to Gold, I get this error when submitting a post:
QuoteThe database value you're trying to insert does not exist: to_members

The post still goes through and shows, it just outputs that error everytime.

Does that sound similar? Or do you think it's related to a mod?

Xarcell

#1
Ok, tracked down some more details. admin can post just fine, and anyone can create topics just fine. However, when someone other than the admin replies, the DB error appears.

Quotehttp://xxxxxx.com/index.php?action=post2;board=2.0;q=post2%2Flounge%2F
2: Invalid argument supplied for foreach()
File: /home/xarcell/public_html/xxxxxx.com/Sources/Subs-Post.php
Line: 907

Quotehttp://xxxxxx.com/index.php?action=post2;board=2.0;q=post2%2Flounge%2F
2: array_unique() [<a href='function.array-unique'>function.array-unique</a>]: The argument should be an array
File: /home/xarcell/public_html/xxxxxx.com/Sources/Subs-Post.php
Line: 951

Quotehttp://xxxxxx.com/index.php?action=post2;board=2.0;q=post2%2Flounge%2F
2: array_unique() [<a href='function.array-unique'>function.array-unique</a>]: The argument should be an array
File: /home/xarcell/public_html/xxxxxx.com/Sources/Subs-Post.php
Line: 954

Quotehttp://xxxxxx.com/index.php?action=post2;board=2.0;q=post2%2Flounge%2F
2: array_diff() [<a href='function.array-diff'>function.array-diff</a>]: Argument #1 is not an array
File: /home/xarcell/public_html/xxxxxx.com/Sources/Subs-Post.php
Line: 954

Quotehttp://xxxxxx.com/index.php?action=post2;board=2.0;q=post2%2Flounge%2F
2: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array
File: /home/xarcell/public_html/xxxxxx.com/Sources/Subs-Post.php
Line: 957

Quotehttp://xxxxxx.com/index.php?action=post2;board=2.0;q=post2%2Flounge%2F
2: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array
File: /home/xarcell/public_html/xxxxxx.com/Sources/Subs-Post.php
Line: 957

Quotehttp://xxxxxx.com/index.php?action=post2;board=2.0;q=post2%2Flounge%2F
The database value you're trying to insert does not exist: to_members
Function: sendpm
File: /home/xarcell/public_html/xxxxxx.com/Sources/Subs-Post.php
Line: 970

They all seem related. So, should I replace my Subs-Post.php with a fresh 2.0 copy, and manually make my mod code edits to it?

I looked in a fresh install of SMF 2.0 and tried to locate which table to_members was in, so I could try and add it to my other DB on the site that isn't working. However, I could not find it. Any help?

I'm going to pick through my mods now to see if any of them could be causing this...

Advertisement: