Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 277
Total: 277

Author Topic: Error Approving and Unapproving Images  (Read 4971 times)

0 Members and 1 Guest are viewing this topic.

Offline seelie

  • Member
  • *
  • Posts: 15
    • View Profile
Error Approving and Unapproving Images
« on: December 08, 2006, 05:15:58 pm »
I get the following error when attempting to Approve or Unapprove Images, and even when clicking on the Approve Images Link:

Code: [Select]
Unknown column 'p.ID_CAT' in 'on clause'
File: /home/<directorypath here>/Sources/Load.php(1711) : eval()'d code
Line: 1575

I checked throughout the forum, and used one of the files in the one thread that referenced this.  Same error.  Any ideas?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Error Approving and Unapproving Images
« Reply #1 on: December 08, 2006, 05:47:05 pm »
Hotfix
Open Gallery.template.php
On line 1575
Find
Code: [Select]
FROM {$db_prefix}gallery_pic AS p, {$db_prefix}members AS m
Replace with
Code: [Select]
FROM ({$db_prefix}gallery_pic AS p, {$db_prefix}members AS m)
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline seelie

  • Member
  • *
  • Posts: 15
    • View Profile
Re: Error Approving and Unapproving Images
« Reply #2 on: December 08, 2006, 07:32:25 pm »
I replaced all instances of the initial text with the new text ... and that did the trick.  Thanks!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Error Approving and Unapproving Images
« Reply #3 on: December 08, 2006, 07:37:35 pm »
I replaced all instances of the initial text with the new text ... and that did the trick.  Thanks!
I would be a little care replacing them all. It might cause something unexpected.

Glad it works now though.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline seelie

  • Member
  • *
  • Posts: 15
    • View Profile
Re: Error Approving and Unapproving Images
« Reply #4 on: December 11, 2006, 01:41:22 am »
I replaced all instances of the initial text with the new text ... and that did the trick.  Thanks!
I would be a little care replacing them all. It might cause something unexpected.

Glad it works now though.

I thought about that ... is why I keep backup files :)  Thus far, the gallery has been error and oddity free since implementing hotfix.

 

Related Topics

  Subject / Started by Replies Last post
20 Replies
17077 Views
Last post November 01, 2006, 07:43:40 pm
by roberto
0 Replies
3200 Views
Last post April 01, 2009, 12:40:27 pm
by WBA Dude
3 Replies
3167 Views
Last post May 22, 2010, 11:29:01 pm
by SMFHacks
0 Replies
2305 Views
Last post December 27, 2013, 07:23:42 am
by Cmely
0 Replies
2201 Views
Last post February 06, 2014, 12:58:20 am
by Cmely

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal