Composer doesnt save

Permalink
Hi folks,

I made a custom Block and followed this tutorial:
http://www.concrete5.org/documentation/how-tos/editors/setting-up-a...

When writing a new draft everything works finde, I can edit the block but the publish-button does not react.

I dont even get an error.

What could be wrong?

Thanks

SlapY
 
SlapY replied on at Permalink Reply
SlapY
The Preview doesnt work either. It just loads for ages.
SlapY replied on at Permalink Reply
SlapY
I checked the AJAX-Response when clicking on Preview (I get no Request pressing Publish).

Here's the message:

<b>Fatal error</b>: Call to a member function isComposerDraft() on a non-object in <b>C:\......\concrete\core\controllers\single_pages\dashboard\composer\write.php</b> on line <b>32</b><br />

Why is that?
lexbi replied on at Permalink Reply
I just got this myself. Some odd behaviour for sure.

Try edit in composer again from the sitemap, or publish the changes from the pages itself.

Not sure why it did it, though hopefully wont come up again & this will resolve it.
SlapY replied on at Permalink Reply
SlapY
I tried to create/edit a page directly - it works.
And I tried to edit a page from the site-map using edit in composer, which doesnt save too.

I guess this has something todo with my custom blog-entry block?

Any further help? Franz?
MattWaters replied on at Permalink Reply
MattWaters
What version of concrete5 are you using?

It might also help to post your full environment info from Dashboard > System & Settings > Environment > Environment Info.
SlapY replied on at Permalink Reply
SlapY
Okay, here you go:

# concrete5 Version
5.6.2.1

# concrete5 Packages
CSV displayer (1.2), Restore Core Themes (0.9).

# concrete5 Overrides
blocks/artikel_angebot, blocks/artikel_link, blocks/blog_entry, blocks/box, blocks/button_extern, blocks/button_intern, blocks/content_opener, blocks/double_box, blocks/headline, blocks/news_teaser, blocks/ordered_list, blocks/quote, blocks/side_hdl, blocks/side_image, blocks/side_image_text, blocks/side_separator, blocks/side_text, blocks/sub_headline, blocks/teaser, blocks/teaser_data, blocks/text, blocks/unordered_list, themes/MYTHEME

# Server Software
Microsoft-IIS/8.0

# Server API
cgi-fcgi

# PHP Version
5.2.17

# PHP Extensions
bcmath, calendar, cgi-fcgi, com_dotnet, ctype, curl, date, dom, filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mssql, mysql, mysqli, odbc, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Reflection, session, SimpleXML, sockets, SPL, SQLite, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
memory_limit - 128M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 10M
mssql.max_links - Unlimited
mssql.max_persistent - Unlimited
mssql.max_procs - Unlimited
mssql.textlimit - Server default
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
SlapY replied on at Permalink Reply
SlapY
Even with an empty draft the composer is not going to save anything.

The problem raises within the Concrete5_Controller_Dashboard_Composer_Write on line 32 (isComposerDraft() on an null-object) because of this lines:

if ($this->isPost()) {
    if (intval($this->post('entryID')) > 0) {
       $entry = ComposerPage::getByID($this->post('entryID'), 'RECENT');
    }

Where the second if (intval(id) > 0) isn't true - so the entry is not being initialised.

How can it be that C5 reaches this point without giving ANY error? This feature seems a bit unfinished to me. Whats going on here? This is a major blocker for me since a few days.

Any help is appretiated.

The only two ideas I've got left is to
A: just dont use the Composer-Feature but use standard pages, made the standard-way (client's not going to like this!)
B: completely write a Blog-System on top of C5 - and that can't be a real solution.

As said, any help would be heavily appretiated! Thanks a lot!