WP-SimpleViewer » How-to and Troubleshooting

I cannot read the gallery's xml file

(4 posts)
  • Started 1 year ago by persephassa
  • Latest reply from Markus

Tags:


  1. this one: http://persephassa.com/wp-content/photos/mygallery/gallery.xml

    something about style? i'm not sure what to do.
    i did the chmod 777 and turned off php safe mode with an ini &
    was so excited when it finally uploaded the photos and made the xml file but i'm not sure what to do about this one. i looked through this forum but i'm feeling lost...
    any suggestion is much appreciated!!

    it is the latest version of word press with a theme from graph paper press and the latest simple viewer.

    Posted 1 year ago #
  2. It helped me, but I'm not sure if it would work for you.. Try the development version: http://wp-simpleviewer.fuggi82.de/my-downloads/click.php?id=3

    Posted 1 year ago #
  3. sorry for bothering, i searched more and this bit of code from an earlier post fixed my problem. hooray!

    I'm not a coder, but I like to mess around with things I can break so...
    I took a look at wp-simpleviewer.php. The error is triggered here:

    //read the xml file and get the variables
    $wp_simpleviewer_xml_file_data = @file_get_contents( $wp_simpleviewer_xmlfile_url );
    if ( $wp_simpleviewer_xml_file_data == '' ) {
    wp_simpleviewer_load_textdomain();
    $wp_simpleviewer_gallery_output = __('I cannot read the gallery\'s xml file: ', $wp_simpleviewer_textdomain).$wp_simpleviewer_xmlfile_url.'
    '.__('Please check that the gallery\'s files have been created on the admin pages!', $wp_simpleviewer_textdomain).'
    ';
    }

    By changing the first if to
    $wp_simpleviewer_xml_file_data == '1'
    I've disabled the error checking for the XML file, and the gallery now works. I don't know why it thinks $wp_simpleviewer_xml_file_data == '' is true in the original code.

    Posted 1 year ago #
  4. As Mizu said and as I already said several times: USe the developmentversion in case you see this workarround: http://wp-simpleviewer.fuggi82.de/my-downloads/click.php?id=3

    The workarround you used above somehow works but you will not be able to use all features correctly

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.