WordPress.org

Ready to get started?Download WordPress

Forums

SpeakUp! Email Petitions
[resolved] CSV - illegal call (2 posts)

  1. arbiebrown
    Member
    Posted 2 years ago #

    When I click the 'download as csv' button - all appears to work fine, however all that is contained within the file is:

    <b>Fatal error</b>: Call to undefined function mb_convert_encoding() in <b>/home/mybrgco/public_html/wispa.it/wp-content/plugins/speakup-email-petitions/includes/csv.php</b> on line <b>106</b><br />

    I'm sure there is probably an easy fix for this - would you let me know what it is please?

    Thanks

    http://wordpress.org/extend/plugins/speakup-email-petitions/

  2. Kreg Wallace
    Member
    Plugin Author

    Posted 2 years ago #

    You are probably missing the mbstring module from your PHP installation. When the CSV file is created, this module is used to convert the text encoding into a format that MS Excel prefers.

    A workaround is to open /includes/csv.php in the plugin's folder and change line 106 from this:
    echo chr( 255 ) . chr( 254 ) . mb_convert_encoding( $csv, 'UTF-16LE', 'UTF-8' );

    to this:
    echo $csv;

    Now, when you download the CSV file, you'll need to change its file extension from .csv to .txt before opening it in Excel.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic