Inaccessible function via __call(): getContentObject

50 views
Skip to first unread message

l8gr...@gmail.com

unread,
Feb 8, 2017, 5:37:17 PM2/8/17
to MediaWiki Widgets
Hi,
I'm trying to install and test the Widgets extension with the following versions: 

Product Version
MediaWiki 1.26.2
PHP 5.3.3 (apache2handler)
MySQL 5.1.73


This is on a RHEL 6.6 system, and it's running as a Virtual site in it's own directory.  I've followed the instructions, but every time I try to use a Widget, like the AssocTest one in the example, it bombs out with and error like the subject line says.  I see some vague mentions that this Widget isn't compatible with the VisualEditor plugin, which we have version 0.1.0 installed on here.  The exact error is:

Fatal error: Inaccessible function via __call(): getContentObject in /var/www/mediawiki/includes/page/Article.php on line 2051

Does anyone have a pointer to what I need to do to A) debug this better and B) fix the issue?  Or do I just have a maze of incompatible Extensions installed which is causing this issue?

I have checked to make the compiled_templates/ directory is world writeable, but it's fairly obvious that we're not even making it that far. 

Thanks,
John

Karsten Hoffmeyer

unread,
Feb 10, 2017, 3:57:53 AM2/10/17
to MediaWiki Widgets
I believe we are having this issue: https://phabricator.wikimedia.org/T155088

njn...@columbia.edu

unread,
Mar 29, 2017, 12:25:12 PM3/29/17
to MediaWiki Widgets
I'm also experiencing this issue, trying to use the Iframe widget with this setup:

MediaWiki 1.23.15
PHP 5.5.9-1ubuntu4.21 (apache2handler)
MySQL 5.5.54-0ubuntu0.14.04.1

My error is:
PHP Fatal error:  Inaccessible function via __call(): getContentObject in .../includes/Article.php on line 2026

Nik Nyby

unread,
Mar 29, 2017, 12:50:22 PM3/29/17
to mediawik...@googlegroups.com
I did what that thread on phabricator recommended:

git checkout tags/1.2.1

Checked out the 1.2.1 tag of the Widgets repository and now it works -
error was caused because I was using the latest Widgets code which
requires MediaWiki 1.28 or something.


On 03/29/2017 10:53 AM, njn...@columbia.edu wrote:
> I'm also experiencing this issue, trying to use the Iframe widget with
> this setup:
>
> MediaWiki1.23.15
> PHP5.5.9-1ubuntu4.21 (apache2handler)
> MySQL5.5.54-0ubuntu0.14.04.1
>
> My error is:
> PHP Fatal error: Inaccessible function via __call(): getContentObject
> in .../includes/Article.php on line 2026
>
>
> On Wednesday, February 8, 2017 at 5:37:17 PM UTC-5, l8gr...@gmail.com wrote:
>
> Hi,
> I'm trying to install and test the Widgets extension with the
> following versions:
>
> Product Version
> MediaWiki <https://www.mediawiki.org/> 1.26.2
> PHP <https://php.net/> 5.3.3 (apache2handler)
> MySQL <https://www.mysql.com/> 5.1.73
>
>
>
> This is on a RHEL 6.6 system, and it's running as a Virtual site in
> it's own directory. I've followed the instructions, but every time
> I try to use a Widget, like the AssocTest one in the example, it
> bombs out with and error like the subject line says. I see some
> vague mentions that this Widget isn't compatible with the
> VisualEditor plugin, which we have version 0.1.0 installed on here.
> The exact error is:
>
> Fatal error: Inaccessible function via __call(): getContentObject in
> /var/www/mediawiki/includes/page/Article.php on line 2051
>
> Does anyone have a pointer to what I need to do to A) debug this
> better and B) fix the issue? Or do I just have a maze of
> incompatible Extensions installed which is causing this issue?
>
> I have checked to make the compiled_templates/ directory is world
> writeable, but it's fairly obvious that we're not even making it
> that far.
>
> Thanks,
> John
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "MediaWiki Widgets" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mediawiki-widgets/tmQqmBTSV0k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> mediawiki-widg...@googlegroups.com
> <mailto:mediawiki-widg...@googlegroups.com>.
> To post to this group, send email to mediawik...@googlegroups.com
> <mailto:mediawik...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/mediawiki-widgets.
> For more options, visit https://groups.google.com/d/optout.


--
Nik Nyby
Programmer
Columbia University's Center for Teaching and Learning
nn...@columbia.edu | (212) 854-7076

Reply all
Reply to author
Forward
0 new messages