Support » Plugin: Ultimate Post Type Manager » Content not display after upgrade

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter tonyallsopp

    (@tonyallsopp)

    The plugin is now also causing some kind of conflict (java script I guess), that has caused parts of my theme to break – for instance the tabbed box in the middle of the home page. I know it’s this plugin because I’ve disabled all others and gone through re-activating them one by one.

    Yes – while this is an excellent plugin (I use it across a few sites and really like it), this recent update is absolutely untested and WILL break your site.

    The reason for the content error is a content filter that has been added to the “the_content” wordpress method. If you go to the plugin directory/index.php line 591 and comment out that line it will fix your content issue. Also, just comment out line 63 and 64 (this will stop the plugin’s JS from loading – I’ve found it has conflicts as well).

    Now for the other JS error – if you go to the plugin folder/fieldTypes/class-gallery.php and comment out lines 79-86 and 90-94 that will fix your JS error. It will likely break the added Gallery functionality of the plugin, but it will stop breaking your site until the plugin author releases another patch 🙂

    Thread Starter tonyallsopp

    (@tonyallsopp)

    Thank you @sapper15 – that has solved it! Hopefully the dev will release a patch soon.

    I got the the same issue with the content.

    If you go in “settings -> Post type manager->Ultimate post type” you will notice a new a option called “Content detail” by default the value is null (or empty) but should be “[CONTENT]”. To solve your issue without modifying the source code, you just have to change the value of content detail to “[CONTENT]” instead of “”

    Please Enter the default template for the content.Use the litrel [CONTENT] wherever you want to show the default content.Else use the Shortcodes for display of other fields.

    if ( !function_exists( 'the_content_manager' ) ) {function the_content_manager($content)
    {
    	global $post;
    	$post_type = get_post_type($post);
    
    	$xydac_cpts = get_option("xydac_cpt");
    	$con ="";
    	if(is_array($xydac_cpts))
    	{
    	foreach($xydac_cpts as $xydac_cpt)
    		if($xydac_cpt['name']==$post_type)
    		{
    			$con = $xydac_cpt['content_html'];
    			$val = preg_replace("/\[CONTENT]/", $content, $con);
    			return $val;
    		}
    	}
    	return $content;
    
    }}
    
    add_filter ('the_content','the_content_manager');
    Plugin Author XYDAC

    (@deepakseth)

    Hello,
    Sorry guys about the content bug, update to 1.6.3 to fix it,

    Couldn’t find the bugs relating to Javascript, can someone please most me a screenshot of error.

    Regards,
    -Xydac

    There’s possibly a regression bug with this … I upgraded to 1.6.8 and content stopped displaying on the site. I removed each filter until I got to the_content_manager … this was the one that was causing it.

    Additionally, part of my troubleshooting process was disabling and enabling all plugins. Unfortunately, in doing so, the plugin seems to have wiped out all my custom field data which was input using a control other than text input (i.e. radio buttons, checkboxes). I haven’t looked into the DB to see if it is in there and just buried. I’ll follow up.

    This is a fantastic plugin – just because careful with this latest release until we figure this out.

    Something bad definitely happened to the data when I disabled and enabled this plugin. I’m filing a separate bug report because I don’t *think* this happened at upgrade time, but not sure.

    Incidentally, you can add this to all your templates right before the_content gets called until this issue is fixed, but only do this if you are willing to go back and UNDO it after the plugin is fixed.

    remove_filter('the_content', 'the_content_manager');

    Plugin Author XYDAC

    (@deepakseth)

    Then initial issue identified in this post had been already fixed. Please update regarding it.

    Regards,
    -Xydac

    OK – I’ll double check on a vanilla install.

    Plugin Author XYDAC

    (@deepakseth)

    I’ll set this to resolved for now.:)

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Content not display after upgrade’ is closed to new replies.