JEvents 1.5 (No longer actively supported)

iCal Event removal/edit on subscription refresh/update

JEvents 2.0 was launched over 2 years ago and the latest stable version is version 2.2 which will run on Joomla 1.5 and Joomla 2.5. JEvents 1.5 is therefore no longer actively supported - you should upgrade to JEvents 2.2+ as soon as possible.
Forum rules
Please include as much detail in any test or bug reports for JEvents 1.5 as possible.

First of all, check if you are running the latest available version of Joomla! and JEvents. Posts for issues, where both systems are not updated, will be ignored.

We need the following at least:

* PHP version (e.g. 5.2.5). Note: Support for PHP4 is discontinued.
* Joomla! version
* JEvents version
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Database version
* memory_limit from your phpinfo
* Web browser and version

Please enable error reporting and include any error messages in your posting. You do this via the Joomla Configuration - set "error reporting" to "maximum" on the Server tab.

Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.

Postby liveaverage » Tue Feb 03, 2009 4:44 pm

PHP: PHP Version 5.2.3-1ubuntu6.3
Joomla: Version 1.5.8
JEvents: 1.5alpha3
Web Server: Server version: Apache/2.2.4 (Ubuntu)
Server OS: Ubuntu 6.06 LTS
MySQL: Server version: 5.0.45-Debian_1ubuntu3.1-log
memory_limit: 128MB

Just had a quick inquiry:

Should the current alpha release or SVN1281 support the removal of iCal subscription entries that have been removed on the source calendar(s)? If not, is there anywhere I could/should start looking to help add this functionality? Thanks for all your help!

>JR
liveaverage
 
Posts: 6
Joined: Wed Jan 28, 2009 10:01 pm

Postby Geraint » Tue Feb 03, 2009 5:04 pm

From memory when you do a refresh the code removes all entries from the imported calendar and gets a fresh copy so all changes and deletions should be respected.

It should also respect exceptions (i.e. individual repeats that are deleted or changed)

Geraint
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42850
Joined: Fri Feb 15, 2008 6:14 pm

Postby liveaverage » Tue Feb 03, 2009 5:29 pm

Man, I'm always impressed with your quick replies! Don't know how you manage staying up with everything :D If it's not updating/deleting iCal entries from the URL subscription (for some reason it isn't), is it recommended to uninstall/reinstall the component and see if that helps? I'll go ahead and try (+ post back). If that doesn't solve it, would you have any other recommendations for tracing the problem? Thanks for the time + answer.

EDIT: from /administrator/components/com_jevents/controllers/icals.php

Starting @ Line 275:

Code: Select all
               // Note for refresh of re-import I could clear out the existing values in case one or
                        // more events in the file have gone - but this plays havoc with Joomfish !!!

                        // TODO trap deleted events and remove them after the reload
                        // Should come from the form or existing item
                        $state = 1;
                        if (strlen($currentICS->srcURL)==0) {
                                echo "Can only reload URL based subscriptions";
                                return;
                        }
                        $uploadURL = $currentICS->srcURL;


On the 'TODO' item, is this comment now obsolete, or has this not been implemented yet?
liveaverage
 
Posts: 6
Joined: Wed Jan 28, 2009 10:01 pm

Postby Geraint » Tue Feb 03, 2009 7:16 pm

OK - I've added an extra layer in the import. We check all existing events in the calendar and if any are not 'updated' they are removed.

Geraint
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42850
Joined: Fri Feb 15, 2008 6:14 pm

Postby liveaverage » Tue Feb 03, 2009 9:41 pm

Geraint, I really appreciate this ((quick and effective)) fix! It's working great. I'm not sure it's related or not, but I was getting an error thrown on line 24 of :

components/com_jevents/libraries/modfunctions.php Warning: Invalid argument supplied for foreach()

I've commented the code out (since my modules are public view only), but I'll look into fixing this myself as well. I'll post any fixes or finds I come up with. Thanks for all of your assistance!!

>JR
liveaverage
 
Posts: 6
Joined: Wed Jan 28, 2009 10:01 pm

Postby Geraint » Wed Feb 04, 2009 7:51 am

You need a menu item pointing at JEvents (even if its not on a visible menu).

Geraint
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42850
Joined: Fri Feb 15, 2008 6:14 pm


Return to JEvents 1.5 (No longer actively supported)

  • Who is online
  • View new posts
  • View unanswered posts
  • In total there are 0 users online :: 0 registered and 0 hidden (based on users active over the past 5 minutes)
  • Most users ever online was 94 on Tue Sep 01, 2009 12:33 am
  • Users browsing this forum: No registered users