WordPress.org

Ready to get started?Download WordPress

Forums

H Gallery
[resolved] SOLVED allow_url_fopen / PHP permissions (2 posts)

  1. Markus Steiger
    Member
    Plugin Author

    Posted 1 year ago #

    H-Gallery needs allow_url_fopen enabled.
    Your provider can change this. If he want.

    Thanks to Stephan!

    ... I have a solution for the problem if you cannot get access to allow_url_fopen

    Replace line 50 in h-gallery.php

    $photos = simplexml_load_file($photo_feed);

    by

    $ch = curl_init($photo_feed);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $xml_raw = curl_exec($ch);
    curl_close($ch);
    $photos = simplexml_load_string($xml_raw)

    as suggested in

    http://www.antary.de/2011/05/26/php-curl-als-alternative-fuer-allow_url_fopen/

    Best regards
    Stephan

    http://wordpress.org/extend/plugins/h-gallery/

  2. Markus Steiger
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic