Menu

Referencing text media

Help
Anonymous
2010-11-02
2013-05-30
  • Anonymous

    Anonymous - 2010-11-02

    Following issue:

    Uploading a text file (.txt) as a media file (for example: M97) works fine.
    But when I try to refer to this medium in a record (for example, an addres record in a family record), I get the following error:

    ERROR 2: include(modules/lightbox/lb_config.php): failed to open stream: No such file or directory
    0 Error occurred on line 672 of file functions_print_facts.php in function print_media_links
    1 called from line 672 of file functions_print_facts.php in function print_media_links
    2 called from line 479 of file functions_print_facts.php in function print_fact
    3 called from line 478 of file functions_charts.php in function print_family_facts
    4 called from line 170 of file family.php
    Warning: include(modules/lightbox/lb_config.php): failed to open stream: No such file or directory in /var/www/phpgedview/includes/functions/functions_print_facts.php on line 672
    ERROR 2: include(): Failed opening 'modules/lightbox/lb_config.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear')
    0 Error occurred on line 672 of file functions_print_facts.php in function print_media_links
    1 called from line 672 of file functions_print_facts.php in function print_media_links
    2 called from line 479 of file functions_print_facts.php in function print_fact
    3 called from line 478 of file functions_charts.php in function print_family_facts
    4 called from line 170 of file family.php
    Warning: include(): Failed opening 'modules/lightbox/lb_config.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/phpgedview/includes/functions/functions_print_facts.php on line 672
    ERROR 8: Undefined variable: LB_URL_WIDTH
    0 Error occurred on line 677 of file functions_print_facts.php in function print_media_links
    1 called from line 479 of file functions_print_facts.php in function print_fact
    2 called from line 478 of file functions_charts.php in function print_family_facts
    3 called from line 170 of file family.php
    Notice: Undefined variable: LB_URL_WIDTH in /var/www/phpgedview/includes/functions/functions_print_facts.php on line 677
    ERROR 8: Undefined variable: LB_URL_HEIGHT
    0 Error occurred on line 677 of file functions_print_facts.php in function print_media_links
    1 called from line 479 of file functions_print_facts.php in function print_fact
    2 called from line 478 of file functions_charts.php in function print_family_facts
    3 called from line 170 of file family.php
    Notice: Undefined variable: LB_URL_HEIGHT in /var/www/phpgedview/includes/functions/functions_print_facts.php on line 677

    Anyone knows how to correct this? Is it a PGV bug? or a lightbox bug?

     
  • Anonymous

    Anonymous - 2010-11-02

    this problem concerns PGV version 4.2.1

     
  • Anonymous

    Anonymous - 2010-11-03

    Correction: it seems that I am having this problem with PGV 4.2.3 after all. The 4.2.1 I was refering to was taken from the welcome page, which stated: gedcom created with 4.2.1. But in the admin page, it clearly states 4.2.3.

     
  • Anonymous

    Anonymous - 2010-11-03

    okbigkid, If I link it like you did on your site, there is no problem. But when I add a media object to, for example, an adress, It shows the error on the personal facts tab.

     
  • Stephen Arnold

    Stephen Arnold - 2010-11-03

    It is most helpful when we don't have to guess at answers. If you provide a more thorough recap of what you did and what you try to achieve, you'll get a more explicit response.

    That said, I see no problems with the same file as a Level 2 media object:
    http://pgv.myarnolds.com/individual.php?pid=I202&ged=Arnold.ged   at the bottom of this record.

    -Stephen

     
  • Anonymous

    Anonymous - 2010-11-03

    Thanks, okbigkid. I should have clearly stated a scenario from the beginning.

    Meanwhile, I resolved the issue.
    It seemed that the file refered to in the error message, $PGVHOME/modules/lightbox/lb_config.php was missing.
    I copied the file lb_defaultconfig.php to lb_config.php, which seems to do the trick.
    Note that the file lb_config.php is also missing in the lightbox module download zip, that I just downloaded. I may have been mentioned in the installation instructions of lightbox (which I did not find).

    Thanks!

     

Log in to post a comment.