Loading...
 
Skip to main content

7.0b2 Error trying to validate newly uploaded file draft

Status
Closed
Subject
7.0b2 Error trying to validate newly uploaded file draft
Version
7.x
Category
  • Error
  • Regression
  • Less than 30-minutes fix
Feature
File Gallery (elFinder or standard UI)
Resolution status
Fixed or Solved
Submitted by
nethog
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

Uploaded a new version of a file.
Clicked "verify" option
Was prompted to confirm.

After clicking confirm, got the following error:

System error.


The following error message was returned:
Unknown column 'fileId' in 'where clause'
The query was:
SELECT * FROM `tiki_file_galleries` WHERE 1=1 AND `fileId` = ?
Values:
1.1

The built query was likely:
SELECT * FROM `tiki_file_galleries` WHERE 1=1 AND `fileId` = '1'

Solution

In lib\filegals\filegallib.php
In function validate_draft

Note line:
$filesTable = $this->table('tiki_file_galleries');

This should be:
$filesTable = $this->table('tiki_files');

Workaround
See solution
Importance
8
Easy to solve?
8
Priority
64
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3898
Created
Monday 23 May, 2011 04:09:04 UTC
by nethog
LastModif
Tuesday 30 June, 2026 22:01:14 UTC


Show PHP error messages