Content block editor in scrapbook stopped working ...

Permalink 1 user found helpful
Hi.
I'm trying to edit a content block in a scrapbook. But the tinymce editor just shows up in a comleatly blank window.

Add new block to scrapbook is the same.
All the other seemes to work ok, image, form an so on.

Content editor works inside other blocks in actual page in edit mode.

Very strange ...

I have cleaned the cache several times and reloaded the Content plugin.

Is there anyway I can do t reset the scrapbook Content plugin?

I have other site at the same "localhost" with different database and all is working there.

Regards
Olle

 
andrew replied on at Permalink Reply
andrew
What types of blocks do you have listed on your scrapbook pages? I can't seem to replicate this - tinymce loads just fine.

What kind of browser are you using?
olleka replied on at Permalink Reply 1 Attachment
Hi.
In my"Add block to scrapbook" list I have all the standard ones. All works but not the "content". Just a blank window. (see attachement).

As I said before. Strange thing bacause it is working outside the scrapbook if I add a new block.

I replaced the concrete folder with a fresh one.

I have deleted all the scrapbooks and started over with no luck.

What else can I do?

What tables in the database are responsible for tinymce? If any.

Or what are the easiest way to reinstall witout loosing to much content?

Regards
Olle
andrew replied on at Permalink Reply
andrew
Hmm. If you go to into dashboard > settings > debug, is your site in "production" mode or "development" mode for error display? If it's production mode, can you change it to development mode and go back? That will print out any errors from this process. If there are some could you paste them into a message here?

Are there any folders or files in your blocks/ directory (not concrete/blocks - just the blocks/ directory in your root?)
olleka replied on at Permalink Reply
Hi
Its in development mode. And no errors displays.
No files in the blocks/directory.

olle
Ale replied on at Permalink Reply
A ran into very same problem, I cannot add content blocks to scrapbook. I get the same blank screen what you had on the screenshot. All other blocks work. The site is in dev mode, cache cleared and turned off.

However, I got around the problem by creating the block on a page and copying it to scrapbook, but I definately would like to see the scrapbook working as it should without workarounds.
Ale replied on at Permalink Reply
I checked the AJAX stuff coming from backend when trying to add an content block and it shows the following:

(I snipped away some code from the beginning and cleared the urls from code to clarify things a bit)

<script language="javascript">
tinyMCE.init({
   mode : "textareas",
   width: "100%", 
   height: "380px",    
   inlinepopups_skin : "concreteMCE",
   theme_concrete_buttons2_add : "spellchecker",
   relative_urls : false,
   document_base_url: 'myUrl',
   convert_urls: false,
   content_css : "<br />
<b>Fatal error</b>:  Call to a member function getThemeEditorCSS() on a non-object in <b>/home/my_site_dir_here/concrete/blocks/content/editor_config.php</b> on line <b>19</b><br />
Ale replied on at Permalink Reply
Sorry for posting three posts in a row and making this a monoloque, but I think I found a solution:

1. Open sitemap and check the "show system pages" checkbox.
2. Click on scrapbook page and select "design"
3. See if any theme is selected. If not, click on your theme's icon and save.
4. Everything should work fine in the scrapbook.

The content block is dependent on the theme of the page it is called from. Even in scrapbook, Concrete looks for current theme used on the site. However, it seems that activating a new theme and deleting old one doesn't always update the ptID in the Pages table. My current theme's ptID is 5 and all dashboard pages had ptID 4, which points to the wrong theme. You can also manually update ptID:s from the DB.

I actually noticed the same problem with public pages, not just dashboard. I had created some pages before installing desired theme. When I installed new theme and deleted the old one, the pages created before showed no theme at all, while new pages created afterwards worked just fine. I had to manually check each pages design and set the right theme.

May I assume that the ptID's _should_ change automatically when activating new themes?
olleka replied on at Permalink Reply
Hi
Thanks for posting this. Makes it easier next time if it turns up again.

Regrds
olle
meir replied on at Permalink Reply
Amazing! Thank you very much!
abberdab replied on at Permalink Reply
abberdab
Wow. This had me stumped. Thanks, Ale! This worked for me!
creativesolutions replied on at Permalink Reply
creativesolutions
Ale!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

YOU ROCK! Thanks so much for posting this. We're working on a property management site with 8 different themes on one site and I was getting halfway worried and hacked off. But now thanks to you everything is golden from now on out with multi-themed sites.

Thank you so much...
Ale replied on at Permalink Reply
Thanks. I'm glad I could help.