Hi there
I use the GFS code at https://www.giveawayoftheday.com/gfs/ to embed GOTD Giveaways on 2 separate Wordpress sites. I use the PHP code version and single.php on the respective pages.
In the last 2 or so days, certainly not much longer, this seems to have simultaneously ceased with nothing getting loaded, although certainly nothing has been changed this end. I know this because I literally check out this page everyday. Originally the cached version of the GOTD for 22nd Feb, was being shown, I think proving the last day importing was done. Currently, ... nothing printed.
On another page, I also use RSS, separate means to import https://www.giveawayoftheday.com/feed/, but that is there and updating.
Just to be sure the code is the same, I downloaded a fresh sample of scripts from https://www.giveawayoftheday.com/gfs/sample-xml.zip and replaced what I had.
One thing I need to add is I have been using GFS code on Drupal & later Wordpress for over 5 years and at previous hosts it was not an issue embedding the GOTD content with a simple php include function.
Unfortunately, I was forced to change hosts a year ago and the current host for some dubious reason does not allow the php include function, supposedly for security reasons. I was forced to use the JavaScript version for a while, though this had some limitations and issues discussed then here: https://www.giveawayoftheday.com/forums/topic/467148.
I had actually given up but after a subsequent, renewed search, I learnt from Wordpress forums one could go around the php include function blockade with some code ...
<?
$request = wp_remote_get( 'http://www.blablabla.com/giveaway/single.php' );
if ( ! is_wp_error( $request ) ) {
$response = wp_remote_retrieve_body( $request );
echo $response;
}?>
... and have used it successfully for the last 7 months until this came up the other day.
So my question is why could the GFS code suddenly not be working the last 2 or so days, with completely no text printed? With the javascript version, it would on some days not print but it would come back and for some reason, a portion of text with the terms of use would not be printed. The PHP version never had such failures, which is why I prefer it and wonder whether this is temporary.
Thank you in advance