Problem with ExtCalendar recurring event

Discuss the development and implementation of Joomla! components here.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
AllanB
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sun Mar 26, 2006 6:13 pm

Problem with ExtCalendar recurring event

Post by AllanB » Sun Sep 24, 2006 2:09 am

I am using Joomla 1.0.11 and the latest version of ExtCalendar. I've had no difficulties adding single session events. I added a recurring event (a weekly event), but when I saved it, it didn't appear on the monthly view. I went to category view and the category showed an event present - when I click on the category, I this error:

Fatal error: Cannot access empty property in .../com_extcalendar/lib/event.inc.php on line 241

Now I can't move forward to the next month - it gives me the same error.

Any suggestions?

dragonrider
Joomla! Ace
Joomla! Ace
Posts: 1070
Joined: Mon Aug 22, 2005 7:53 pm
Location: Ilkley, West Yorkshire, UK
Contact:

Re: Problem with ExtCalendar recurring event

Post by dragonrider » Sun Sep 24, 2006 9:20 am

Hi, I've not used ext-calendar for recurring events very much I must admit, but I have tried to add a recurring event over the next three months on my test site and had no problem.

You say you are using the latest version of extcal, but don't say which version this is? I'm using Joomla 1.0.11 with ExtCal 0.9.1 with latest events V.0.7.2 and minincal V.0.8.2 Which are you using please?

Also, can you check if the directories that Joomla require to be writable for both components and modules are indeed writable?

AllanB
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sun Mar 26, 2006 6:13 pm

Re: Problem with ExtCalendar recurring event

Post by AllanB » Sun Sep 24, 2006 1:55 pm

Current version is ExtCal 0.9.2 ...

AllanB
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sun Mar 26, 2006 6:13 pm

Re: Problem with ExtCalendar recurring event

Post by AllanB » Sat Sep 30, 2006 11:12 pm

---

Ottobufonto
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Tue Sep 06, 2005 10:53 pm

Re: Problem with ExtCalendar recurring event

Post by Ottobufonto » Sun Oct 01, 2006 4:12 am

Hi,
a search would have given you some results..

what's you line 241 look like?

My best guess is: if ($this->$recur_nextStartStamp) $target_stamp = $recur_nextStartStamp;

comment it out or change that to
if ($this->recur_nextStartStamp) $target_stamp = $this->recur_nextStartStamp;
if you change it, you might want to add a var definition for recur_nextStartStamp further up the file - otherwise you'll get a warning (or just ignore the warning..)

Otto

User avatar
bopritchard
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 149
Joined: Tue Oct 04, 2005 11:44 pm

Re: Problem with ExtCalendar recurring event

Post by bopritchard » Tue Oct 03, 2006 11:29 am

both of these solutions get rid of the error but not the problem...now all of my recurring events display multiple time per day
http://beaconbaptistpublications.com/in ... &Itemid=44
Ottobufonto wrote: Hi,
a search would have given you some results..

what's you line 241 look like?

My best guess is: if ($this->$recur_nextStartStamp) $target_stamp = $recur_nextStartStamp;

comment it out or change that to
if ($this->recur_nextStartStamp) $target_stamp = $this->recur_nextStartStamp;
if you change it, you might want to add a var definition for recur_nextStartStamp further up the file - otherwise you'll get a warning (or just ignore the warning..)

Otto

Ottobufonto
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Tue Sep 06, 2005 10:53 pm

Re: Problem with ExtCalendar recurring event

Post by Ottobufonto » Tue Oct 03, 2006 3:44 pm

http://forum.joomla.org/index.php/topic,92963.0.html maybe...

one quick search in the forums.

User avatar
bopritchard
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 149
Joined: Tue Oct 04, 2005 11:44 pm

Re: Problem with ExtCalendar recurring event

Post by bopritchard » Tue Oct 03, 2006 4:11 pm

same problem, and it's just in the monthly view
Ottobufonto wrote: http://forum.joomla.org/index.php/topic,92963.0.html maybe...

one quick search in the forums.

Ottobufonto
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Tue Sep 06, 2005 10:53 pm

Re: Problem with ExtCalendar recurring event

Post by Ottobufonto » Tue Oct 03, 2006 4:25 pm

just do the suggested fix if its same problem. solved - hooray.  ;)

Edit: are you sure you fixed the correct loop? are you sure you fixed it in the print_monthly_view function?
Last edited by Ottobufonto on Tue Oct 03, 2006 4:28 pm, edited 1 time in total.

RSGracey
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Fri Oct 14, 2005 2:39 pm
Location: Cleveland, OH, USA
Contact:

Re: Problem with ExtCalendar recurring event

Post by RSGracey » Wed Oct 04, 2006 3:50 pm

Could someone PLEASE incorporate this fix into the security update?

Stephen

User avatar
bopritchard
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 149
Joined: Tue Oct 04, 2005 11:44 pm

Re: Problem with ExtCalendar recurring event

Post by bopritchard » Wed Oct 04, 2006 3:54 pm

mine still isn't fixed...same problem
RSGracey wrote: Could someone PLEASE incorporate this fix into the security update?

Stephen

evoker
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Thu Oct 05, 2006 12:17 pm

Re: Problem with ExtCalendar recurring event

Post by evoker » Thu Oct 05, 2006 12:32 pm

I am currently using ExtCal 0.9.2, and the latest mods (mod_extcalendar_latest-0.7.2.6 and mod_extcalendar_minical_0_8_3_RC2) and I am getting the same error as the OP:

Fatal error: Cannot access empty property in C:\PATH\Site\components\com_extcalendar\lib\event.inc.php on line 241

