Menu

Media not displayed properly

Help
2010-05-03
2013-05-30
  • Doug Laidlaw

    Doug Laidlaw - 2010-05-03

    More specifically, my media thumbnails show up on the individual's page, but elsewhere, only the media icon is visible.  That includes the Media List from the menu bar.  No filenames show in the Media List.  If I click on an icon in the Media List, I get an individual entry with another icon and the message:

    ERROR 8: Undefined offset: 20
    0 Error occurred on line 287 of file medialist.php

    If I click on THAT icon, the image comes up.  The relevant code block (starting at 286) is:

    for ($i=0; $i<$count; $i++) {
    $media = $sortedMediaList;
    $isExternal = isFileExternal($media);
    $imgsize = findImageSize($media);
    $imgwidth = $imgsize+40;
    $imgheight = $imgsize+150;
    $name = trim($media);
    // $name1 = addslashes($media);
    $showFile = PGV_USER_CAN_EDIT;

    Doug.

    BTW: I can't view the Wiki.  I get a 503.

     
  • Stephen Arnold

    Stephen Arnold - 2010-05-03

    Doug, YES, there are 3 recent posts on the wiki and you must currently use the google cache if you wish to view.

    What version? Using media firewall? What settings? Thumbs in MFW or not? Media activated? Show thumbanils elsewhere activated? Finally, did you check permissions for media folder, it sub-folders and contents and the same for MFW if you are using it?

    Stephen

     
  • Doug Laidlaw

    Doug Laidlaw - 2010-05-03

    Latest version 4.2.3.  Media firewall? What's that?  There seem to be no media-specific settings in the config screens.  I am taken to the first-time config with no quick exit: I have to back out all the way.  I have just upgraded and kept my original config.php.  I did check and change permissions on the media folder, but it made no difference.  Many of the thumbs pre-date the ability of PGV to create its own.

    After the upgrade, I re-imported my Gedcoms and got a batch of "bad Gedcom" errors.  No details of why.  The whole thing worked without that step (except the media problem.)  Currently, filenames etc are showing in the media list, but still no images.  Using MySQL; perhaps the thumbs for individuals are matched up some other way?

     
  • Doug Laidlaw

    Doug Laidlaw - 2010-05-03

    Thumbs are visible in pedigree view and family view.  Perhaps thumbs O.K. but full-size no?

     
  • Stephen Arnold

    Stephen Arnold - 2010-05-03

    Doug
    1) Not the site CONFIG -> the GEDCOM configuration contains all the multimedia configuration options
    2) How did you answer upon import the question KEEP MEDIA LINKS?  No. is the correct answer if you upgraded from PGV.
       If you answered yes, then go back and reimport again. This time, answer NO.
    3) What are the permissions on the Media Folder? CHMOD 777 ?
    -Stephen

     
  • Doug Laidlaw

    Doug Laidlaw - 2010-05-04

    2) I did say YES to that one.  I have just reimported with NO, and that emptied my Multimedia list. 
    3) I ran "Fix permissions."  Everything was O.K., but my media/thumbs directory had no images.  That may have been due to a strange permissions problem I had during the upgrade.  I created a backup with the system then deleted everything with Putty and installed a fresh program.  Putty said that it could not remove the index/ directory.  But multimedia/ was O.K.
    I have now uploaded the thumbs.  The Media List can now find 43 media objects, but every one gives
    "ERROR 8: Undefined offset: 0
    0 Error occurred on line 287 of file medialist.php"

    The Undefined offset increases by 1 for each link.  It sounds as though that is in the database and should be fixable.
      -Doug.

     
  • Doug Laidlaw

    Doug Laidlaw - 2010-05-04

    I emptied both my media tables and uploaded the ones from my local copy. After a reload, media now works.

    One good thing about the program: when it couldn't find any media at all, there was no visible sign that it should have.

    Doug.

     
  • Stephen Arnold

    Stephen Arnold - 2010-05-04

    Doug
    Glad to hear its now operating correctly. Your post was good in that it showed that:
    1) problems like this are not usually a software coding issue, but usually admin/user error, and
    2) it ALWAYS pays to make take the time to have plenty of redundancy - BACKUP and then BACKUP again so you can restore to previous conditions and recover from step 1.
    -Stephen

     
  • Doug Laidlaw

    Doug Laidlaw - 2010-05-04

    Thanks for your guidance.  I expected it to be a config issue, but to date, no upgrade has run smoothly for me.  That is why I wanted to read the wiki first.  The symptoms were confusing, but many of my images aren't much bigger than thumbnails, and were probably being used instead.

    Doug.

     

Log in to post a comment.