• Resolved tdreinhold

    (@tdreinhold)


    I recently created a thread for a problem.

    https://www.ads-software.com/support/topic/multiple-rules-not-working?replies=5#post-6330735

    I fixed that issue. The issue there was a conflict with another plugin. The plugin it was having an issue with was “The Events Calendar”.

    I deactivated that plugin and it started working again. I have successfully been watching the site to make sure the timed content was behaving correctly. For the past few days it has been working perfectly. However, today upon logging in to my site, there was an update to “Timed Content”. I made absolutely 0 changes to anything other then updating the “Timed Content” plugin and every thing broke.

    Here is a link to the site where the error is happening.
    Please help. This is the most important plugin I need to use for this site. I have currently found nothing close to this that will do the job for me.

    https://mybullcountry.com/

    The Error is this:

    Warning: Invalid argument supplied for foreach() in /data/24/3/7/57/3007220/user/3338651/htdocs/1057thebulldotcom/wp-content/plugins/timed-content/timed-content.php on line 498

    https://www.ads-software.com/plugins/timed-content/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter tdreinhold

    (@tdreinhold)

    I found out how to fix the issue, here is what I did…

    timed-content.php
    commented out lines 498-503
    This makes $exception_period always equal false

    I will put it back to the original file so you can see the error. It is an infinite loop.

    Plugin Contributor K. Tough

    (@kjvtough)

    What happens when you go to your rule in the backend and look at the schedule?

    Plugin Contributor K. Tough

    (@kjvtough)

    Try replacing lines 498-503 w/ this:

    if ( is_array( $exceptions_dates ) ) {
    	foreach ($exceptions_dates as $date) {
    		if (($current >= $date) && ($current < strtotime("+1 day", $date))) {
    			$exception_period = true;
    			break;
    		}
    	}
    }
    Thread Starter tdreinhold

    (@tdreinhold)

    That if statement seems to have done the trick. I will keep my eyes on it for a few days to make sure it keeps working correctly. Thank you very much for the timely response.

    Did you by chance happen to get a chance to look into why there is a conflict with this plugin and the “The Events Calendar” plugin? Again that is a plugin that seems to do the best for me, but once in activate it. The timed content gets an error where I am using it in my site.

    Plugin Contributor K. Tough

    (@kjvtough)

    Did you try boosting the memory limit like I suggested?

    Plugin Contributor K. Tough

    (@kjvtough)

    In case anyone else is following this thread, this bug’s resolved in v. 2.3.1.

    Thread Starter tdreinhold

    (@tdreinhold)

    Sorry for the delay in the response. I did try boosting the memory limit and it did not help. What exactly does this new update resolve? I assume the problem that may deal with that memory error. Specifically with that “The Events Calendar” plugin.

    Thread Starter tdreinhold

    (@tdreinhold)

    Okay, made a backup of the currently installed version of “Timed Content”.
    Updated the plugin to the newest. Reactivated the “The Events Calendar” plugin and it is working perfect now.

    I also have not had any issues with the plugin not showing the content properly.
    All seems to be working perfectly now.

    Thank you very much for taking the time to look into this issue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘New Update Error’ is closed to new replies.