I guess always helps revealing what environment you use, e.g. PHP,
MariaDB, MW, SMW, etc. Cheers, Karsten

--
Karsten / MediaWiki and Semantic MediaWiki enthusiast / → 
https://professional.wiki/

Am 23.01.20 um 21:37 schrieb Mark A. Hershberger:
> While trying to my wiki, I ran into the following error:
>
> [95e3cb7152fc75e5d21f4193] /wiki/Main_Page RuntimeException from line 228 of 
> .../extensions/SemanticMediaWiki/src/MediaWiki/Database.php: A database error 
> has occurred. Did you forget to run maintenance/update.php after upgrading? 
> See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
> Query: SELECT DISTINCT t0.smw_id AS id,t0.smw_title AS t,t0.smw_namespace AS 
> ns,t0.smw_iw AS iw,t0.smw_subobject AS so,t0.smw_sortkey AS 
> sortkey,t0.smw_sortkey FROM `wiki1smw_object_ids` AS t0 INNER JOIN 
> `wiki1smw_fpt_inst` AS t2 ON t0.smw_id=t2.s_id INNER JOIN `wiki1t3` AS t3 ON 
> t2.o_id=t3.id INNER JOIN `wiki1smw_fpt_inst` AS t4 ON t2.s_id=t4.s_id WHERE 
> ((t4.o_id='702993')) AND t0.smw_iw!=':smw' AND t0.smw_iw!=':smw-delete' AND 
> t0.smw_iw!=':smw-redi' ORDER BY t0.smw_sortkey ASC LIMIT 2005
> Function: SMW\SQLStore\QueryEngine\QueryEngine::getInstanceQueryResult
> Error: 1146 Table 'wiki_d.wiki1t3' doesn't exist (...)
>
> The problem, it looks like, is that the code in
> QuerySegmentListProcessor.php uses the table alias (t3 in this case) in
> place of the table itself.  I tried fixing this by altering the code so
> that $smwtable is is used instead of the alias[1], but the tests didn't
> pass.
>
> I wonder if anyone can help me understand this code better or fix the
> problem.
>
> Mark.
>
> Footnotes:
> [1]  
> https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/4445/commits/fb84812974229e30531c95d4e297cc24cc2442a9
>
>
>
> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>



_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to