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

ShortCodeParser causes 500 error with minimal content #6494

Closed
phptek opened this issue Jan 12, 2017 · 3 comments
Closed

ShortCodeParser causes 500 error with minimal content #6494

phptek opened this issue Jan 12, 2017 · 3 comments

Comments

@phptek
Copy link

phptek commented Jan 12, 2017

PHP 5.6 / Ubuntu 16.04 / CMS+Framework 4.0.0-alpha /

  • [OK] Open a default page in the CMS, e.g. "contact-us"
  • [OK] Insert an image via TinyMCE
  • [OK] Save as Draft
  • [OK] Select the image, and chnage its position to be "Centered, on its own"
  • [FAIL] Save as Draft

..the following error is shown in console.

Fatal error: Call to a member function appendChild() on null in /path/to/framework/src/View/Parsers/ShortcodeParser.php on line 187
ERROR [Alert]: Call to a member function appendChild() on null
phptek pushed a commit to phptek/silverstripe-framework that referenced this issue Jan 12, 2017
@tractorcow
Copy link
Contributor

Hello, which alpha are you using? alpha1? I think we fixed this in a later patch. Can you please confirm that master has the same issue?

@phptek
Copy link
Author

phptek commented Jan 19, 2017

OK, using dev-master this specific error is gone, to be replaced with the CMS emitting the following error via the top-right "Growl" message box:

TypeError: 1 t is undefined

...and from the console no error, just valid JSON with a "data" object, and child "readFiles".

@tractorcow
Copy link
Contributor

Closing in favour of #5535.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants