Page MenuHomePhabricator

Error from line 31 of "PF_Utils.php": Call to undefined function swmfContLang()
Closed, InvalidPublic

Description

(This is my first time posting something like this, so I greatly appreciate your help and am sorry for any formatting errors.)

Setup
MediaWiki 1.35.0
PHP 7.3.23 (fpm-fcgi)
MariaDB 5.5.68-MariaDB
Semantic MediaWiki 3.2.1
PageForms 4.9.5 (70295d4) 17:58, 4 August 2020

Issue

  • Appearing on both Special:CreateClass and Special:CreateProperty

[X8Xlar4@schLwp5Cg-aZZgAAAAM] /wiki/index.php?title=Special:CreateClass Error from line 31 of /var/www/html/wiki/extensions/PageForms/includes/PF_Utils.php: Call to undefined function swmfContLang()

Backtrace

#0 /var/www/html/wiki/extensions/PageForms/specials/PF_CreateClass.php(218): PFUtils::getSMWContLang()
#1 /var/www/html/wiki/includes/specialpage/SpecialPage.php(600): PFCreateClass->execute(NULL)
#2 /var/www/html/wiki/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)
#3 /var/www/html/wiki/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#4 /var/www/html/wiki/includes/MediaWiki.php(940): MediaWiki->performRequest()
#5 /var/www/html/wiki/includes/MediaWiki.php(543): MediaWiki->main()
#6 /var/www/html/wiki/index.php(53): MediaWiki->run()
#7 /var/www/html/wiki/index.php(46): wfIndexMain()
#8 {main}

Comment
I have already updated "includes/Utills.php", "specials/CreateClass.php", "specials/CreateProperty.php", and "specials/CreateForm.php" as noted in T249172 including both patches 627794 and 628837. Is there anything else I need to do to get this to work?

Related Objects

Event Timeline

This is fixed in the latest unreleased version of Page Forms.

Nikerabbit closed this task as Invalid.EditedDec 1 2020, 7:10 AM

On a closer look, you have a typo there: swmfContLang has never existed, smwfContLang is the correct name. Did you edit the files manually?

On a closer look, you have a typo there: swmfContLang has never existed, smwfContLang is the correct name. Did you edit the files manually?

Oh my goodness. Yes, I did edit manually. I am new to all this and don't yet know how to commit patches automatically and thought these few changes would be easier to do by hand.

I double-checked for typos twice before posting this but alas... Sorry for wasting your time, and thank you!