Webmastersite.net
Register Log In

Security Image
Getting the characters to
change every day

Comments on Security Image

kiwibob
Member

Usergroup: Customer
Joined: Oct 18, 2004

Total Topics: 4
Total Comments: 14
kiwibob
Posted Aug 18, 2007 - 4:14 PM:

The manual says "random characters in the image change only once per day, since they're a transformation based on a daily cron setting"

What I can't find is how to get the regular crons (I assume these are the ones I need) installed on my Debian system. Any guidance?

Thanks

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 19, 2007 - 1:49 AM:

It has nothing to do with operating system crons (and works on Windows just as well), it's Admin Panel -> Miscellaneous -> Crons, but there's no need to go there since it's pre-configured. Are you sure it's not changing daily?

If you were to get less than about 5 page views of the directory in a day then it wouldn't be able to run until the next person finally arrives. Even with the cache on a live site should get that many though.
kiwibob
Member

Usergroup: Customer
Joined: Oct 18, 2004

Total Topics: 4
Total Comments: 14
kiwibob
Posted Aug 20, 2007 - 5:15 PM:

Thanks for that.

The layout changes (implying that it's not a cache problem?) but it's still 'bkat'. I'll leave it a day or three and see what happens.

Do you think eAccelerator (i.e. the code is precompiled) would have an effect?
kiwibob
Member

Usergroup: Customer
Joined: Oct 18, 2004

Total Topics: 4
Total Comments: 14
kiwibob
Posted Aug 23, 2007 - 10:05 PM:

Still no change after several days. I've no idea where to look and would welcome a pointer.

Thanks
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 23, 2007 - 10:49 PM:

I can only see two possible ways to cause it to not change:
1) Never visit the site. If there are less than about 5 visits per day the cron wouldn't run. In theory the cache could lead to this but it seems unlikely.
2) Deleting the lastdaily record from the settings table for some reason.

You can change $settings->lastdaily to $settings->lastrotation in commonfuncs.php if somehow you have lastrotation working but not lastdaily. Suffice it to say it's impossible to reproduce your problem without further instructions though.
kiwibob
Member

Usergroup: Customer
Joined: Oct 18, 2004

Total Topics: 4
Total Comments: 14
kiwibob
Posted Aug 24, 2007 - 9:18 AM:

I imagine the site is very low access but 5 would be hard to imagine.

Looking at the settings table I see:

lastdaily 1133090606
lastautocron 1187928712
lastrotation 1133121094

In the administrator Cron Jobs there are no items listed. Should there be?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 24, 2007 - 9:51 AM:

In the administrator Cron Jobs there are no items listed. Should there be?

Yes, that's the problem then, the third possibility I was forgetting. Here's what it shows me: http://www.webmastersite.net/screenshots/17065.jpg . You can add them manually. I believe they were first added in either 2.5 or 3.0, quite a while ago... I guess your upgrade to that version years ago didn't add them properly.
kiwibob
Member

Usergroup: Customer
Joined: Oct 18, 2004

Total Topics: 4
Total Comments: 14
kiwibob
Posted Aug 25, 2007 - 8:11 PM:

Inexplicably they would not add via the web interface so I put them in via myphpadmin. The periods are a bit wonky but I assume that will sort itself?

Attached Files:
kiwibob
Member

Usergroup: Customer
Joined: Oct 18, 2004

Total Topics: 4
Total Comments: 14
kiwibob
Posted Aug 25, 2007 - 8:14 PM:

Oh yes, running them has caused the code to change. Thanks very much smiling face
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.