Hi I received the following error as soon as I tried to change the general settings on my content types
(the setting I wanted to change was the "Publishing Options / promote to front page" )

Warning: unserialize() expects parameter 1 to be string, array given in content_type_extras_get_default() (line 325 of ....../sites/all/modules/content_type_extras/content_type_extras.module).

in order to find out the exact conflict I tried this on 2 fresh installs using both the div and version 7.x-1.4
the errors appear using both versions

Comments

jesss’s picture

I'm seeing this error as well. Also, my default settings are not being saved.

bocaj’s picture

Title: Errors » unserialize() throwing error and is not needed

I just committed a simple fix that should resolve this issue. Currently in dev release. Please test out the dev release and let me know if this issue is resolved.

@jesss: I am not having any issues saving default settings. Can you please try the dev release as well and let me know if you are still having issues saving your default settings?

stevieb’s picture

Hi bocaj

changing "Publishing Options / promote to front page" on both a fresh install and an active site now gives the following error

Notice: Undefined index: content_type_extras_remove_body in content_type_extras_node_type_form_submit() (line 248 of .../sites/all/modules/content_type_extras/includes/content_type_extras.node_type_form.inc).

bocaj’s picture

Status: Active » Fixed

@stevieb: Thanks for reporting these issues and helping me get this all cleaned up. I just posted a new commit to the dev release that resolves your issue in #3 above. Please let me know if you run into anything else.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.