• Resolved estudiollum

    (@estudiollum)


    When meow gallery is activated the page doesn’t load.
    Error:
    [05-Oct-2017 17:50:32 UTC] PHP Fatal error: Call to a member function getAttribute() on a non-object in /home/estud450/public_html/wp-content/plugins/meow-gallery/mgl_run.php on line 97
    [05-Oct-2017 17:50:32 UTC] PHP Warning: DOMDocument::loadHTML() expects parameter 2 to be long, string given in /home/estud450/public_html/wp-content/plugins/meow-gallery/mgl_run.php on line 93

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Your PHP version is too old for the plugin.

    This could do the trick. Can you please try to go in the mgl_run.php file and replace the line:

    $dom->loadHTML( $div, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );

    by

    if ( PHP_VERSION_ID > 50400 )
      $dom->loadHTML( $div, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );
    else
      $dom->loadHTML( $div, 'LIBXML_HTML_NOMMVL]ED' );

    Let me know if it helps

    • This reply was modified 7 years, 5 months ago by Jordy Meow.
    Thread Starter estudiollum

    (@estudiollum)

    I tried this and it did not work.
    I also tried updating PHP to 5.6.30 and it also did not work.

    Any other solution?

    Warning: DOMDocument::loadHTML() expects parameter 2 to be long, string given in /home/estud450/public_html/wp-content/plugins/meow-gallery/mgl_run.php on line 94

    Fatal error: Call to a member function getAttribute() on null in /home/estud450/public_html/wp-content/plugins/meow-gallery/mgl_run.php on line 100

    Thanks

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hello,

    Sorry, that was not the right answer that I gave you.

    Can you now replace:

    if ( PHP_VERSION_ID > 50400 )
      $dom->loadHTML( $div, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );
    else
      $dom->loadHTML( $div, 'LIBXML_HTML_NOMMVL]ED' );

    by:

    if ( PHP_VERSION_ID > 50400 )
      $dom->loadHTML( $div, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );
    else
      $dom->loadHTML( $div, LIBXML_HTML_NODEFDTD );

    That should work better, maybe ??

    Thread Starter estudiollum

    (@estudiollum)

    Hello,

    Same issue.

    I was interested in the pro version, however will need to resolve this problem before. =(

    regards,

    Renato

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @estudiollum, can you contact me here: https://meowapps.com/contact/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page doesn’t load when meow gallery is activated’ is closed to new replies.