• Resolved aalexanderka

    (@aalexanderka)


    Hello,

    I am currently getting this error when using the Facebook Feed: “Notice: date_default_timezone_set(): Timezone ID ” is invalid in C:\Users\wp-content\plugins\feed-them-social\includes\feed-them-functions.php on line 3005“.

    I bolded line 3005 in the entire code section it belongs to below:

    // Facebook date time
    if ($feed_type == ‘facebook’) {
    $timeSet = $fts_timezone;
    $timeSetCheck = isset($timeSet) ? $timeSet : ‘America/New_York’;
    date_default_timezone_set($timeSetCheck);

    if ($CustomDateCheck == ‘one-day-ago’) {
    $uTime = $this->fts_ago($created_time);
    }
    else {
    $uTime = !empty($CustomDateCheck) ? date_i18n($CustomDateFormat, $created_time) : $this->fts_ago($created_time);
    }
    }

    • This topic was modified 7 years, 9 months ago by aalexanderka. Reason: Clarity for the code section pasted
    • This topic was modified 7 years, 9 months ago by aalexanderka.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author slickremix

    (@slickremix)

    Try going to the Settings > Global Options page of our plugin and set the date/time select option to One Day and then click the Save button at the bottom of the page. Does that help? If not please include the System Report from the System Info page of our plugin.

    Spencer

    Thread Starter aalexanderka

    (@aalexanderka)

    Thank you so much for responding to me so quickly! If I’m looking at it correctly, by default it was already set to “Cache Time: 1 Day.” Is that the area?

    Settings screenshot

    Thank you!

    • This reply was modified 7 years, 9 months ago by aalexanderka.
    • This reply was modified 7 years, 9 months ago by aalexanderka.
    Thread Starter aalexanderka

    (@aalexanderka)

    Status: Clicking that Red “Clear All FTS Feed Cache” button did resolve the issue! yay. Thank you so much!

    Plugin Author slickremix

    (@slickremix)

    Awesome, glad you got it to work proper!

    Is this your first time using the plugin on this website? Just wondering if because maybe we have a small bug that needs attending too.

    Thread Starter aalexanderka

    (@aalexanderka)

    Yes this is the first time I used the plugin on this website for the latest version of WordPress. I think I used this plugin before on another site awhile ago.

    So perhaps this could be a new bug. I’m marking this as resolved for us.

    Plugin Author slickremix

    (@slickremix)

    Sweet. thanks for the feedback! Not sure if you have left a review for us before, but if you have a second and wouldn’t mind leaving one for us we would be most thank-full. https://wordpress.org/support/plugin/feed-them-social/reviews/

    Thanks again for using our plugin and have a great rest of your week.

    Spencer

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Facebook Timezone ID ” is invalid Error’ is closed to new replies.