Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4301
Latest: Bolon377
New This Month: 9
New This Week: 4
New Today: 1
Stats
Total Posts: 43801
Total Topics: 7605
Most Online Today: 561
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 50
Total: 50

Author Topic: Error Approving and Unapproving Images  (Read 5340 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: 16677
    • 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: 16677
    • 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
18087 Views
Last post November 01, 2006, 07:43:40 pm
by roberto
0 Replies
3249 Views
Last post April 01, 2009, 12:40:27 pm
by WBA Dude
3 Replies
3323 Views
Last post May 22, 2010, 11:29:01 pm
by SMFHacks
0 Replies
2483 Views
Last post December 27, 2013, 07:23:42 am
by Cmely
0 Replies
2326 Views
Last post February 06, 2014, 12:58:20 am
by Cmely

+- Recent Topics

A day? by davejo
June 11, 2025, 04:14:35 pm

Dual 'Upload Url' by davejo
June 06, 2025, 04:27:45 pm

Automatic Sorting of Categories by Kiwi
June 03, 2025, 10:32:32 pm

[Mod]Cloudflare Turnstile for SMF by SMFHacks
May 08, 2025, 10:08:43 am

Disable "Notify me of Comments feature" by Kiwi
May 08, 2025, 02:04:16 am

Trying to access array offset on null by Michel68
May 05, 2025, 08:47:34 am

Default [Additional] Membergroups upon Registration by SMFHacks
April 30, 2025, 10:22:52 am

Sorted FTP Import Directory by SMFHacks
April 25, 2025, 05:11:22 am

Search results items per page? by SMFHacks
April 18, 2025, 04:12:23 pm

Suggestions and request by Senkusha
April 03, 2025, 02:30:43 pm

Powered by EzPortal