Jump to content

DB Error Saving TimeZone


Recommended Posts

We get this error:

 

Version:    Revive Adserver v3.2.2
PHP/DB: PHP 5.4.36 / MySQL 5.5.41-MariaDB
Page: /bmg/www/admin/account-preferences-timezone.php
Error: Duplicate entry '0-1' for key 'PRIMARY'
Query:
INSERT INTO b_account_preference_assoc (account_id , value ) VALUES ( 1 , 'America/Los_Angeles' ) 
$_POST:
Array
(
    [submitok] => true
    [timezone] => America/Los_Angeles
    [token] => 23a408e74941adb2d8ac3f16792d491c
    [submitsettings] => Save Changes
)
$_GET:
Empty

 

 

When I check the table, it has shows the value but preference_id is 0

Link to comment
Share on other sites

I would suggest having a look in the preferences table (probably called 'b_preferences' in your case) and finding out if a row exists there for timezone with preference_name "timezone".

I've seen cases where that row disappeared (but have never been able to explain why).

If so, just add one row and make sure it has a unique preference ID and event_name equals "timezone" (lower case). Account_type must be "MANAGER" (all caps).

Once that's done, you should be able to set your time zone preference, although you might want to first remove that invalid row with preference_id = 0.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...