We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

I cannot get Repeet to work: code within

Development and Programming

david-csd's avatar
david-csd
11 posts
about 18 years ago
david-csd's avatar david-csd

I have read all of the documentation and threads, and I am at a loss to make this work.

First this the latest version of Repeet (1.0.5) is running on EE 1.5.2. I have given all entries in the weblog of ‘roadtrip’ expiration dates.

As I understand it, by default, Repeet will set the interval to be daily and the start date is the entry date, and the end date is the expiration date. Meaning the code as I have it below should show events spanning more than one day, but it only shows it for the date entry and does not span further.

Here is my code. What am I doing wrong?

http://fungoman.com/roadtrip/test

{exp:repeet:get_ids weblog="roadtrip" parse="inward" calendar="yes"}
{exp:repeet:calendar switch="calendarToday|calendarCell" weblog="roadtrip" entry_id="{repeet:entry_ids}" show_future_entries="yes" show_expired="yes" }

<table class="calendarBG" cellpadding="6" border="0" cellspacing="1" summary="Calendar" width="90%">
<tr class="calendarHeader">
<th><div class="calendarMonthLinks"><a href="http://{previous_path=roadtrip/test}"><<</a></div></th>
<th colspan="5">{date format="%F %Y"}</th>
<th><div class="calendarMonthLinks"><a href="http://{next_path=roadtrip/test}class=calendarMonthLinks">>></a></div></th>
</tr>
<tr>
{calendar_heading}
<td class="calendarDayHeading">{lang:weekday_abrev}</td>
{/calendar_heading}
</tr>

{calendar_rows }
{row_start}<tr>{/row_start}

{if entries}
<td width='15%' class='{switch}' align='center'>
<a href="http://{day_path=roadtrip/index}">{day_number}</a>
{entries}
<div><a href="http://{title_permalink=roadtrip/details}">{title}</a></div>
{/entries}
</td>
{/if}

{if not_entries}
<td width='15%'class='{switch}' align='center'>{day_number}</td>
{/if}

{if blank}
<td class='calendarBlank'> </td>
{/if}

{row_end}</tr>{/row_end}
{/calendar_rows}
</table>
{/exp:repeet:calendar}
{/exp:repeet:get_ids}
       
Lisa Wess's avatar
Lisa Wess
20,502 posts
about 18 years ago
Lisa Wess's avatar Lisa Wess

Hey David - I’m going to pop this over to our Plugins General forum – the Plugins Technical forum is really geared at helping developers build the plugins. There’s a better chance this will be seen in the Plugins General forum. =)

       
Nutmeg's avatar
Nutmeg
111 posts
about 18 years ago
Nutmeg's avatar Nutmeg

Hi David, I have been asking Mr. Wilson for the past 2 weeks the same question, but the man is tight up with other matters, unfortunately. I am sure he will surface soon. Meanwhile, I tested a previous version 1.03 which left me with similar results.

Have you tried setting a repeat interval?

We might be able to work this out comparing notes…..

       
david-csd's avatar
david-csd
11 posts
about 18 years ago
david-csd's avatar david-csd

Wilmy: I created a custom interval field set to ‘daily’ for every entry, and specified that in the tag, but that didn’t seem to work either.

Lisa: Thanks for putting this in the right place.

       
Nutmeg's avatar
Nutmeg
111 posts
about 18 years ago
Nutmeg's avatar Nutmeg

Think I have worked it out, David. Set interval to “daily”. In hindsight this computes, non?

Let me know if this solves it for you too. 😉

Addendum: I noticed that once the expiration date’s time is set even 1 minute earlier than the entry date, the event won’t show on the expiration date. I added a new interval “1 hour” to my list and this seems to do the trick.

I do feel that there are different ways to accomplish this and my guess would be the “BEGIN” & “END” parameters.

       
david-csd's avatar
david-csd
11 posts
about 18 years ago
david-csd's avatar david-csd

I had set the custom interval field to what it was supposed to be in the tag, and gave every entry a value of daily, but it didn’t work for me.

From reading the documentation, if you don’t supply it an interval, it will default to ‘daily.’ That’s why I am confused because the code I have posted should work.

       
david-csd's avatar
david-csd
11 posts
about 18 years ago
david-csd's avatar david-csd

Wilmy,

I don’t know what I did, but it seems that dates are “repeeting” now: http://www.fungoman.com/roadtrip/test/2007/07/

However I have a ton of notice errors. Do you have any insight into what is causing that?

EDIT: it is probably the begin and end parameters but I have no idea how to use those.

       
Nutmeg's avatar
Nutmeg
111 posts
about 18 years ago
Nutmeg's avatar Nutmeg
However I have a ton of notice errors. Do you have any insight into what is causing that?

Show some examples, David

       
david-csd's avatar
david-csd
11 posts
about 18 years ago
david-csd's avatar david-csd

http://www.fungoman.com/roadtrip/test/2007/07/

{exp:repeet:get_ids weblog="roadtrip" parse="inward" calendar="yes"}
{exp:repeet:calendar switch="calendarToday|calendarCell" weblog="roadtrip" entry_id="{repeet:entry_ids}" interval_field="repeat_interval"  show_future_entries="yes" show_expired="yes" }

repeat_interval is a custom weblog field that includes the value of ‘daily’

The errors being produced:

Notice: A non well formed numeric value encountered in ~/pi.repeet.php on line 1914

Notice: A non well formed numeric value encountered in ~/pi.repeet.php on line 1914

Notice: A non well formed numeric value encountered in ~/pi.repeet.php on line 1915

       
Nutmeg's avatar
Nutmeg
111 posts
about 18 years ago
Nutmeg's avatar Nutmeg

All seems to work fine on this end…Titles are showing and links are working to the entries. Send some (screenshot) examples if it persists after you have logged in and out and you might as well clear your cache out while you are at it. (Admin/Utilities/Clear Cached Data) Same for your browser (restarting will do) if the first two actions didn’t work…

       
david-csd's avatar
david-csd
11 posts
about 18 years ago
david-csd's avatar david-csd

It seems to only happen when you are logged in. Good call on the logging out. I wonder if it has something to do with membership and/or time offset?

       
Nutmeg's avatar
Nutmeg
111 posts
about 18 years ago
Nutmeg's avatar Nutmeg

Can you check your repeat_intervals in the Custom Fields settings in your events Field group and make sure they are conform the author’s guidelines? (daily, weekly, etc..)

Also, have you added any Custom dates and times in some of your entries and if so, check the format of the times/dates and compare with the author’s guidelines.

I’ll be out for a few hours, let me know the results.

Cheers:-)

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
about 18 years ago
Sue Crocker's avatar Sue Crocker
A non well formed numeric value encountered in

It may have to do with the version of PHP being used. I get the same thing.

About the only thing I found when googling was:

CI Thread

It’s just discussing the error message in one person’s code.

       
david-csd's avatar
david-csd
11 posts
about 18 years ago
david-csd's avatar david-csd

I thought that might be a culprit as well.

I also see that errors are displayed to super admins, which explains why I was only seeing the errors when logged in. I went into system preferences and turned debugging errors off for now until I have to do other work on the site.

Thank you very much everyone for the help.

       
Eastwood Design's avatar
Eastwood Design
605 posts
17 years ago
Eastwood Design's avatar Eastwood Design

I have the same problem when logged in. IS there a fix for this problem?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.