CUpdater now compatibles with Joomla 3

Well, as it usually happens something that needs 10mins of work turns out to be a whole day worth of work... CUpdater was originally developed for Joomla 2.5 so the update to 3.0 shouldn't have been that big of deal. Unfortunately a small change in the Joomla API can lead to serious issues. This is going to get a little technical, so if you are not in the mood you can just go to the download section :)

On Joomla 3 the findUpdate function was updated to use the JHttp get method instead of fopen. Which is of course great, however when you have an update url that is not returning what we expect things get nasty. Whenever I was trying to check for updates I was getting "No HTTP response received.". So I turned xdebug and started going through the code line for line. First were the joomla update urls -> they all were resolved just fine. Then came a compojoom update url. And voila I got the error. Copy pasting the url in the browser was returning the correct xml format expected from Joomla . So after watching the screen and scratching my head I decided to debug further. It turns out that the JHttpTransportCurl class cannot handle https urls (or at least it cannot handle them on my server). So the getResponse method in the class throws an UnexpectedValueException because curl couldn't fetch the content.Now if I'm in the backend and I manually click on the find updates button and I get an ugly error message on the screen I might get confused & annoyed, but I've caused it by clicking on the button & I'm the only one who sees it, so it is not that big of a deal. But if you have a plugin that randomly checks for updates when normal users are on the site things can confusing.

Continue reading
Rate this blog entry:
0
35567 Hits
0 Comments

CUpdater - get yourself notified about new updates

CUpdater - get yourself notified about new updates

You really like the update functionality in the joomla 2.5 installer? We do too, but we got kinda bored. Each time we wanted to check if there are any new extensions updates we had to login into our website, go to the extension manager -> click update -> click find updates -> wait 5sec -> if there is nothing - well done dear, but you'll have to come again tomorrow...

O. Schwab got really bored by this routine and spoke with me about that 3 days ago. Then we thought - wouldn't it be great if there was a joomla plugin that could check for updates for us and send us a mail if there are! Well, there is one now!

Continue reading
Rate this blog entry:
7
32910 Hits
18 Comments