- summary: Pending change to media object causes errors --> 4.1 B4 (889) Pending change to media object causes errors
A user with "edit" rights has made a change to a Media object attached to a living person. It's a simple change to the object's title.
When that user logs out, the Index page's Random Media block shows these errors:
ERROR 8: Undefined index: XREF
0 Error occurred on line 712 of file functions_mediadb.php in function get_medialist
1 called from line 60 of file random_media.php in function print_random_media
2 called from line 1 of file index.php(406) : eval()'d code in function eval
3 called from line 406 of file index.php
Notice: Undefined index: XREF in /(webroot)/PGVSVN/includes/functions_mediadb.php on line 712
ERROR 8: Undefined index: EXISTS
0 Error occurred on line 74 of file random_media.php in function print_random_media
1 called from line 1 of file index.php(406) : eval()'d code in function eval
2 called from line 406 of file index.php
Notice: Undefined index: EXISTS in /(webroot)/PGVSVN/blocks/random_media.php on line 74
ERROR 8: Undefined index: FILE
0 Error occurred on line 82 of file random_media.php in function print_random_media
1 called from line 1 of file index.php(406) : eval()'d code in function eval
2 called from line 406 of file index.php
Notice: Undefined index: FILE in /(webroot)/PGVSVN/blocks/random_media.php on line 82
ERROR 8: Undefined index: THUMB
0 Error occurred on line 84 of file random_media.php in function print_random_media
1 called from line 1 of file index.php(406) : eval()'d code in function eval
2 called from line 406 of file index.php
Notice: Undefined index: THUMB in /(webroot)/alice/PGVSVN/blocks/random_media.php on line 84
When the user disconnects from the server and then calls up the Index page again (before logging in), things are normal. Things are also normal after the Edit user logs in -- the Media change shows as it should.
I'd guess that when a Media object is edited, it should be removed from the cached Media list.