* DB Error: unknown error
* (SELECT linker.id as id, linker.pagename as pagename, linker.hits as hits FROM wiki_link, wiki_page linker, wiki_page linkee, wiki_nonempty WHERE linkfrom=linker.id AND linkto=linkee.id AND linkee.pagename='SammlerSteckbriefe/Collector' AND wiki_nonempty.id=linker.id AND linker.pagename NOT IN ('SammlerSteckbriefe/Collector') ORDER BY $want.pagename ASC [nativecode=1109 ** Unknown table '$want' in order clause])
Regards Stefan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
it looked at the code in PageList.php and PearDB.php and figured out a work arround for my problem. But this should be fixed language speciffic for phpwiki.
Ok second Problem is solved, there is a problem in
PearDB.php missing ' ' in function get_links
here is the correct line ...
if ($orderby) $orderby = 'ORDER BY ' . $want . '.' . $orderby;
is there a way to sort it like latin1_german2_ci will do. I changed all code pages in mysql to that. in 1.3.10 this works as default sort for backlinks.
Regards Stefan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hallo,
using latest CVS Version, i have several Problems with BackLinks Plugin.
<?plugin BackLinks page="SammlerSteckbriefe/Collector" info=hits ?> produces an unsorted list of pages - 1.3.10 it was sorted.
Klicking on pagename to sort the list produces a database error
lib/WikiDB/backend/PearDB.php (In template 'body' < 'html'):1014: Error: wikidb_backend_peardb_mysql: fatal database error
Regards Stefan
it looked at the code in PageList.php and PearDB.php and figured out a work arround for my problem. But this should be fixed language speciffic for phpwiki.
Maybe like the code on end of the php manuale page here
http://de3.php.net/manual/de/function.usort.php
PageList.php cleared the function _sortPages()
thats the rest of it
PearDB.php
changed the type of sorting to database sorting like this
Here is my work arround. I hope the code is shown correct. in the past it was'nt
function get_links($pagename, $reversed=true, $include_empty=false, $sortby=false, $limit=false, $exclude='') {
$dbh = &$this->_dbh;
extract($this->_table_names);
Regards Stefan
Ok second Problem is solved, there is a problem in
PearDB.php missing ' ' in function get_links
here is the correct line ...
if ($orderby) $orderby = 'ORDER BY ' . $want . '.' . $orderby;
is there a way to sort it like latin1_german2_ci will do. I changed all code pages in mysql to that. in 1.3.10 this works as default sort for backlinks.
Regards Stefan