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

CommentFileSizeAuthor
#2 3229629-notice-a-non-2.patch591 bytesrishi.kulshreshtha

Issue fork socialfeed-3229629

Command icon 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

Rishi Kulshreshtha created an issue. See original summary.

rishi.kulshreshtha’s picture

Assigned: rishi.kulshreshtha » Unassigned
Status: Active » Needs review
StatusFileSize
new591 bytes

  • Hemangi Gokhale committed de99033 on 8.x-1.x
    Issue #3157581 by arpitk: Special characters are not included in hashtag...
hemangi.gokhale’s picture

Status: Needs review » Fixed

This issue is now resolved, please try the latest release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.