Loading...
 
Skip to main content

Error message when removing a wiki page

Status
Closed
Subject
Error message when removing a wiki page
Version
1.8.x
Category
  • Error
Feature
Wiki (page view, edit, history, rename, etc)
Resolution status
Fixed or Solved
Submitted by
Roberto Kirschbaum
Volunteered to solve
Luis Henrique Fagundes
Lastmod by
Roberto Kirschbaum
Rating
(0)
Description

I have a fresh install of Trunk - 18.0
PHP Version: 5.6.30
Database server: mariadb.docker via TCP/IP
Server type: MariaDB
Server version: 10.2.6-MariaDB-10.2.6+maria~jessie - mariadb.org binary distribution
Protocol version: 10

I can create, edit and rename wiki pages normally. However, when I try to Remove a wiki page I get the following error message:

System error.
The following error message was returned:

Unknown column 'Array' in 'where clause'
The query was:

SELECT `objectId`, `groupName`, `permName` FROM users_objectpermissions WHERE `objectType` = ? AND `objectId` IN( ? )

Values:

wiki page
4c4cd678c154992a5fa7a7986828d253

The built query was likely:

SELECT `objectId`, `groupName`, `permName` FROM users_objectpermissions WHERE `objectType` = '' AND `objectId` IN( '4c4cd678c154992a5fa7a7986828d253' )
Stacktrace:

  • /var/www/html/tiki-ajax_services.php : 0 -> {main}(array ( ))
  • /var/www/html/tiki-ajax_services.php : 51 -> process(array ( ))
  • /var/www/html/lib/core/Services/Broker.php : 28 -> attemptProcess(array ( ))
  • /var/www/html/lib/core/Services/Broker.php : 107 -> action_remove_pages(array ( ))
  • /var/www/html/lib/core/Services/Wiki/Controller.php : 98 -> simpleFilter(array ( ))
  • /var/www/html/lib/core/Perms.php : 245 -> filter(array ( ))
  • /var/www/html/lib/core/Perms.php : 224 -> bulk(array ( ))
  • /var/www/html/lib/core/Perms.php : 204 -> loadBulk(array ( ))
  • /var/www/html/lib/core/Perms.php : 368 -> bulk(array ( ))
  • /var/www/html/lib/core/Perms/ResolverFactory/ObjectFactory.php : 84 -> fetchAll(array ( ))
  • /var/www/html/lib/core/TikiDb.php : 94 -> query(array ( ))
  • /var/www/html/lib/core/TikiDb/Adodb.php : 61 -> handleQueryError(array ( ))
  • /var/www/html/lib/core/TikiDb.php : 162 -> handle(array ( ))



Solution

Fixed by lfagundes

Revision: 63240
http://sourceforge.net/p/tikiwiki/code/63240
Author: lfagundes
Date: 2017-07-12 14:26:14 +0000 (Wed, 12 Jul 2017)
Log Message:
-------
FIX Perms::simpleFilter was being called with wrong parameter type. Page removal (and probably other actions) was breaking in AdoDB, while PDO is tolerant with wrong parameter.

Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6385
Created
Thursday 06 July, 2017 17:58:57 UTC
by Roberto Kirschbaum
LastModif
Wednesday 12 July, 2017 19:44:52 UTC


Show PHP error messages