I have changed line 241 of the file and the error is gone but mod_extcalendar_latest-0.7.2.6 shows the same event (weekly) 4 times.

I have tried to find the lines mentioned here: http://forum.joomla.org/index.php/topic,92963.0.html
but they are in 2 places at the extcalendar.php. And since I don't have the problem at the monthly or weekly view, where should I search for a fix for the latest events mod?

Thanks in advance for any help.

Ottobufonto
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Tue Sep 06, 2005 10:53 pm

Re: Problem with ExtCalendar recurring event

Post by Ottobufonto » Thu Oct 05, 2006 4:41 pm

evoker,

try this... change line 223 in mod_latest  /mod_extcalendar_latest / extcal_latest_func.php

from
$rowsToAdd[] = $thisEvent;
to
$rowsToAdd[] = clone $thisEvent;

something we've fixed in the forge for the latest_module...

Otto

evoker
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Thu Oct 05, 2006 12:17 pm

Re: Problem with ExtCalendar recurring event

Post by evoker » Fri Oct 06, 2006 8:09 am

Thank you Otto for you reply.

I should propably make another thread about this but after I make a fresh installation of ExtCal I go to the configuration page and get the following error:

Parse error: parse error, unexpected $end in C:\Projects\test\Site\administrator\components\com_extcalendar\admin_settings.php on line 752

Can anyone help me on this?

Ottobufonto
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Tue Sep 06, 2005 10:53 pm

Re: Problem with ExtCalendar recurring event

Post by Ottobufonto » Sun Oct 08, 2006 5:42 am

There are some open short open tags in that file..

In admin_settings.php some code-blocks begin with "<?" instead of "<?php" -- thus the file can not be parsed correctly (as your server doesn't seem to permit short open tags).

Just edit the file and replace those occurrences... maybe one or two IIRC.

Otto

evoker
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Thu Oct 05, 2006 12:17 pm

Re: Problem with ExtCalendar recurring event

Post by evoker » Mon Oct 09, 2006 6:53 am

Thanks again Otto,
that did the trick!!  :)

One last thing, as I said I use Joomla (latest version) and at the admin, when I try to edit or create a new category the extcal table appears above the joomla admin menu.

Could I ask for your help on this issue again plz?

Thank you in advance.

Ottobufonto
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Tue Sep 06, 2005 10:53 pm

Re: Problem with ExtCalendar recurring event

Post by Ottobufonto » Mon Oct 09, 2006 8:42 am

We should rename this into the universal Extcal bug fix thread :-)

Ok edit admin.extcalendar.php and look for function editCategory and function newCategory.
Comment out

pagefooter();

at the end of each function.

evoker
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Thu Oct 05, 2006 12:17 pm

Re: Problem with ExtCalendar recurring event

Post by evoker » Mon Oct 09, 2006 11:15 am

Thanks a lot!
Commenting the footer fixed it  :)

diegorodriguez
Joomla! Intern
Joomla! Intern
Posts: 80
Joined: Fri Aug 18, 2006 6:53 pm

Re: Problem with ExtCalendar recurring event

Post by diegorodriguez » Tue Oct 10, 2006 12:14 pm

Now another problem. I added two events, and approved them in the frontend. So, the calendar looked beautifully with them in.

But back to the Latest events module, I got it distorting the whole layout with a row of ...

Notice: A non well formed numeric value encountered in C:\Documents and Settings\All Users\Documentos\Web personal\joomla\modules\mod_extcalendar_latest\extcal_latest_func.php on line 50

Notice: A non well formed numeric value encountered in C:\Documents and Settings\All Users\Documentos\Web personal\joomla\modules\mod_extcalendar_latest\extcal_latest_func.php on line 51

Notice: A non well formed numeric value encountered in C:\Documents and Settings\All Users\Documentos\Web personal\joomla\modules\mod_extcalendar_latest\extcal_latest_func.php on line 50

Notice: A non well formed numeric value encountered in C:\Documents and Settings\All Users\Documentos\Web personal\joomla\modules\mod_extcalendar_latest\extcal_latest_func.php on line 51


So... non well formed numeric value? What can be??

Ottobufonto
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Tue Sep 06, 2005 10:53 pm

Re: Problem with ExtCalendar recurring event

Post by Ottobufonto » Wed Oct 11, 2006 9:19 pm


joeschmuckitelli
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Sep 12, 2007 4:41 pm

Re: Problem with ExtCalendar recurring event

Post by joeschmuckitelli » Wed Sep 12, 2007 9:17 pm

Ottobufonto wrote: Hi,
a search would have given you some results..

what's you line 241 look like?

My best guess is: if ($this->$recur_nextStartStamp) $target_stamp = $recur_nextStartStamp;

comment it out or change that to
if ($this->recur_nextStartStamp) $target_stamp = $this->recur_nextStartStamp;
if you change it, you might want to add a var definition for recur_nextStartStamp further up the file - otherwise you'll get a warning (or just ignore the warning..)

Otto
I was getting an error on that line after moving my site to a new host. Commenting it out worked for me. Thanks Otto

gizycki
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat May 25, 2013 12:05 pm

Re: Problem with ExtCalendar recurring event

Post by gizycki » Mon May 27, 2013 8:37 pm

Try this:

in components/com_calendar/lib/event.inc.php change line 254:

Code: Select all

if ($this->$recur_nextStartStamp) $target_stamp = $recur_nextStartStamp;
in:

Code: Select all

if(isset($this->$recur_nextStartStamp)){
					if ($this->$recur_nextStartStamp) $target_stamp = $recur_nextStartStamp;
			}
It fixed those problems 4 me...


Locked

Return to “Components”