{"action":"created","issue":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/748","repository_url":"https://api.github.com/repos/WebDevStudios/CMB2","labels_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/748/labels{/name}","comments_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/748/comments","events_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/748/events","html_url":"https://github.com/WebDevStudios/CMB2/issues/748","id":178954545,"number":748,"title":"CMB2 file_list error on transfer of site from dev to production","user":{"login":"infobuster","id":3328236,"avatar_url":"https://avatars.githubusercontent.com/u/3328236?v=3","gravatar_id":"","url":"https://api.github.com/users/infobuster","html_url":"https://github.com/infobuster","followers_url":"https://api.github.com/users/infobuster/followers","following_url":"https://api.github.com/users/infobuster/following{/other_user}","gists_url":"https://api.github.com/users/infobuster/gists{/gist_id}","starred_url":"https://api.github.com/users/infobuster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infobuster/subscriptions","organizations_url":"https://api.github.com/users/infobuster/orgs","repos_url":"https://api.github.com/users/infobuster/repos","events_url":"https://api.github.com/users/infobuster/events{/privacy}","received_events_url":"https://api.github.com/users/infobuster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-23T19:22:16Z","updated_at":"2016-09-23T19:29:04Z","closed_at":null,"body":"\r\n\r\ncurrently developed a site using the CMB2 plugin and all works well on the development server\r\n\r\nFunctions File\r\n\r\n```\r\n$cmb_demo->add_field( array(\r\n'name' => __('Images', 'cmb2' ),\r\n'desc' => '',\r\n'id'   => $prefix . 'wiki_test_file_list',\r\n'type' => 'file_list',\r\n) );\r\n```\r\n\r\nTemplate File\r\n\r\n```\r\n<?php\r\n        //Start Of Thumbnails\r\n        $img_size = 'page-thumb';\r\n        $files = get_post_meta( get_the_ID(), '_yourprefix_'.$proptype.'_twowiki_test_file_list', 1 );\r\n        echo '<ul class=\"clearing-thumbs small-block-grid-2 \" data-clearing>';\r\n        // Loop through them and output an image\r\n        foreach ( (array) $files as $attachment_id => $attachment_url ) {\r\n        echo ' <li>';\r\n        echo wp_get_attachment_image( $attachment_id, \"full\" );\r\n        echo '</li>';\r\n        }\r\n        echo '</ul>';\r\n        //End Of Thumbnails\r\n        ?>\r\n```\r\n\r\nThis code works fine and allows the user to upload multiple images in the admin and they show up in the front end all ok\r\n\r\nHowever this is my problem... i've moved the site to a production server and the images failed to show up in the front end or the admin thinking it was possible to do with a different php version i duplicated the same dev server moved the files over and still it did not show the thumb nails i've checked whats going on in the database as the data is serialised but urls are all correct, even if i go in and manually add the new images once transfered they work ok just for some reason they wont show up with a simple copy of files and update the database URLs to a different server\r\n\r\nhope someone can help shed some light\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/comments/249281911","html_url":"https://github.com/WebDevStudios/CMB2/issues/748#issuecomment-249281911","issue_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/748","id":249281911,"user":{"login":"tw2113","id":484075,"avatar_url":"https://avatars.githubusercontent.com/u/484075?v=3","gravatar_id":"","url":"https://api.github.com/users/tw2113","html_url":"https://github.com/tw2113","followers_url":"https://api.github.com/users/tw2113/followers","following_url":"https://api.github.com/users/tw2113/following{/other_user}","gists_url":"https://api.github.com/users/tw2113/gists{/gist_id}","starred_url":"https://api.github.com/users/tw2113/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tw2113/subscriptions","organizations_url":"https://api.github.com/users/tw2113/orgs","repos_url":"https://api.github.com/users/tw2113/repos","events_url":"https://api.github.com/users/tw2113/events{/privacy}","received_events_url":"https://api.github.com/users/tw2113/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T19:29:04Z","updated_at":"2016-09-23T19:29:04Z","body":"Are you updating the character count for the serialized data when you update the domain?\r\n\r\n```\r\ns:25:\"http://devsite.domain.com\";\r\n```\r\n\r\nto\r\n\r\n```\r\ns:21:\"http://www.domain.com\";\r\n```\r\n\r\nNotice the difference in numbers at the start. It's a count of the string characters in that portion of the serialized data.\r\n"}}
{"actor":{"display_login":"tw2113"}}