Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Can you please post the JSON here as code and a link to the original post on your site?

    Thanks.

    Thread Starter blue ant

    (@assafisaac)

    Link to article

    Array
    (
        [headers] => Array
            (
                [date] => Wed, 06 Apr 2016 13:14:58 GMT
                [request-id] => 95ca05fb-8782-49c0-89a9-470a0731d3a4
                [location] => https://u48r14.digitalhub.com/articles/029645e1-37f8-4e9e-8ef4-9654cdbbc491
                [content-type] => application/json;charset=UTF-8
            )
    
        [body] => {"data":{"createdAt":"2016-04-06T13:14:59Z","modifiedAt":"2016-04-06T13:14:59Z","id":"029645e1-37f8-4e9e-8ef4-9654cdbbc491","type":"article","shareUrl":"https://apple.news/AApZF4Tf4Tp6O9JZUzbvEkQ","links":{"channel":"https://u48r14.digitalhub.com/channels/207a7e95-44e0-4917-86ee-24b9cd25fc59","self":"https://u48r14.digitalhub.com/articles/029645e1-37f8-4e9e-8ef4-9654cdbbc491","sections":["https://u48r14.digitalhub.com/sections/ca175098-5449-33ba-8018-41860bd35f74"]},"document":{"version":"0.10","identifier":"post-108144","language":"en","title":"B.C. man records black bear wildly rubbing against a tree in his backyard","documentStyle":{"backgroundColor":"#FFFFFF"},"layout":{"columns":7,"width":1024,"margin":100,"gutter":20},"components":[{"role":"title","text":"B.C. man records black bear wildly rubbing against a tree in his backyard","textStyle":"default-title"},{"role":"container","layout":"headerContainerLayout","style":{"fill":{"type":"image","URL":"bundle://Screen-Shot-2016-04-06-at-8.35.03-AM.png","fillMode":"cover"}},"behavior":{"type":"background_parallax"}},{"role":"byline","text":"by Jenna Wootton | Apr 6, 2016 | 9:14 AM","textStyle":"default-byline","layout":"byline-layout"},{"role":"body","text":"On Monday, a B.C. man captured what looks like a scene from the real-life _Jungle Book_.\n\nAnmore resident Jim Korchinski was finishing his morning coffee when he saw a black bear emerge from the nearby forest and “scamper up the back garden.”\n\nLiving outside the city of Vancouver, Korchinski is used to seeing wildlife, and even bears, cross through his backyard, but he’s never seen anything like this.\n\nJust before the bear made it over to a tree that his kids planted in the backyard, Korchinski pulled out his camera. He recorded the bear leaning against the pine, then recklessly moving back and forth, even going as far as to pull the top branch down.\n\n[youtube id=”S_on8St-ick”]\n\n“It was a very well practiced technique that’s for sure,” [Korchinski told CBC News](http://www.cbc.ca/news/canada/british-columbia/bear-scratch-anmore-1.3520020).\n\n“I just thought the neat part was where he reached behind with his paw and grabbed the top of the branch and kind of pulled it over…there was another spot that needed attention,” he said.","format":"markdown","textStyle":"dropcapBodyStyle","layout":"body-layout"},{"role":"banner_advertisement","bannerType":"standard","layout":"advertisement-layout"},{"role":"body","text":"But even though it looks like the bear is going to extra lengths to scratch an itch, according to experts, that might not be what the bear’s doing at all.\n\nThere have been many theories as to why bears rub against trees in the past: some thought females would rub trees as they came into oestrus, while others believed bears were giving their backs a good scratch to get rid of parasites or pick up sap that would act as insect repellent.\n\nBut after spending nearly a decade [studying this behaviour](https://www.sciencedaily.com/releases/2007/09/070909221303.htm), ecologist Dr. Owen Nevin determined that bears rub against trees to mark their turf—at least when it comes to adult males. He believes that they’re leaving their scent behind as a way of communicating with other males that they’re looking for breeding females.\n\nWhatever the bear is doing, it sure is entertaining, and Korchinski is happy it went for something other than his hot tub cover.\n\n“We’re hopeful that he’s finally found something that makes him happy, so that he can stop chewing our hot tub cover to pieces!” he posted in the description alongside [his Youtube video](https://www.youtube.com/watch?v=S_on8St-ick).\n\n\n\n\n[brightcove title=”More From Cottage Life:” id=”4797370058001″ player_id=”4744962545001″ player_key=”AQ~~,AAACAakpSPE~,T6feCa2L1MJe8OiJ62jss-7nDKbnxs7h”]","format":"markdown","textStyle":"default-body","layout":"body-layout"}],"componentTextStyles":{"dropcapBodyStyle":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"lineHeight":24,"textColor":"#000000","linkStyle":{"textColor":"#428bca"},"dropCapStyle":{"numberOfLines":2,"numberOfCharacters":1,"fontName":"Georgia-Bold","textColor":"#000000"}},"default-body":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"lineHeight":24,"textColor":"#000000","linkStyle":{"textColor":"#428bca"}},"default-title":{"fontName":"AvenirNext-Bold","fontSize":48,"lineHeight":52,"textColor":"#000000","textAlignment":"left"},"default-byline":{"textAlignment":"left","fontName":"AvenirNext-Medium","fontSize":17,"textColor":"#53585f"}},"componentLayouts":{"body-layout":{"columnStart":0,"columnSpan":5,"margin":{"top":25,"bottom":25}},"advertisement-layout":{"columnStart":0,"columnSpan":7,"margin":{"top":25,"bottom":25}},"headerContainerLayout":{"columnStart":0,"columnSpan":7,"ignoreDocumentMargin":true,"minimumHeight":"50vh","margin":{"top":0,"bottom":25}},"byline-layout":{"columnStart":0,"columnSpan":7,"margin":{"top":10,"bottom":10}}},"metadata":{"excerpt":"On Monday, a B.C. man captured what looks like a scene from the real-life Jungle Book.\r\nAnmore resident Jim Korchinski was finishing his morning coffee when he saw a black bear emerge from the nearby forest and “scamper up the back garden.”\r\nLiving outside the city of Vancouver, Korchinski is used to seeing wildlife, and even bears, cross through his backyard, but he’s never seen anything like this.\r\nJust before the bear made it over to a tree that his kids planted in the backyard, Korchinski pulled out his camera. He recorded the bear leaning against the pine, then recklessly moving back and forth, even going as far as to pull the top branch down.\r\n[youtube id=\"S_on8St-ick\"]\r\n“It was a very well practiced technique that’s for sure,” Korchinski told CBC News.\r\n“I just thought the neat part was where he reached behind with his paw and grabbed the top of the branch and kind of pulled it over…there was another spot that needed attention,” he said.\r\nBut even though it looks like the bear is going to extra lengths to scratch an itch, according to experts, that might not be what the bear’s doing at all.\r\nThere have been many theories as to why bears rub against trees in the past: some thought females would rub trees as they came into oestrus, while others believed bears were giving their backs a good scratch to get rid of parasites or pick up sap that would act as insect repellent.\r\nBut after spending nearly a decade studying this behaviour, ecologist Dr. Owen Nevin determined that bears rub against trees to mark their turf—at least when it comes to adult males. He believes that they're leaving their scent behind as a way of communicating with other males that they’re looking for breeding females.\r\nWhatever the bear is doing, it sure is entertaining, and Korchinski is happy it went for something other than his hot tub cover.\r\n“We’re hopeful that he’s finally found something that makes him happy, so that he can stop chewing our hot tub cover to pieces!” he posted in the description alongside his Youtube video.\r\n\r\n[brightcove title=\"More From Cottage Life:\" id=\"4797370058001\" player_id=\"4744962545001\" player_key=\"AQ~~,AAACAakpSPE~,T6feCa2L1MJe8OiJ62jss-7nDKbnxs7h\"]\r\n","thumbnailURL":"bundle://Screen-Shot-2016-04-06-at-8.35.03-AM.png","canonicalURL":"http://cottagelife.com/news/b-c-man-records-black-bear-wildly-rubbing-against-a-tree-in-his-backyard","generatorIdentifier":"publish-to-apple-news","generatorName":"Publish to Apple News","generatorVersion":"1.0.5"}},"revision":"AAAAAAAAAAD//////////w==","state":"PROCESSING","accessoryText":null,"title":"B.C. man records black bear wildly rubbing against a tree in his backyard","isCandidateToBeFeatured":false,"isSponsored":false,"isPreview":true,"isDevelopingStory":false}}
        [response] => Array
            (
                [code] => 201
                [message] => Created
            )
    
        [cookies] => Array
            (
            )
    
        [filename] =>
    )
    Thread Starter blue ant

    (@assafisaac)

    I had to update the plug in to get it to work

    jholmes1

    (@jholmes1ashlandedu)

    I have the latest plugin and I get the same error from apple.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Can you post one of the JSON files here that you’re having trouble with? We can take a look.

    jholmes1

    (@jholmes1ashlandedu)

    Sure, here is is one of them.

    pastebin: http://pastebin.com/mPPum5Uu

    Let me know what you think. It’s all gibberish to me.

    Thanks,
    Justin

    jholmes1

    (@jholmes1ashlandedu)

    Ok for some reason I can’t post it here….

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    You can’t upload a file, but you can paste the contents as code.

    jholmes1

    (@jholmes1ashlandedu)

    just tried posting a link to a txt file which I dumped the code into…. still not working. Something strange is going on here…

    jholmes1

    (@jholmes1ashlandedu)

    I cant past code, links, or anything but plain text. Not even a link in plain text. I give up.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    A JSON file is just text. All you need to do is just open it with a text editor and paste the contents here.

    You can select all the text after you’ve pasted and click the ‘code’ button above to format it more nicely.

    jholmes1

    (@jholmes1ashlandedu)

    Nah…. none of that works. Something is wrong with this site. I’ve tried in 3 browsers now. It won’t let me post anything that looks even remotely like code or links. I’ve never experienced ever. I’m seriously going to record a video of this cause it’s all kinds of messed up.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    OK, if you have an issue with this site, there are forums for that as well as the Making WordPress slack. Unfortunately I can’t help you with that.

    You can also post your issue to github, if that’s easier for you: https://github.com/alleyinteractive/apple-news/issues

    jholmes1

    (@jholmes1ashlandedu)

    OK just submitted it on your github issues forum. Thanks for your patients. Once again I have no idea WTH is wrong with this site that it won’t let me send code or links. I’ve never seen that before on any forum. Seems odd that WP would be the one to screw that up…..

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Great, we’ll follow up through github and leave this thread closed.

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Articles contain exposed unicode, HTML, or XML’ is closed to new replies.