Reinstall Content Block (standard)

Permalink
Hi
I have had some problem (in other thread) with tinymce not showing when editing Content in Scrapbook.

Now it happend to another test site. Nothing important on that site so I deleted all the tables in database and reinstalled. And it works ok now.

But what if this was a live site? How would I reinstall that function? I know I can put a fresh concrete>blocks>content folder.
But what tables in the database are responsible for the Content block in scrapbook. And how can it be reset?
Can it be done without reinstalling the whole site and loosing all the live content?

Regards
Olle

 
jordanlev replied on at Permalink Reply
jordanlev
I've never had to do this myself so I'm not 100% sure this would work, but try this:
Go to the dashboard, click on "Sitewide Settings", then check the "Refresh core database tables and blocks" box, the click the "Refresh Databases" button.

If that doesn't work, try this:
Go to the dashboard, click on "Add Functionality", find the block in question in the list ("Content" in your case), click the "Edit" button, then click the "Refresh" button.

That's weird that clearing out the database tables solved your TinyMCE problem -- I've had problems with TinyMCE not appearing too, but it's always been browser-specific (especially Chrome on Windows).

-Jordan
olleka replied on at Permalink Reply
Thanks. But it's not working :(

Strange thing it's working when editing a page but not editing a scrapbook item Or adding a new one.

If I look at the source for the popup (add_block_popup.php) in Safari I can se a warning in the tinyMCE.init function:
content_css : "<br />
<b>Fatal error</b>: Call to a member function getThemeEditorCSS() on a non-object in <b>/Users/olle/Sites/rosie/concrete/blocks/content/editor_config.php</b> on line <b>19</b><br />

And the the rest of page is blank.

If I view it in a page where it works (edit_block_popup.php) i can see the whole source.
content_css : "http://olle.getmyip.com/rosie/themes/gosa_theme/typography.css",
         plugins: "inlinepopups,spellchecker,safari,advlink,table,advhr,xhtmlxtras,emotions,insertdatetime,paste,visualchars,nonbreaking,pagebreak,style",
      editor_selector : "ccm-advanced-editor", ... and so on ...


It does not make me any smarter ;)
But maybe it can help you to figure it out.

Regards
Olle
olleka replied on at Permalink Best Answer Reply
Yes! I solved it somehow. By a little copy an paste from a good site.

The problem seemed to be in the "pages" table in the data base.

Row cID 36.
When I replace that with settings from fresh install of concrete it works!

Regards
Olle