Support » Plugin: Gallery Manager » PHP version incompatibility in 1.6.37 version of Gallery Manager

  • Resolved mponiek

    (@mponiek)


    In the version 1.6.37 of Gallery Manager, in the fancy-gallery/classes/core.php file, line 67, the usage of DOMDocument has been added.

    I am getting one warning and one fatal error because of this update:
    1) Warning, Line 68:
    E_WARNING: DOMDocument::loadHTML() expects parameter 2 to be long, string given

    2) Fatal error, Line 70:
    Fatal Error (E_ERROR): Cannot use object of type DOMNodeList as array
    $link = $html->childNodes[1];

    Based on my research, DOMNodeList implements ArrayAccess as of PHP 5.6.3, meaning only after this PHP version you can access childNodes as an array.

    In prior versions you’ll need to use DOMNodeList’s item() method to access a specific index, e.g. $html->childNodes->item(1).

    Based on the above update, people who are still using 5.5.x versions of PHP cannot use properly the plugin anymore.

    Can you please either revert the above update or use a different method compatible with prior version of PHP?

    Best Regards
    Ioannis Fotiadis

Viewing 1 replies (of 1 total)
  • Plugin Author Dennis

    (@dhoppe)

    PHP 5 support will be finally dropped on 31 Dec 2018. Please update as soon as possible to the latest PHP version.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP version incompatibility in 1.6.37 version of Gallery Manager’ is closed to new replies.