MyCyclingLog

Page may contain affiliate links. Please see terms for details.

Pat "5mph"

A kilogrammicaly challenged woman
Moderator
It was a simple code fix for McGalliard I think.
Ah, that's why the app was not working.
I did not want to disturb @jefmcg so I uploaded manually.
 

jefmcg

Guru
I am not sure the problem is with the ticker, but the fix to make my code work again was changing http to https to match a change that was quietly made to MCL.

(I guess the same change will need to be made to the ticker code)
 

Supersuperleeds

Legendary Member
I've tried changing the code in the sig to change http to https but it didn't work. Might be to do with having to set the sig up in notepad and then copying it across which I didn't do!
 

jefmcg

Guru
I've tried changing the code in the sig to change http to https but it didn't work. Might be to do with having to set the sig up in notepad and then copying it across which I didn't do!

Valiant attempt , but the fix needs to be in the source code of the ticker.

The other fix would be to get mcl to undo the change (or better still support both protocols for a while until tim o wakes up )
 

TimO

Guru
I'm trying to check things, but I can't find the username or password to access the site. I thought it was in a CycleChat conversation, but have so far failed to find it on CycleChat, YACF or my email.

If all else fails, I'll contact Shaun. I doubt the change will need to be anything too radical.
 

jefmcg

Guru
I'm trying to check things, but I can't find the username or password to access the site. I thought it was in a CycleChat conversation, but have so far failed to find it on CycleChat, YACF or my email.

If all else fails, I'll contact Shaun. I doubt the change will need to be anything too radical.
FYI, this is the log msg that I was getting on my site
HTML:
2016-10-18 10:54:03: MCL get URL http://www.mycyclinglog.com/api/restserver.php?method=ride.list&limit=0&offset=0
2016-10-18 10:54:03: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://www.mycyclinglog.com/api/restserver.php?method=ride.list&amp;limit=0&amp;offset=0">here</a>.</p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at www.mycyclinglog.com Port 80</address>
</body></html>

And as I say, the fix was simply to change the MCL url from http to https. I assume your fix will be the same.
 

TimO

Guru
I had a quick fiddle, and it seems to have updated. I think something about the caching may have gotten confused, and forcing it to reload has got things working again. It's possible that it won't reload again, so I need to look at the code a bit more carefully on Monday, and work out how I wrote it ! It isn't anything to do with the http vs https, since I don't use the API. The information that the log needs isn't available via the API, so I have to scrape the webpages with some REs. I checked that much, and the webpage looks like it's being pulled correctly (I use PHP's curl library for that).
 

Supersuperleeds

Legendary Member
I had a quick fiddle, and it seems to have updated. I think something about the caching may have gotten confused, and forcing it to reload has got things working again. It's possible that it won't reload again, so I need to look at the code a bit more carefully on Monday, and work out how I wrote it ! It isn't anything to do with the http vs https, since I don't use the API. The information that the log needs isn't available via the API, so I have to scrape the webpages with some REs. I checked that much, and the webpage looks like it's being pulled correctly (I use PHP's curl library for that).

Cheers, mines updated
 

jefmcg

Guru
Oh, I use some curl too - I wonder if that part is broken...ugh ... getting an error. Bugger, now I have to do some actual work.
 

TimO

Guru
It looks like it's only updating when forced too, which shouldn't be a fault with the way the data is extracted from the MyCyclingLog website. I'll have to look at the code more carefully, tomorrow or Monday.
 
Top Bottom