Opened 14 years ago

Closed 14 years ago

#185 closed defect (fixed)

PHP Error: Undefined variable: primary_email_id in settings.php 552

Reported by: maia@… Owned by: rjl
Priority: high Milestone:
Component: PHP scripts Version: 1.0.0 RC6
Severity: major Keywords: php error settings.php
Cc:

Description

( user@… is admin for @testdomain.dom )

login as user@…

click admin >

click users >

Link email address user@… to @testdomain.dom >

Click settings > - error primary address field is empty

PHP error Undefined variable: primary_email_id in settings.php 552

msyl-query log entry: 050218 13:33:57 487 Connect tester@localhost on

487 Init DB maia

487 Init DB maia

487 Query SELECT virus_lookup FROM maia_config WHERE id = 0

487 Init DB maia

487 Query SELECT enable_charts, reminder_threshold_count, enable_spamtraps, enable_username_changes, enable_address_linking FROM maia_config WHERE id = 0

487 Init DB maia

487 Query SELECT banner_title, use_logo, use_icons, logo_file, logo_url, logo_alt_text, enable_false_negative_management, enable_stats_tracking FROM maia_config WHERE id = 0

487 Init DB maia

487 Query SELECT user_name FROM maia_users WHERE id = '2'

487 Init DB maia

487 Query SELECT user_level FROM maia_users WHERE id = '2'

487 Init DB maia

487 Query SELECT maia_users.id, user_name, maia_themes.path FROM maia_users LEFT JOIN maia_themes ON maia_users.theme_id = maia_themes.id WHERE maia_users.id = '2' OR maia_users.user_name = '@.' ORDER BY maia_users.id DESC

487 Init DB maia

487 Query SELECT COUNT(mail_id) AS itemcount FROM maia_mail_recipients WHERE type = 'H'AND recipient_id = '2'

487 Init DB maia

487 Query SELECT COUNT(mail_id) AS itemcount FROM maia_mail_recipients WHERE type = 'S'AND recipient_id = '2'

487 Init DB maia

487 Query SELECT COUNT(mail_id) AS itemcount FROM maia_mail_recipients WHERE type = 'V'AND recipient_id = '2'

487 Init DB maia

487 Query SELECT COUNT(mail_id) AS itemcount FROM maia_mail_recipients WHERE type = 'B'AND recipient_id = '2'

487 Init DB maia

487 Query SELECT COUNT(mail_id) AS itemcount FROM maia_mail_recipients WHERE type = 'F'AND recipient_id = '2'

487 Init DB maia

487 Query SELECT user_level FROM maia_users WHERE id = '2'

487 Init DB maia

487 Query SELECT user_name FROM maia_users WHERE id = '2'

487 Init DB maia

487 Query SELECT users.id, users.email FROM users, maia_users WHERE users.maia_user_id = maia_users.id AND users.id = maia_users.primary_email_id AND users.email NOT LIKE '@%' AND users.maia_user_id = '2'

487 Init DB maia

487 Query SELECT id, email FROM users WHERE maia_user_id = '2' AND email NOT LIKE '@%' AND id <> NULL

487 Init DB maia

487 Query SELECT id, name FROM maia_themes

487 Init DB maia

487 Query SELECT charts, reminders, language, charset, spamtrap, auto_whitelist, items_per_page, theme_id FROM maia_users WHERE maia_users.id = '2'

487 Init DB maia

487 Query SELECT language_name, abbreviation FROM maia_languages WHERE installed = 'Y' ORDER BY language_name ASC

487 Init DB maia

487 Query SELECT user_level FROM maia_users WHERE id = '2'

487 Quit

Change History (2)

comment:1 Changed 14 years ago by dmorton

Ack, That shouldn't work, I think. At the moment, we don't allow for domain defaults to be linked with regular accounts.

comment:2 Changed 14 years ago by dmorton

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [909]

Note: See TracTickets for help on using tickets.