Satellite 4

Hi,

Our facebook events importer unfortunately stopped working after updating our website last month.
It still imports our events and it doesn't give an error when importing. But it's not importing our begin date, end date and cover anymore. 

It was made with the tutorial on this website : https://helpcenter.esn.org/tutorial/facebook-events-satellite

It's the default script from the tutorial and I also checked the mapping already and cover,start_time and end_time are all mentioned there.

The link used did not change either from when it was working and it doesn't seem to have issues either : https://graph.facebook.com/esn.uniwien/events/?fields=id,name,descriptio... (I removed the access token)

So I'm not sure what exactly is going wrong.

I realise this is not the best description ever, but any extra info you need I'll be more than happy to provide!

Best regards,

Jens

 

Answers

Hi,

Sorry for the delayed reply.

I checked it with my WPA (since I myself don't have access to the server) and when he updated the server he checked for php versioning issues. So That shouldn't be what's causing it.

I will continue my search though and if you guys have any other suggestions please let me know!

I've checked your site recently and every settings regarding Events and the Facebook Event importer seems to be okay. (Although on the importer in Tamper you've set this rule: Facebook Date string to Unix timestamp which shouldn't be necessary).

However, I realized that your website uses PHP 7.1. Satellite4 was designed while the current version of Satellite was PHP 5.6. Can you try setting your server to use that PHP version? PHP incompatibility issues might easily cause this. I've seen that if you try to edit an event, you get a lot of warnings. That is also caused by incompatible PHP versions.

Hi guys,

Thanks for all the answers!

I'll look into it hopefully this evening if this can solve it.

However all of these are focused on the cover it seems. 
Do you have any solutions for the Date issues?

Best regards,

Jens

Step-by-step workaround (that worked for me):

  1. In your server (e.g. via FTP) go to profiles/satellite/modules/contrib/feeds/plugins/ folder.
  2. Find file FeedsParser.inc and make a backup copy of it, say, FeedsParser.inc.bak - you will need it if something goes wrong.
  3. Edit the FeedsParser.inc file: change the line (it is approximately line number 467)
    if (drupal_realpath($this->getSanitizedUri())) {
    into
    if (!file_create_url($this->getSanitizedUri())) {
  4. Save changes and close.
  5. Clear caches: in Satellite of your website go to Administration > Configuration > Development > Performance and press Clear all caches.
  6. Manually run import of the events from Facebook:
    • go to Administration » Structure, find in the text link Import (usually points to <your_website>/import) and press it;
    • click on your importer;
    • press Import button.

That's it. However sometimes, if you already events previously imported from Facebook, you might need to manually remove them from Satellite (at least those events you want to re-import) and repeat Step 6 above.

Note that after updates of FeedsParser.inc, you changes can disappear and you will need to re-do the steps again!

More discussion about the issue here: https://www.drupal.org/node/2856478

Awesome! 

Please also include the notice about it, that this is just a workaround! :)

Yes, it works!

The only thing that after clearing all the caches, I also needed to manually remove already imported FB events - so that they are imported anew.

I think I will post also here the step-by-step guide of what I did, it might be useful for further generations :)

How to flush cashes, btw? :)

I am not 100% sure if I had the same issue a few months ago, but sounds similar. I also posted a patch request on drupal feeds module, which failed their tests, however it is running on our server currently and haven't caused any problems. (This is the only use case of Feeds on our server, so it's fine.... but it probably messes up some other things)

https://www.drupal.org/node/2856478

If you open the patch file attached there, you can see what did I change and where, try it on your server and then flush caches and do an import. CREATE A BACKUP of the file first! :)

If it works, we're happy, but keep in mind that everytime there is an update to the module, this is going to be reverted. The best solution would be if we could contribute to the issue by providing a proper solution and have our fixes merged, but I haven't had time for this for 11 months now... :\

Always checked it, now re-checked. Yes, we use customised (-ESN-) version of it. Problem persists.

Please make sure you use the feeds_facebook module provided and not any other version of it. If you use any other version of this module, we cannot support it