• I’m getting the below error on the page with the download form, with EBD 5.1.7:

    Fatal error: Call to undefined function mb_convert_encoding() in /public_html/wp-content/plugins/email-before-download/includes/class-email-before-download-form.php on line 35

Viewing 12 replies - 1 through 12 (of 12 total)
  • I’m getting this too.

    PHP Version 5.6.30

    I just upgraded from Easy Apache 3 to 4 and it appears to have fixed the problem for me.

    This seems to have some further relevant information: https://stackoverflow.com/questions/17204437/fatal-error-call-to-undefined-function-mb-detect-encoding

    I had to install php-mbstring for it to work again.
    This happened with another package the other day… are they changing the dependencies?

    Plugin Author mandsconsulting

    (@mandsconsulting)

    I can’t speak for the other package, but we changed over to this function to avoid injecting meta tags into the document. There are some browsers that don’t know how to handle errant meta tags. I am currently looking for a better way to handle this issue. I’m glad you figured out how to fix the error.

    I’m getting these issues:

    Warning: DOMDocument::loadHTML() expects parameter 2 to be long, string given in /home/content/65/2776665/html/wp-content/plugins/email-before-download/includes/class-email-before-download-form.php on line 35

    Fatal error: Call to a member function getAttribute() on null in /home/content/65/2776665/html/wp-content/plugins/email-before-download/includes/class-email-before-download-form.php on line 37

    Any ideas on how to fix it?

    I’m also getting these issues:

    Warning: DOMDocument::loadHTML() expects parameter 2 to be long, string given in /home/content/65/2776665/html/wp-content/plugins/email-before-download/includes/class-email-before-download-form.php on line 35

    Fatal error: Call to a member function getAttribute() on null in /home/content/65/2776665/html/wp-content/plugins/email-before-download/includes/class-email-before-download-form.php on line 37

    Looking forward for help.

    @manconsulting Any word on the issue myself and @ovxsolutions is having?

    The same error as the above colleagues is apprehending for me.

    Warning: DOMDocument::loadHTML() expects parameter 2 to be long, string given in /home/valeriapersonal/public_html/wp-content/plugins/email-before-download/includes/class-email-before-download-form.php on line 35

    Fatal error: Call to a member function getAttribute() on a non-object in /home/valeriapersonal/public_html/wp-content/plugins/email-before-download/includes/class-email-before-download-form.php on line 37

    @hashtagandre @ovxsolutions Hi guys, are you still having the same problem?

    yes. still out

    WraithKenny

    (@wraithkenny)

    WraithKenny

    (@wraithkenny)

    email-before-download/includes/class-email-before-download-form.php @ Line 35

    $encoded = function_exists(‘mb_convert_encoding’)
    ? mb_convert_encoding($raw, ‘HTML-ENTITIES’, ‘UTF-8’)
    : htmlspecialchars_decode(utf8_decode(htmlentities($raw, ENT_COMPAT, ‘utf-8’, false)));
    $form->loadHTML( $encoded );

    It makes the FATAL ERROR go away. Haven’t tested it beyond that tho. (Wish I knew how to format code highlighting.)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Fatal error on form page’ is closed to new replies.