Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
File Uploader Causes Fatal Error After Update
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 14, 2016 - 3:49 pm

After updating to WP v.4.5, SP v.5.6.5, & File Uploader with Plupload v.4.3.3 I get the following Fatal Error when trying to save a post:

Fatal error: Call to undefined function mb_convert_encoding() in /home/tripawds/public_html/wp-content/sp-resources/forum-plugins/plupload/library/sp-plupload-components.php on line 980

I tested with two user accounts, both with and without upload permissions.

Error occurs without selecting any files to upload

I Reset Users Plugin Data Cache.

I Reset Combined CCS Cache and Script Cache.

Error Logs only reveal the same thing...

[14-Apr-2016 13:35:56 America/Denver] PHP Fatal error:  Call to undefined function mb_convert_encoding() in /home/tripawds/public_html/wp-content/sp-resources/forum-plugins/plupload/library/sp-plupload-components.php on line 980

Deactivating File Uploader and Uploads Viewer allow user to post/reply without error.

Any suggestions for further troubleshooting are greatly appreciated. Thanks!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 14, 2016 - 3:56 pm

The function the error states is undefined is a PHP function - mb_convert_encoding(). According to my documentation the multi-byte library - to which this functions belongs - has been around for quite some time and is usually supplied as standard.

Could you ask your host if, for some reason, your php does not contain it? And, I suppose... if not then why not and can it be added?

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 14, 2016 - 4:11 pm

Thanks for the quick reply.

The mb library does appear to be installed. After turning ON mbstring.encoding_translation in our PHP config (off by default), the error persists when saving a post.

I've forwarded your note to my server manager. Any other suggestions?

Screen-shot-2016-04-14-at-3.07.46-PM.pngImage Enlarger

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 14, 2016 - 4:49 pm

Is that all that is needed for multi-byte handling? I suppose it is a daft question to ask but you did reboot your server after the change I assume? Yes?

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 15, 2016 - 1:31 pm

Yellow Swordfish said
According to my documentation the multi-byte library - to which this functions belongs - has been around for quite some time and is usually supplied as standard.

Supplied yes, but not installed by default.

FYI: We are no longer seeing the Fatal Error with SP Uploads and Upload Viewer plugins both activated. Yay!

Now, for the record—and anyone else encountering this issue—a few notes from my server manager...

"Checking the EasyApache configuration settings for PHP that is currently installed, it appears that Mbstring is not included. It's not a default setting to include it (in other words, it needs to be chosen in the PHP configuration)."

and...

"When you do a recompile of Apache/PHP, there are many options preselected in this system. That one is listed. Just not pre-selected. You should tell him that we use the Cpanel/WHM system."

Thanks again for pointing out the mbstring requirement!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 15, 2016 - 1:33 pm

Good news. You will be able to use Emoji's now as well 😉 What a bonus!

andy-signature.png
YELLOW
SWORDFISH
Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
Apr 15, 2016 - 6:25 pm

Jim, thanks for that tip.

It was not too bad of a job to recompile Apache with MBstring applied, which fixed my problem. wink

For anyone running WHM / cPanel on a self managed server here is quick compile options.

EasyApache 101:

1. You can access EasyApache by going to the Software section of WHM and clicking on EasyApache. Command-line folks can just use /scripts/easyapache.

2. If you're asked to update, do so then come back to this screen. Updates often contain enhancements to allow EasyApache to support updated technologies.

3. On the first screen ("1. Profile"), select "Previously Saved Config (** DEFAULT **)" and then click on "Start customizing based on profile."

This setting will display your current settings throughout the rest of the EasyApache interface. This way you don't need to lookup what your current configuration is, you just change the items you want to have changed (e.g. adding mbstring support to PHP)

4. Continue clicking "Next" until you get to "5. Short Options List" then click "Exhaustive Options List" at the bottom of the page.

5. Under PHP, check the checkbox for "Mbstring" then click "Save and Build"

6. Follow any further on-screen instructions that appear.

The cool thing about EasyApache is that it will ensure everything will work before attempting to apply it to your server. In the relatively rare event that something fails, your current configuration is restored and you will be prompted to allow us to investigate what happened so we can resolve the issue.

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 15, 2016 - 6:31 pm

FidoSysop said
For anyone running WHM / cPanel on a self managed server...

Roger that, thanks for sharing the details!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 15, 2016 - 8:55 pm

glad its resolved...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17366
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626