?
avatar SharkyKZ
SharkyKZ
15 Oct 2019

Steps to reproduce the issue

Install/enable a Captcha plugin.
Select it in Global Configuration.
Try to create a new article from frontend.
Inspect captcha field in article form.

Expected result

Captcha field shown.

Actual result

Joomla\CMS\Object\CMSObject text shown in place of Captcha field. The object appears to be an editor button:

object(Joomla\CMS\Object\CMSObject)[2425]
  protected '_errors' => 
    array (size=0)
      empty
  public 'modal' => boolean true
  public 'link' => string 'index.php?option=com_modules&view=modules&layout=modal&tmpl=component&editor=jform[captcha]&105b73bec03a5feff8c60b7b445a9e84=1' (length=146)
  public 'text' => string 'Module' (length=6)
  public 'name' => string 'file-add' (length=8)
  public 'iconSVG' => string '<svg viewBox="0 0 32 32" width="24" height="24"><path d="M28 24v-4h-4v4h-4v4h4v4h4v-4h4v-4zM2 2h18v6h6v10h2v-10l-8-8h-20v32h18v-2h-16z"></path></svg>' (length=149)
  public 'options' => 
    array (size=4)
      'height' => string '300px' (length=5)
      'width' => string '800px' (length=5)
      'bodyHeight' => string '70' (length=2)
      'modalWidth' => string '80' (length=2)
avatar SharkyKZ SharkyKZ - open - 15 Oct 2019
avatar joomla-cms-bot joomla-cms-bot - change - 15 Oct 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Oct 2019
avatar SharkyKZ SharkyKZ - change - 15 Oct 2019
The description was changed
avatar SharkyKZ SharkyKZ - edited - 15 Oct 2019
avatar SharkyKZ
SharkyKZ - comment - 31 Oct 2019

@laoneo this is also coming from #20547 and is also fixed by moving registerListeners() call back to plugin constructor.

avatar brianteeman
brianteeman - comment - 31 Oct 2019

Looks like @wilsonge was right about that PR not being a good idea. This is not the only issue traced back to that

avatar laoneo
laoneo - comment - 31 Oct 2019

The pr itself is ok. Would be good to investigate what exactly is the cause, I mean if the expectation is that the listeners are registered in the constructor, then make a pr to move it back. But for me it sounds like that something in the captcha plugin is not right.

avatar infograf768 infograf768 - change - 6 Feb 2020
Labels Added: ?
avatar infograf768 infograf768 - labeled - 6 Feb 2020
avatar richard67 richard67 - change - 6 Feb 2020
Status New Confirmed
avatar SharkyKZ SharkyKZ - change - 25 Apr 2020
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2020-04-25 12:42:05
Closed_By SharkyKZ
avatar SharkyKZ SharkyKZ - close - 25 Apr 2020
avatar SharkyKZ
SharkyKZ - comment - 25 Apr 2020

Closed as having Pull Request #28785.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26599.

avatar wilsonge wilsonge - change - 18 Dec 2020
Labels Removed: ?
avatar wilsonge wilsonge - unlabeled - 18 Dec 2020

Add a Comment

Login with GitHub to post a comment