When I add a widget to a page I get an Internal error:
[e9d3c35de62dbbc78dc0c67d] /wiki/index.php?title=Test&action=submit Error from line 176 of /var/www/html/wiki/extensions/Widgets/WidgetRenderer.php: Call to undefined method Article::getContent()
My configuration:
- Widgets 1.2.1
- Smarty 3.1.30
- MediaWiki 1.29.1
- PHP 7.0.22-0ubuntu0.16.04.1 (apache2handler)
- MySQL 5.7.19-0ubuntu0.16.04.1
- Article path /wiki/index.php/$1
- Script path /wiki
- index.php /wiki/index.php
- api.php /wiki/api.php
- load.php /wiki/load.php
The Widgets extension is listed under Installed Extensions on Special:Version, and I can create pages in the Widgets namespace without any errors.
I believe I have installed everything correctly (manual installation). Owner of extensions/Widgets is www-data:www-data . Owner and group permissions on extensions/Widgets and all its sub-folders are Read-Write-Execute. I have put the libs folder with contents into extensions/Widgets/smarty/ .
I will add backtrace here if needed.
Any suggestions would be much appreciated.