6.0.0-beta1
8/21/25

[#5807] In History view I can't remove the last page revision
Summary In History view I can't remove the last page revision
Queue Wicked
Type Bug
State Resolved
Priority 2. Medium
Owners Horde Developers (at)
Requester scalero (at) datadec (dot) es
Created 10/17/2007 (6518 days ago)
Due
Updated 01/06/2008 (6437 days ago)
Assigned 10/17/2007 (6518 days ago)
Resolved 01/06/2008 (6437 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/06/2008 10:48:30 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Committed, thanks!
10/17/2007 05:25:04 PM Jan Schneider State ⇒ Assigned
Priority ⇒ 2. Medium
Summary ⇒ In History view I can't remove the last page revision
Assigned to Horde DevelopersHorde Developers
 
10/17/2007 01:55:41 PM scalero (at) datadec (dot) es Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ In History view I cann't remove the last page revision
Due ⇒ 10/17/2007
Queue ⇒ Wicked
State ⇒ Unconfirmed
Reply to this comment
I run 'Wicked' with PHP-4.4.4 and Oracle like bbdd backend, when I go 
to the 'History' view a wiki page and I remove its last version, I 
obtain this error in the log:





[Wed Oct 17 12:22:48 2007] [error] PHP Notice:  Object to string 
conversion in /php/4.4/pear/DB/oci8.php on line 565

[Wed Oct 17 12:22:48 2007] [error] PHP Warning:  preg_match() expects 
parameter 2 to be string, object given in /php/4.4/pear/DB.php on line 
635

Oct 17 12:18:39 HORDE [error] [wicked] DB Error: mismatch: Object [DB 
Error: mismatch] [on line 799 of 
"/rootweb/horde/wicked/lib/Driver/sql.php"]





It works with this change and I think this still continue working with MySQL:





File: "wicked/lib/Driver/sql.php" Line: 792

-----------------------------------------------------------------------



-            $query = $this->_db->modifyLimitQuery($query, 0, 1);

+            $query = $this->_db->modifyLimitQuery($query, 0, 1, 
array($pagename));

Saved Queries