JEvents 1.5 (No longer actively supported)

[FIXED IN SVN] ICal Import Broken

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 philman14 » Sat Jan 17, 2009 6:52 pm

* PHP version - 5
* Joomla! version - 1.5.8
* JEvents version - 1.5 alpha3
* Web Server software - Apache
* Server Operating system - Linux
* Database version - MySQL
* memory_limit from your phpinfo - 90MB

So the ICal import is broken, whether you do a file or a url (I was trying to import a google calendar). It pops up an error saying that it is an invalid Ical data file.

I took a look at the importer (libraries/iCalImport.php) and figured out where it raises the error. I think it has something to do with the lines around 140 or so, where you replace things in rawData. I echoed out the rawdata before you converted it to an array, and that is read in just fine (from a URL or a file), but exploding on the newline character just returns an array with length 1 w/o anything in it (or it might be a newline character or a space or something).

I thought for a second it just might be as simple as taking one of your lines out "$this->rawData = str_replace("\n ","",$this->rawData);", because right after this you tried to explode on newline characters after you had just tried to remove them.

So! Tried to be as helpful as possible. I will keep looking at it and see if I can fix it, but wanted to make you aware. Thanks for the awesome component.
philman14
 
Posts: 3
Joined: Sat Jan 17, 2009 6:16 pm

Postby Geraint » Sun Jan 18, 2009 12:34 pm

I just tried it now with no problems. Is the Calendar URL public - if not can you send the private URL via PM to me to test with?

Are you using the version in the sticky message at the top of this forum?

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: 42801
Joined: Fri Feb 15, 2008 6:14 pm

Postby philman14 » Sun Jan 18, 2009 9:24 pm

Yeah I am. I just uninstalled my version and re-installed the sticky just to make sure, and I still get the same thing. Just says it's not a valid ICS calendar and doesn't import any events. The url is www.utacm.org; I am pming you admin info now. Thanks for your help.
philman14
 
Posts: 3
Joined: Sat Jan 17, 2009 6:16 pm

Postby philman14 » Sun Jan 18, 2009 9:36 pm

Btw, feel free to delete or uninstall Jevents or whatever you want to test it.
philman14
 
Posts: 3
Joined: Sat Jan 17, 2009 6:16 pm

Postby Geraint » Mon Jan 19, 2009 8:58 am

This was a small mistake in a preg_replace regexp expression. I've just committed the fix to SVN.

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: 42801
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