-
- 322 Posts
I upgraded from 2.5.0 to 2.5.1, and was getting just a blank white screen when I click on a resource to edit it. Also, the home page had a folder icon on it instead of just a page icon (it's not a container and has no children). I reverted to 2.5.0, and everything is back to normal.
-
- 24,544 Posts
I've seen similar weirdness from a leftover browser cookie after an upgrade.
-
- 24,544 Posts
This is a bandaid solution (if it even works -- the odds are that some other use of $this->resource will still throw an error), but you might try changing this line:
$resourceId = !empty($this->resource) ? $this->resource->get('id') : (!empty($this->scriptProperties['id']) ? $this->scriptProperties['id'] : 0);
to this:
$resourceId = ((!empty($this->resource)) && ($this->resource instanceof modResource)) ? $this->resource->get('id') : (!empty($this->scriptProperties['id']) ? $this->scriptProperties['id'] : 0);
I think what's happening is that $this->resource is not empty, but is also not a modResource object.
-
- 13 Posts
We found that TinyMCE was the culprit, switched over to "TinyMCE Rich Text Editor" extra and it fixed the problem.
Front End Designer + Developer for Eternity
TinyMCE is the source of the issue for <2.5.0 to 2.5.1 blank resources or silent 500s. There is a one line fix to continue to use TinyMCE which is to remove line 231 from core/components/tinymce/tinymce.class.php
$this->config['resource'] = $this->config['resource']->toArray();
TinyMCE has not been actively maintained since 2012. We'll see if someone can push the patch and we can re-release it and put it back up, however, we do need to ensure people are choosing to use maintained Extras for upcoming projects. We've temporarily blocked access to download it.
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
-
- 24,544 Posts
Jay,
donshakespeare's
TinymceWrapper loads the current version of TinyMCE from CDN. It is very well maintained, is updated often, and has an active
support thread here.