Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Upload Attachment button missing
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 16, 2013 - 10:03 am

OK - this is a first for me and something I have never seen before and seems to be the root cause of the permission issue.

Your auto-increment process of your mySQL database appears to either go up 2 digits at a time or something on your database is set to never have a key field value where the number is even. I.e., all of your table records that are numerically stored follow the patter 1, 3, 5, 7, 9 etc.!

It was not always like this as I see some early records in your DB where all numbers were used but it has been like this for a while. The effect on SP has been to throw the 'authcat' relationships out. This could be repaired manually very easily I believe if you are Ok to do that - I can tell you what needs changing of course.

But - I would really like to know what the root cause is of the odd keys and will need to look at SP to see if that might have any future negative effect. So let's say I am burning up with curiosity!

 

andy-signature.png
YELLOW
SWORDFISH
Avatar
Victoria Pike
Member
Free Members
sp_UserOfflineSmall Offline
Jan 16, 2013 - 10:21 am

I think I'm ok to repair manually if you tell me what to do.What does 'look at SP' mean?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 16, 2013 - 10:38 am

'look at SP' means that I have to look at the code to ensure we are safe for this weird db key allocation of yours.

I will go through now and work pout the changes and come back within half an hour with instructions.

But I still want to know why your DB is doing this. Actually - that is pretty important to know.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Victoria Pike
Member
Free Members
sp_UserOfflineSmall Offline
Jan 16, 2013 - 11:39 am

I imagine it is pretty important to know to stop it mis-allocating in the future. I look forward to your response.

Avatar
Victoria Pike
Member
Free Members
sp_UserOfflineSmall Offline
Jan 16, 2013 - 11:54 am

Just looked at the auth_ids on wp_sfauths and these are also missing all even numbers. Will this be a problem as well? I'll hold off updating the auth_cats until you respond. Thanks.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 16, 2013 - 11:56 am

I sent you an email with the details about 20 minutes ago...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Victoria Pike
Member
Free Members
sp_UserOfflineSmall Offline
Jan 16, 2013 - 12:00 pm

Yes - thanks for that.

So I am putting together some update statements to set all the authcat 3s to 2s, all the 5s to 3s etc. I don't think your email mentioned the auth_id which is also showing only odd numbers, unless I mis-read something? 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 16, 2013 - 12:03 pm

The auth_id also needs changing as in the part at the top of the text file.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Victoria Pike
Member
Free Members
sp_UserOfflineSmall Offline
Jan 16, 2013 - 12:09 pm

Yes I understood to change the authcat_id, I'm talking about the auth_id, which on my localhost version runs from 1 to 30 but on my production version only has odd numbers and goes up to 59.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 16, 2013 - 12:13 pm

That one should be fine.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625