Topic on Extension talk:Widgets

Internal error adding widget to page

4
Summary by Kghbln

Upgrade to version 1.3.0

Henryfunk (talkcontribs)

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.

Kghbln (talkcontribs)

Upgrade to 1.3.0 and let's see how it goes.

Henryfunk (talkcontribs)

Now that was an easy fix! Thank you very much. I simply clicked the link in the "Installing from a .zip file" section and that link hadn't been updated to point to 1.3.0. I have now done so.

Kghbln (talkcontribs)

Cool that it works now. This was indeed a "bad" link. I further changed the links to make them less version dependent.