• Resolved flippertie

    (@flippertie)


    I have today discovered the same error message as a couple of threads using this plugin.

    “Illegal string offset ‘format’ ” on Line 79.

    The format string was set to the default. I’ve re-entered it, deleted it completely and deleted/reinstalled the plugin – but the error message is still there.

    I’d be happy to work with you to resolving this issue.
    Info for anyone else with the same error:
    – this is a multi-site installation,
    – we’re using Elegant themes and their page builder plugin.

    https://www.ads-software.com/plugins/todays-date-inserter/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter flippertie

    (@flippertie)

    For anyone else with the same problem:

    The fix that worked for me was to completely clear the date format box in the plugin’s settings page, and then specify the date format in the shortcode.

    This worked for me: [todaysdate format=”l, F jS Y”]
    This throws the Line 79 error: [todaysdate]

    Thanks a lot @flippertie ?? This worked for me as well

    Here is the fix for line 79 error:

    Find the plugin file called: “lfo-todays-date-inserter.php” using the plugins editor. On line 79

    CHANGE THIS:
    if (strlen($attr[‘format’])>0){
    TO THIS:
    if (is_array($attr) && strlen($attr[‘format’])>0){

    THAT’s IT!!

    According to THIS POST, the new version of PHP thinks the variable here should be an array.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Line 79 strikes again….’ is closed to new replies.