Hello folks,
AddPropertyObjectValue throws MySQL errors while
using custom PHP-driven properties in SMW 1.8.x. This doesn't happen in
1.7.x.
but makes an SMW-update system critical, because it crashes a complete Wiki
when someone tries to edit. I tested this behavior with SMW 1.7.1, 1.8.2,
1.8.3
MWJames says bugzilla is not the right place for this, so I post it here.
Could someone help?
minor:
<code>
<b>Deprecated</b>: Use of User::editToken was deprecated in MediaWiki 1.19.
[Called from SFFormEdit::printForm in
Q:\flampp\htdocs\schnatzikutzki\extensions\SemanticForms\specials\SF_FormEdi
t.php
at line 323] in
<b>Q:\flampp\htdocs\schnatzikutzki\includes\debug\Debug.php</b>
on line <b>282</b>
</code>
major from the MW-GUI while saving the edit form:
INSERT INTO `smw_di_blob` (s_id,p_id,o_blob,o_hash) VALUES
('145','144',NULL,'Hans'),('145','150','156'),('145','152',NULL,'Hans')
from within function
"SMW::writePropertyTableRowUpdates-insert-smw_di_blob".
Database returned error "1136: Column count doesn't match value count at row
2
(localhost)".
major from shell (triggered by SMW_refreshData.php):
A database query syntax error has occurred.
The last attempted database query was:
"INSERT INTO `smw_di_blob` (s_id,p_id,o_id) VALUES
('51','150','151'),('51','152
from within function "SMW::writePropertyTableRowUpdates-insert-smw_di_blob".
Database returned error "1054: Unknown column 'o_id' in 'field list'
(localhost)"
I use the same code as the guys in Semantic Extra Special Properties in the
propper handler:
<code>
SMWDIProperty::registerProperty('___ABCED', '_str','ABC Document Edited
By',true);
SMWDIProperty::registerPropertyAlias('___SDWED',
'ABC_Document_Edited_By');
[...]
$user = $wgUser->getName();
$property = new SMWDIProperty('___SDWED');
$dataItem = new SMWDIString($user);
$data->addPropertyObjectValue($property, $dataItem);
</code>
For this reproduction I switched to MW 1.20.2 + SMW 1.8.2
Thank you Steve
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel