0 - Call to undefined method JEventDispatcher::getContent() when editing article from front-end

Did you find a bug in Joomla! 3.x but aren't sure? This forum is the place to help figure out if the problem is a bug and how to report it. If you are an experienced Joomla! user and are certain that you have found a bug please use the Bug Tracker to submit your issue.
This forum is for discussion about bugs and to get help with reporting them to the Bug Tracker: https://issues.joomla.org

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Post Reply
stawebnice
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Wed Sep 19, 2012 6:25 am
Location: Czech Republic
Contact:

0 - Call to undefined method JEventDispatcher::getContent() when editing article from front-end

Post by stawebnice » Tue Sep 04, 2018 5:11 pm

Hi,

with Joomla 3.8.11 and 3.8.12 we are not able to access edit form of article after logging in from front-end. Tested on two different websites with different editors (tiny mce and jce even without editor).

I get this error from fatal catcher

Your site caused a blank screen upon a visit of this URL:

https://www.berlitzpraha.cz:443/index.p ... ov&lang=cs

Error message data:
1 Call to undefined method JEventDispatcher::getContent() in file: /data/web/virtuals/60110/virtual/www/domains/berlitzpraha.cz/plugins/editors-xtd/readmore/readmore.php line: 44

when I disable plugin editor read more, the problem is solved (but then we cannot use read more button in articles)

User avatar
pmleconte
Joomla! Explorer
Joomla! Explorer
Posts: 255
Joined: Fri Mar 17, 2017 12:55 pm
Location: France

Re: 0 - Call to undefined method JEventDispatcher::getContent() when editing article from front-end

Post by pmleconte » Tue Sep 04, 2018 6:52 pm

Hi,

That's strange because plugins/editors-xtd/readmore/readmode.php file does not contain any call to JEventDispatcher.

Line 44 contains $this->_subject->getContent($name), which means $this->_subject is a JEventDispatcher class.

Try to update your website again : go to Components, Joomla Update, click on "Check for update" button and you should see "Reinstall Joomla Core Files".

Pascal
If anything can go wrong, it will.
https://www.conseilgouz.com/en

User avatar
pmleconte
Joomla! Explorer
Joomla! Explorer
Posts: 255
Joined: Fri Mar 17, 2017 12:55 pm
Location: France

Re: 0 - Call to undefined method JEventDispatcher::getContent() when editing article from front-end

Post by pmleconte » Tue Sep 04, 2018 7:35 pm

Hi,

Just tried using JCE (2.6.32) in FrontEnd editing, no problem found.

Maybe related to your template ?

Pascal
If anything can go wrong, it will.
https://www.conseilgouz.com/en

nahagel
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Feb 08, 2011 12:27 am

Re: 0 - Call to undefined method JEventDispatcher::getContent() when editing article from front-end

Post by nahagel » Fri Sep 07, 2018 4:03 pm

According to
https://forum.joomla.de/thread/6261-kei ... 3%B6glich/

problem on my site was similar:
module Perfect Everything in Everyway

User avatar
htmgarcia
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Fri Dec 16, 2011 4:33 am

Re: 0 - Call to undefined method JEventDispatcher::getContent() when editing article from front-end

Post by htmgarcia » Fri Oct 05, 2018 6:26 pm

Hi stawebnice,
instead of disabling the read more plugin (is a core extension), please try to disable one third party extension at the time.

This will help to catch the extension that is causing the issue in first place.
stawebnice wrote:
Tue Sep 04, 2018 5:11 pm
Hi,

with Joomla 3.8.11 and 3.8.12 we are not able to access edit form of article after logging in from front-end. Tested on two different websites with different editors (tiny mce and jce even without editor).

I get this error from fatal catcher

Your site caused a blank screen upon a visit of this URL:

https://www.berlitzpraha.cz:443/index.p ... ov&lang=cs

Error message data:
1 Call to undefined method JEventDispatcher::getContent() in file: /data/web/virtuals/60110/virtual/www/domains/berlitzpraha.cz/plugins/editors-xtd/readmore/readmore.php line: 44

when I disable plugin editor read more, the problem is solved (but then we cannot use read more button in articles)

al_ping
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Oct 24, 2018 7:07 am

Re: 0 - Call to undefined method JEventDispatcher::getContent() when editing article from front-end

Post by al_ping » Thu Oct 25, 2018 11:39 am

Hi,

I have also been receiving this error when editing articles using the front end editor.

From my test it appears this occurs when the onDisplay event is triggered by a module, such as the below.

Code: Select all

$recaptcha = $dispatcher->trigger('onDisplay', array(null, 'dynamic_recaptcha_1', 'class=""'));


Post Reply

Return to “Joomla! 3.x Bug Reporting”