• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Really strange character php encoding errors

GlennT

Basic Pleskian
I recently migrated a bunch of websites from cpanel to plesk Onyx and I'm seeing strange errors where characters in an include or require statement are being rewritten:

For example:

/public_html/wp-content/plugins/wordfence/lib/wfUtils.php on line 531\nPHP message: PHP Warning: include(): Failed opening 'yfIPWhitelist.php' for inclusion (include_path='.:/opt/plesk/php/7.1/share/pear') in

The y should been a w

I've seen this exact same problem on a few sites but most seem to be OK.

I believe the websites were running on php 5.6 using FCGI on old cpanel server. On migration, they switched to 7.2 automatically and I changed them to run under PHP-FPM.

To fix this error, I went directly into these files in some cases and deleted and then re-entered the same character and saved and this seems to fix issue.

I also dropped php version from 7.2 to 7.1 and switched to FCGI and this seems to prevent reoccurence or same problems from reoccuring on some other php files.

Has anyone seen this kind of problem before and know what causes it?

I've never seen this problem before and it's vexing!

Thanks
G
 
Interesting. I checked my other server which has been running for awhile where I recently did single plesk to plesk migration and see same error:

WARNING: [pool ..................com] child 3311 said into stderr: "NOTICE: PHP message: PHP Warning: include(): Failed opening 'vfIPWhitelist.php' for inclusion (include_path='.:/opt/plesk/php/7.2/share/pear') in /var/www/vhosts/............../httpdocs/wp-content/plugins/wordfence/lib/wfUtils.php on line 531"

The v should be a w

It was running on php 5.x php fcgi on old server and switched to 7.2 php fpm on new server.

I've switched it to FCGI on new server and left it at same PHP 7.2 version. I'm waiting to see if error returns.

This may be Plesk migration related and, going from FCGI to PHP FPM.
 
Back
Top