heavenbr / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
0 stars 0 forks source link

Plugin unexpectedly deleted all created content types and custom fields #403

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
My site is multilangual. I created a new post type, gаve it a name in english, 
but Menu name- in other language. When I activated content type, a message 
appear: "Invalid post type" and button "Back". When I hit "Back" button all my 
created custom post types and custom fields were deleted! 

*SYSTEM INFO* 
------------------------ 
Plugin Version: 0.9.6-pl
WordPress Version: 3.4.1
PHP Version: 5.3.5
MySQL Version: 5.5.8-log
Server OS: WINNT
------------------------ 
ACTIVE PLUGINS: 
 * Absolute Links Plugin v.1.1.1 [http://sitepress.org/wordpress-cms-plugins/absolute-links-plugin/]
 * Admin Post Navigation v.1.7.1 [http://coffee2code.com/wp-plugins/admin-post-navigation/]
 * Adminimize v.1.7.27 [http://bueltge.de/wordpress-admin-theme-adminimize/674/]
 * Contact Form 7 Honeypot v.1.0.0 [http://www.daobydesign.com/free-plugins/honeypot-module-for-contact-form-7-wordpress-plugin]
 * Contact Form 7 Modules: Hidden Fields v.1.2.1 [http://www.seodenver.com/contact-form-7-hidden-fields/]
 * Contact Form 7 v.3.2.1 [http://contactform7.com/]
 * NextGEN Custom Fields v.1.2.2 []
 * NextGEN Gallery v.1.9.5 [http://www.nextgen-gallery.com/]
 * oQey Gallery v.0.5.3 []
 * Post Thumbnail Editor v.1.0.5 [http://wordpress.org/extend/plugins/post-thumbnail-editor/]
 * Q Cleanup v.1.0 [http://www.qdesignstudio.net/q-cleanup]
 * qTranslate slug v.1.1 [http://not-only-code.github.com/qtranslate-slug/]
 * qTranslate v.2.5.31 [http://www.qianqin.de/qtranslate/]
 * Redirector v.2.0 []
 * Regenerate Thumbnails v.2.2.3 [http://www.viper007bond.com/wordpress-plugins/regenerate-thumbnails/]
 * Shortcodes Pro v.1.1.1.3 [http://www.mattvarone.com/featured-content/shortcodes-pro/]
 * Simple Image Size v.2.3.1 [http://redmine.beapi.fr/projects/show/simple-image-sizes]
 * Hotlink Protection v.2.0.0 [http://thisismyurl.com/downloads/wordpress/plugins/hotlink-protection/]
 * WP AutoSuggest v.0.24 [http://www.ekhoury.com/wp-autosuggest/]
 * WP Calculator v.1.4.1 []
 * WP-Filebase v.0.2.9.18 [http://fabi.me/wordpress-plugins/wp-filebase-file-download-manager/]
 * WP Maintenance Mode v.1.7.1 [http://bueltge.de/wp-wartungsmodus-plugin/101/]
 * WP-Table Reloaded v.1.9.3 [http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/]
------------------------ 

Original issue reported on code.google.com by maria.se...@gmail.com on 6 Aug 2012 at 12:00

GoogleCodeExporter commented 8 years ago
I can't reproduce this.  What were the exact names you used?

Original comment by ever...@fireproofsocks.com on 6 Aug 2012 at 3:03

GoogleCodeExporter commented 8 years ago
Post type: order
Menu name: "Онлайн заявка" in bulgarian language.

Original comment by maria.se...@gmail.com on 8 Aug 2012 at 5:03

GoogleCodeExporter commented 8 years ago
Thanks for the details.  "order" might be a reserved word since it is also a 
database command.  I found some other words that WordPress does not play nicely 
with.   E.g. trying to name your post-type "preview" caused weird problems, so 
I had to add some code to prevent restricted words.

Original comment by ever...@fireproofsocks.com on 8 Aug 2012 at 5:38

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi,

Just had the same issue... I spent a lot of time thinking about the structure 
of the website, built all the content types, fields. Then today I had the 
excellent idea to create a content type named "actualite". When submitting I 
had "Invalid content type" and a Back button. 
Clicked Back, every configuration informations (fields + content types) was 
erased.

ARE YOU SERIOUS ?

Original comment by thomaset...@gmail.com on 6 Sep 2012 at 4:53

GoogleCodeExporter commented 8 years ago
Sorry for the trouble.  I would kindly request you to keep sarcasm out of the 
bug-tracker.  My initial attempts to reproduce the problem have been 
unsuccessful, but I promise that once I can find the bug, I will patch it and 
update my unit tests so the issue does not occur again.  If you need an 
immediate fix, please contact me privately and I can send you a quote.

Original comment by ever...@fireproofsocks.com on 6 Sep 2012 at 4:58

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
After some few investigations. The problem isn't because of the "post_type". 
This is because I filled "Actualité" in the menu name and apparently utf8 is 
not supported when you serialize the array before it is saved in db.

Original comment by thomaset...@gmail.com on 6 Sep 2012 at 6:45

GoogleCodeExporter commented 8 years ago
Thanks for sharing the additional info.  It's actually WP that serializes data: 
that's how it stores options, but you're right: that can cause trouble with UTF 
characters (e.g. see Issue #88 for related discussion).  Perhaps the 
CCTM::charset_decode_utf_8() function can help with the post-type name as it 
did in issue #88.

Original comment by ever...@fireproofsocks.com on 6 Sep 2012 at 6:49

GoogleCodeExporter commented 8 years ago
I worked to reproduce this on my dev server, and I cannot: I'm able to name my 
post-types using utf8 characters in both the post-type name and in the Menu 
name.  The post-type name replaces utf8 characters with "_", and the menu name 
saves normally.  See screenshot: 
https://img.skitch.com/20120926-kjq4ei4x2c9q941712defjaajj.jpg

This might have something to do with the environment.  If someone can provide 
me access to a server where this issue is occurring I can reopen the ticket, 
but right now I can't fix it because I can't reproduce it.

Original comment by ever...@fireproofsocks.com on 26 Sep 2012 at 8:03