Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Craft.appendFootHtml is not a function" JavaScript error in CP in console when certain plugins are installed #2966

Closed
angrybrad opened this issue Jun 6, 2018 · 4 comments
Assignees
Labels

Comments

@angrybrad
Copy link
Member

Description

It appears that Craft 3.0.10 has some breaking changes for certain plugins. Confirmed in these, but probably more:

  • CP Element Count
  • Embedded Assets
  • Control Panel CSS
  • Rich Variables

Potentially related to #2965, but not verified.

Steps to reproduce

  1. Install any of these plugins on the latest Craft release.
  2. Go to the entry index page and select a checkbox next to an entry.
  3. Notice the JavaScript error on the console. Set Status, Actions and New Entry buttons are all broken.

capture

Additional info

  • Craft version: 3.0.10.1
  • PHP version: 7.1
  • Database driver & version: n/a
  • Plugins & versions: Latest of any of the above.
@adampatpattison
Copy link

adampatpattison commented Jun 11, 2018

I am getting this error when trying to select an entry within a Matrix field.
The index of entries popup shows and then throws the error meaning the only thing that is selectable is the cancel button to close the popup.

Screencast video of it happening

Additional info

  • Craft version: 3.0.10.3
  • PHP version: 7.1.13
  • Database driver & version: MySQL 5.5.5

@brandonkelly
Copy link
Member

@adampatpattison That screencast requires installing Flash Player, which I’d rather not do. Can you please post it somewhere else, or send it to us directly at support@craftcms.com ?

Also, do you have any plugins installed? I haven't been able to reproduce the error locally.

@nateiler
Copy link
Contributor

nateiler commented Jun 20, 2018

We have a plugin that is doing something similar to entry type switching... an ajax call is fetching fields. Doing some testing on Craft 3.0.12 and I'm still getting Uncaught TypeError: Craft.appendFootHtml is not a function errors when the ajax call response is returned. Anything we may need to do differently now (trying to find changes on entry type switching to mirror)

EDIT: You can disregard above. I found what I was looking for here: 6b446e8#diff-9fb0aaf8b328a3f55c1157c12692e1ee

@brandonkelly
Copy link
Member

@nateiler Yeah any custom Ajax requests that don’t go through Craft.postActionRequest() will need to set those headers, to prevent the Ajax request from re-loading JS files / asset bundles that are already included on the current page.

mattandrews added a commit to biglotteryfund/craft-dev that referenced this issue Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants