Menu

#1298 4.1 B4 (889) Pending change to media object causes errors

v4.0.2
open
nobody
None
5
2008-11-17
2007-03-03
Gerry Kroll
No

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.

Discussion

  • Gerry Kroll

    Gerry Kroll - 2007-03-03
    • summary: Pending change to media object causes errors --> 4.1 B4 (889) Pending change to media object causes errors
     
  • Greg Roach

    Greg Roach - 2008-11-17
    • milestone: --> v4.0.2
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.