Problem/Motivation
The module is throwing PHP Notice: A non well formed numeric value encountered in template_preprocess_socialfeed_facebook_post() (line 44 of /var/www/html/web/modules/contrib/socialfeed/socialfeed.theme.inc) when Facebook block is enabled.
Steps to reproduce
As soon as the Show Date/Time is checked & custom date format is provided, the module throws PHP Notice.
Proposed resolution
$formatted_date->setTimestamp($post['created_time']);
should be replaced by:
$formatted_date->setTimestamp(strtotime($post['created_time']));
As setTimestamp() requires UNIX timestamp as argument.
Remaining tasks
Provide patch
User interface changes
N/A
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3229629-notice-a-non-2.patch | 591 bytes | rishi.kulshreshtha |
Issue fork socialfeed-3229629
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rishi.kulshreshthaComment #4
hemangi.gokhaleThis issue is now resolved, please try the latest release.