Welcome, Guest. Please Login or Register.
April 23, 2024, 08:12:27 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Patch problem Post.php « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Patch problem Post.php  (Read 3517 times)
proenski
Jr. Member
**
Posts: 60


Patch problem Post.php
« on: March 11, 2004, 12:35:58 PM »
Reply with quote

YaBB SE Version: 1.5.5
PHP Version: 4.3.4
MySQL Version: 4.0.x
Server Platform: Unix, Linux, or BSD
Link to Forum: http://www.depechemodeforum.com/yabbse/index.php

Problem Description:
I've downloaded the latest patch but the new Post.php is giving me this error:

Unknown column 'b.isSupport' in 'field list'
File: /home/.jasper/proenski/depechemodeforum.com/yabbse/Sources/Post.php
Line: 84


The old Post.php version doesn't have this...

What to do ???



For now I put the old Post.php back ....
« Last Edit: March 11, 2004, 12:40:39 PM by proenski » Logged

oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:Patch problem Post.php
« Reply #1 on: March 11, 2004, 04:17:10 PM »
Reply with quote

Please post the code from the "old" post.php and the new post.php from line 84 to wherever that query ends.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
proenski
Jr. Member
**
Posts: 60


Re:Patch problem Post.php
« Reply #2 on: March 11, 2004, 09:20:42 PM »
Reply with quote

new Post.php

   # Determine what category we are in.
   $request = mysql_query("
      SELECT b.ID_BOARD as bid, b.name as bname, c.ID_CAT as cid, c.memberGroups, c.name as cname, b.isAnnouncement, b.isSupport
      FROM {$db_prefix}boards as b, {$db_prefix}categories as c
      WHERE (b.ID_BOARD = $board
         AND b.ID_CAT=c.ID_CAT)") or database_error(__FILE__, __LINE__);



Old Post.php

   # Determine what category we are in.
   $request = mysql_query("
      SELECT b.ID_BOARD as bid, b.name as bname, c.ID_CAT as cid, c.memberGroups, c.name as cname, b.isAnnouncement
      FROM {$db_prefix}boards as b, {$db_prefix}categories as c
      WHERE (b.ID_BOARD = $board
         AND b.ID_CAT=c.ID_CAT)") or database_error(__FILE__, __LINE__);

   if (mysql_num_rows($request) == 0)
      fatal_error($txt['yse232']);

   $bcinfo = mysql_fetch_array($request);
   $curcat = $bcinfo['cid'];
   $cat = $bcinfo['cname'];
   $currentboard = $bcinfo['bid'];
   $boardname = $bcinfo['bname'];


Line 84 in the old Post.php is the line after this last line $boardname = $bcinfo['bname']; and is blank...
Logged

proenski
Jr. Member
**
Posts: 60


Re:Patch problem Post.php
« Reply #3 on: March 16, 2004, 07:18:44 PM »
Reply with quote

No one on this ???
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Patch problem Post.php
« Reply #4 on: March 16, 2004, 08:52:51 PM »
Reply with quote

I don't see isSupport there anywhere.

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Patch problem Post.php « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.041 seconds with 20 queries.