Plugin Problem on Linux
-
I am using an Amazon linux server, which is becoming more popular. It’s called the EC2 AMI. It works as an instance.. which is probably a virtual box. There a few problems when running this server with the Apple News plugin. It’s the timezone.
1.) WordPress setting shows timezone: New York (Eastern).
2.) Server date and timezone set at: New York (Eastern).When I POST an article, the timestamp in the JSON for Apple News still shows a time that’s 4 hours ahead.
Then I learned that there’s a “hardware clock” on the linux box.. and that’s set at UTC. Well, I can’t seem to change this setting because I’m using a virtual/instance server.
Does Apple News compile its time using the hardware clock or the server date/time? When I show the time in PHP, it shows the proper server/Wordpress time.
-
Got it working! Well, I see the articles now on iCloud.com, but the plugin says the articles are not published.. with a status of “N/A”. I guess the plugin isn’t syncing with Apple News?
Ok, problem happening again on NEW articles. The strange thing is.. when I get the message:
There has been an error with the API: WRONG_SIGNATURE
It happens on articles in the Apple News list that don’t have the SECTION box. Older articles have the SECTION for me to click on (Main).
I got two sites… one working with Apple News fine.. but the other has problems.
1.) Both have time set to Eastern in WordPress
2.) Both have UTC set on the serverOne site publishes to Apple News fine. The other produces a “FAILED_PROCESSING” error. BUT the articles are in iCloud.
Any clue?
Here’s the JSON of the FAILED PROCESSING one.
{"version":"1.1","identifier":"post-1376","language":"en","title":"Black Moon Friday Night Event Welcomes Halloween","documentStyle":{"backgroundColor":"#FAFAFA"},"layout":{"columns":7,"width":1024,"margin":100,"gutter":20},"components":[{"role":"header","layout":"headerPhotoLayout","components":[{"role":"photo","layout":"headerPhotoLayout","URL":"bundle:\/\/black-moon-friday-night.jpg"}],"behavior":{"type":"parallax","factor":0.8}},{"role":"container","layout":{"columnStart":0,"columnSpan":7,"ignoreDocumentMargin":true},"style":{"backgroundColor":"#FAFAFA"},"components":[{"role":"title","text":"Black Moon Friday Night Event Welcomes Halloween","textStyle":"default-title","layout":"title-layout"},{"role":"byline","text":"by Scott Lee | Sep 30, 2016 | 10:45 PM","textStyle":"default-byline","layout":"byline-layout"},{"role":"body","text":"A Black Moon will rise Friday night, bringing ghostly superstitions before Halloween. This event coincides with the second new moon of the month.\n\nThe \u2018black moon\u2019 is a new addition to the other moon types, including blood moons, blue moons, and supermoons. The new event occurs once every 19 years when February skips a full moon.\n\nThe most common definition is the second new moon in a calendar month, often falling in September, becoming entirely invisible at night in the Western Hemisphere.\n\nA full moon typically occurs when it\u2019s illuminated by the Sun during an orbital position of the Earth at a certain time of the month.\n\nBut a new moon happens when its side is lit up by the Sun facing away from the Earth.\n\nA blue moon is when there\u2019s a second full moon in a single month, but a black moon is the flip side of a blue moon. \n\nThere\u2019s usually one full moon and one new moon during a calendar month, but sometimes a lunar cycle doesn\u2019t sync, and that\u2019s when you get several or none during a specified month.\n\nWatch for the upcoming black moon tonight at 8:11 p.m. Eastern Time. It will cover North and South America.","format":"markdown","textStyle":"dropcapBodyStyle","layout":"body-layout-last"}]}],"componentTextStyles":{"dropcapBodyStyle":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"lineHeight":24,"textColor":"#4f4f4f","linkStyle":{"textColor":"#428BCA"},"paragraphSpacingBefore":18,"paragraphSpacingAfter":18,"dropCapStyle":{"numberOfLines":4,"numberOfCharacters":1,"padding":5,"fontName":"AvenirNext-Bold","textColor":"#4f4f4f"}},"default-body":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"lineHeight":24,"textColor":"#4f4f4f","linkStyle":{"textColor":"#428BCA"},"paragraphSpacingBefore":18,"paragraphSpacingAfter":18},"default-title":{"fontName":"AvenirNext-Bold","fontSize":48,"lineHeight":52,"textColor":"#333333","textAlignment":"left"},"default-byline":{"textAlignment":"left","fontName":"AvenirNext-Medium","fontSize":13,"textColor":"#7c7c7c"}},"componentLayouts":{"body-layout":{"columnStart":0,"columnSpan":5,"margin":{"top":12,"bottom":12}},"body-layout-last":{"columnStart":0,"columnSpan":5,"margin":{"top":12,"bottom":30}},"headerPhotoLayout":{"columnStart":0,"columnSpan":7,"ignoreDocumentMargin":true},"headerBelowTextPhotoLayout":{"columnStart":0,"columnSpan":7,"ignoreDocumentMargin":true,"margin":{"top":30,"bottom":0}},"title-layout":{"margin":{"top":30,"bottom":0}},"byline-layout":{"columnStart":0,"columnSpan":7,"margin":{"top":10,"bottom":10}}},"metadata":{"excerpt":"A Black Moon will rise Friday night, bringing ghostly superstitions before Halloween. This event coincides with the second new moon of the month. The 'black moon' is a new addition to the other moon types, including blood moons, blue moons, and supermoons. The new event occurs once every 19 years when February skips a full...","thumbnailURL":"bundle:\/\/black-moon-friday-night.jpg","dateCreated":"2016-10-01T02:45:07+00:00","dateModified":"2016-10-02T13:25:39+00:00","datePublished":"2016-10-01T02:45:07+00:00","canonicalURL":"https:\/\/www.sebastiandaily.com\/news\/black-moon-friday-night-event-welcomes-halloween-1376\/","generatorIdentifier":"publish-to-apple-news","generatorName":"Publish to Apple News","generatorVersion":"1.1.8"},"advertisingSettings":{"frequency":1,"layout":{"margin":{"top":15,"bottom":15}}}}Changed timezone to Eastern on server to match WordPress… still getting FAILED_PROCESSING .. but NOT on new articles.
Happening on new articles now. I’m beginning to think that it’s not something with the date. I already refreshed the API Key. I don’t know why SOME articles work, but others don’t. It’s gotta be something in the content that is producing the WRONG_SIGNATURE
Other people have also reported this issue over the weekend. I’ve reached out to Apple to see if anything has changed on their end.
Ok, at least I’m not going crazy. LOL
Can you confirm:
1) Your WordPress version
2) Which theme are you using?
3) Which Apple News plugin version are you using?
4) The exact date/time this started occurring
5) Which plugins do you have installed and active?Thanks.
NOTE: I tried disabling all plugins and running a stock/default WordPress theme and still have the problem. I get “There has been an error with the API: WRONG_SIGNATURE” whenever publishing. Server time is EDT, WordPress time is EDT. I was able to get 1 article up LIVE .. all other articles sit idled in iCloud but not LIVE. ALSO – It’s a NEW CHANNEL (Sebastian Daily).
1) Version 4.6.1
2) MH Magazine WordPress Theme by MH Themes
3) Version 1.1.8
4) Started on 10/1/16
5) AMP, Contact Form 7, Custom User Profile Photo, Facebook Login, Glue for Yoast SEO & AMP, Google AdSense, Instant Articles for WP, Publish to Apple News, Video SEO for WordPress SEO by Yoast, WordPress SEO News by Yoast, WP Hide & Security Enhancer, Yoast SEO PremiumCan you correlate the start of the issue to any new plugins installed or upgrades to existing plugins or WordPress core? Just trying to narrow it down.
I haven’t added any new plugins since installing Apple News. I did deactivate them, moved the theme to default WordPress.. cleaned up all “apple_news” references in database and then reinstalled plugin. Same problem. I did open a ticket with Apple News asking them if there are any issues on their end. It’s a brand new Channel.. which was approved on 10/1. I’ll let you know what they say. It’s just weird that I can only get one article in there and then the rest prompt an error.
I heard back from Apple News tech support and they said all is fine on their end. They are blaming it on the plugin.
Well, we haven’t made any changes to the plugin either in the timeframe mentioned. Also, I prefer not to use the word “blame”. This is open source software, offered free of charge, and we’re all collaborating here for a solution.
This will require further investigation. We will look into it, but we can’t guarantee a timeframe for resolution.
The word Blame was a poor choice in words on my part. The WRONG_SIGNATURE error.. I wish there was more debugging I can do. Nothing shows up in PHP errors, or the WordPress debug.
The topic ‘Plugin Problem on Linux’ is closed to new replies.