This bug is related to the problem previously reported in bug 1957294.
The attached image shows an Individual's page with the the Highlight Image reporting "Yes" and a popup window (created just by clicking on the Multimedia Object "Edit" link) showing Highlighted Image "No".
How can the Image be both "Yes" and "No" at the same time?
The answer is two different entries in pgv_media and pgv_media_mapping. I don't know who put the entry into pgv_media_mapping, but there seems to be no way to remove it except by deleting the Media Object from the Individual's list of Objects. Any edits from the popup only seem to influence pgv_media.
This database was created by an import of a GEDCOM from PAF 5.2.
If 4.1.5 is not maintaining _PRIM in pgv_media_mapping links (the response given in answer to bug 1957294), then why is it sticking stuff into those links on import and why is the "Highlight" report for the page using it?
Here are the raw queries:
mysql> select * from pgv_media where m_media = 'M9';
+------+---------+-------+---------------------+------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| m_id | m_media | m_ext | m_titl | m_file | m_gedfile | m_gedrec |
+------+---------+-------+---------------------+------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 243 | M9 | NULL | Abdank Coat of Arms | media/Abdank.bmp | 1 | 0 @M9@ OBJE
1 FILE media/Abdank.bmp
2 FORM bmp
3 TYPE photo
2 TITL Abdank Coat of Arms
1 _PRIM N
1 _THUM N
1 NOTE Abdank
1 _SCBK Y
1 _TYPE PHOTO
1 _SSHOW Y
1 _UID 09BF701E115F9E4455E624E23F706701DB2A
1 CHAN
2 DATE 04 MAY 2008
3 TIME 15:57:46
2 _PGVU hankm
|
+------+---------+-------+---------------------+------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
mysql> select * from pgv_media_mapping where mm_gid = 'I1553';
+-------+----------+--------+----------+------------+-----------------------------------------+
| mm_id | mm_media | mm_gid | mm_order | mm_gedfile | mm_gedrec |
+-------+----------+--------+----------+------------+-----------------------------------------+
| 1712 | M9 | I1553 | 1 | 1 | 1 OBJE @M9@
2 NOTE Abdank
2 _PRIM Y
|
+-------+----------+--------+----------+------------+-----------------------------------------+
1 row in set (0.00 sec)
mysql>
Highlight Status View - Inconsistent
Logged In: YES
user_id=1198414
Originator: NO
It looks as if the Import of the GEDCOM created by PAF isn't handling media correctly.
Can you post an extract of the incoming GEDCOM that matches the person for whom you posted the screen shot? Please post also an extract of the GEDCOM in your "index" directory that matches the same person and the media object?
Logged In: YES
user_id=1150075
Originator: YES
This is the INDI from the original PAF file that created the PGV database:
0 @I1553@ INDI
1 NAME Jozef /Magnuski/
2 SURN Magnuski
2 GIVN Jozef
1 SEX M
1 _UID F99D78517AC2B948B95A1CC3962660701AEF
1 NOTE Skorowidz mieszkancow Warszawy
2 CONT Obywatel Warszawy zamieszkaly w Warszawie w roku 1854
1 SOUR @S349@
2 DATA
3 TEXT Jozef Magnuski, cyrkul 3, ulica Dluga
3 DATE 1854
1 CHAN
2 DATE 7 Apr 2008
3 TIME 21:32:30
1 OBJE
2 FORM bmp
2 FILE C:\My Documents\Herby\Abdank.bmp
2 TITL
2 NOTE Abdank
2 _SCBK Y
2 _PRIM Y
2 _TYPE PHOTO
2 _SSHOW Y
This is the same record from the current "index" phpgedview file:
0 @I1553@ INDI
1 NAME Jozef /Magnuski/
2 SURN Magnuski
2 GIVN Jozef
1 SEX M
1 _UID F99D78517AC2B948B95A1CC3962660701AEF
1 NOTE Skorowidz mieszkancow Warszawy
2 CONT Obywatel Warszawy zamieszkaly w Warszawie w roku 1854
1 SOUR @S349@
2 DATA
3 TEXT Jozef Magnuski, cyrkul 3, ulica Dluga
3 DATE 1854
1 CHAN
2 DATE 7 Apr 2008
3 TIME 21:32:30
1 OBJE @M9@
2 NOTE Abdank
2 _PRIM Y
This is the M9 entry:
0 @M9@ OBJE
1 FILE media/Abdank.bmp
2 FORM bmp
3 TYPE photo
2 TITL Abdank Coat of Arms
1 _PRIM N
1 _THUM N
1 NOTE Abdank
1 _SCBK Y
1 _TYPE PHOTO
1 _SSHOW Y
1 _UID 09BF701E115F9E4455E624E23F706701DB2A
1 CHAN
2 DATE 04 MAY 2008
3 TIME 15:57:46
2 _PGVU hankm
Note: The _PRIM state of M9 has been changed repeatedly.
I don't know what state it was in originally after GED import.