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
- 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: 10I 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
4c4cd678c154992a5fa7a7986828d253The 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 6385
- Created
- Thursday 06 July, 2017 17:58:57 UTC
by Roberto Kirschbaum - LastModif
- Wednesday 12 July, 2017 19:44:52 UTC