<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://weaponofmusicaldefense.com/index.php?action=history&amp;feed=atom&amp;title=User_talk%3AMember005</id>
	<title>User talk:Member005 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://weaponofmusicaldefense.com/index.php?action=history&amp;feed=atom&amp;title=User_talk%3AMember005"/>
	<link rel="alternate" type="text/html" href="https://weaponofmusicaldefense.com/index.php?title=User_talk:Member005&amp;action=history"/>
	<updated>2026-06-10T15:56:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://weaponofmusicaldefense.com/index.php?title=User_talk:Member005&amp;diff=2198&amp;oldid=prev</id>
		<title>Member005: /* Upgrade Documentation SMW 5.1.0 */ new section</title>
		<link rel="alternate" type="text/html" href="https://weaponofmusicaldefense.com/index.php?title=User_talk:Member005&amp;diff=2198&amp;oldid=prev"/>
		<updated>2026-06-10T13:25:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Upgrade Documentation SMW 5.1.0: &lt;/span&gt; new section&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Upgrade Documentation SMW 5.1.0 ==&lt;br /&gt;
&lt;br /&gt;
= Staging remediation log: Page Forms fatal after SMW 5.1.0 upgrade =&lt;br /&gt;
&amp;#039;&amp;#039;Date: 2026-06-10&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Environment: staging only (&amp;lt;code&amp;gt;dev.weaponofmusicaldefense.com&amp;lt;/code&amp;gt;)&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
After upgrading Semantic MediaWiki (SMW) on staging to 5.1.0, &amp;lt;code&amp;gt;Special:FormEdit/Web_citation&amp;lt;/code&amp;gt; began failing with HTTP 500 and a fatal exception.&lt;br /&gt;
The failure was due to Page Forms calling SMW legacy class aliases removed in SMW 5.&lt;br /&gt;
A targeted compatibility patch was applied in staging, and the endpoint now renders successfully (HTTP 200).&lt;br /&gt;
&lt;br /&gt;
== Problem observed ==&lt;br /&gt;
* Failing URL:&lt;br /&gt;
** &amp;lt;code&amp;gt;https://dev.weaponofmusicaldefense.com/thelibrary/Special:FormEdit/Web_citation&amp;lt;/code&amp;gt;&lt;br /&gt;
* Symptom:&lt;br /&gt;
** Fatal exception / HTTP 500 on staging.&lt;br /&gt;
* Root error identified:&lt;br /&gt;
** &amp;lt;code&amp;gt;Class &amp;quot;SMWDIProperty&amp;quot; not found&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Root cause ==&lt;br /&gt;
SMW 5 removed long-deprecated global class aliases (including &amp;lt;code&amp;gt;SMWDIProperty&amp;lt;/code&amp;gt; and related legacy names).&lt;br /&gt;
The installed Page Forms branch still used legacy class names in multiple files, causing runtime failures in FormEdit-related code paths.&lt;br /&gt;
&lt;br /&gt;
== Changes applied ==&lt;br /&gt;
=== 1) Page Forms: namespaced SMW class updates ===&lt;br /&gt;
Updated Page Forms calls from legacy aliases to namespaced SMW classes in:&lt;br /&gt;
* &amp;lt;code&amp;gt;mw_data_staging/extensions/PageForms/includes/PF_TemplateField.php&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;mw_data_staging/extensions/PageForms/includes/PF_ValuesUtils.php&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;mw_data_staging/extensions/PageForms/specials/PF_CreateTemplate.php&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Representative edits:&lt;br /&gt;
* &amp;lt;code&amp;gt;SMWDIProperty::newFromUserLabel(...)&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;\SMW\DIProperty::newFromUserLabel(...)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;SMWDIWikiPage::newFromTitle(...)&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;\SMW\DIWikiPage::newFromTitle(...)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;new SMWRequestOptions()&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;new \SMW\RequestOptions()&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;new SMWConceptDescription(...)&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;new \SMW\Query\Language\ConceptDescription(...)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;new SMWPrintRequest(...)&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;new \SMW\Query\PrintRequest(...)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 2) Page Forms: safe adjustment for DataValueFactory method availability ===&lt;br /&gt;
In &amp;lt;code&amp;gt;PF_TemplateField.php&amp;lt;/code&amp;gt;, the label-format code path previously called &amp;lt;code&amp;gt;SMWDataValueFactory::findTypeID(...)&amp;lt;/code&amp;gt;.&lt;br /&gt;
That method is not available in the installed SMW runtime.&lt;br /&gt;
The staging patch now uses &amp;lt;code&amp;gt;$this-&amp;gt;mPropertyType&amp;lt;/code&amp;gt; directly as the type ID before calling:&lt;br /&gt;
* &amp;lt;code&amp;gt;\SMW\DataValueFactory::newTypeIDValue(...)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 3) Debug exposure cleanup ===&lt;br /&gt;
After validation, staging exception-detail output was disabled again:&lt;br /&gt;
* &amp;lt;code&amp;gt;mw_data_staging/LocalSettings.php&amp;lt;/code&amp;gt;&lt;br /&gt;
* Confirmed value:&lt;br /&gt;
** &amp;lt;code&amp;gt;$wgShowExceptionDetails = false;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Validation performed ==&lt;br /&gt;
=== Endpoint check ===&lt;br /&gt;
* Requested:&lt;br /&gt;
** &amp;lt;code&amp;gt;https://dev.weaponofmusicaldefense.com/thelibrary/Special:FormEdit/Web_citation&amp;lt;/code&amp;gt;&lt;br /&gt;
* Result:&lt;br /&gt;
** &amp;lt;code&amp;gt;HTTP 200&amp;lt;/code&amp;gt;&lt;br /&gt;
** Response contains &amp;lt;code&amp;gt;Create Web citation&amp;lt;/code&amp;gt; heading/title&lt;br /&gt;
** No fatal exception text in response&lt;br /&gt;
&lt;br /&gt;
=== Log check ===&lt;br /&gt;
* Searched staging container logs for:&lt;br /&gt;
** &amp;lt;code&amp;gt;SMWDIProperty&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;code&amp;gt;Call to undefined method&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;code&amp;gt;Fatal exception&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;PHP Fatal&amp;lt;/code&amp;gt;&lt;br /&gt;
* Result:&lt;br /&gt;
** No new fatal matches after patch/validation requests&lt;br /&gt;
&lt;br /&gt;
== Current status ==&lt;br /&gt;
* Staging FormEdit path is restored for &amp;lt;code&amp;gt;Web_citation&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Staging remains on:&lt;br /&gt;
** MediaWiki 1.41.1&lt;br /&gt;
** Semantic MediaWiki 5.1.0&lt;br /&gt;
* This removes the immediate blocker introduced by the SMW upgrade and clears the path for subsequent staged core/runtime upgrade work.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Changes were intentionally limited to staging files under &amp;lt;code&amp;gt;mw_data_staging&amp;lt;/code&amp;gt;.&lt;br /&gt;
* No production routing/content changes were made in this remediation.&lt;/div&gt;</summary>
		<author><name>Member005</name></author>
	</entry>
</feed>