Skip to content

Upgrading from Magento 1.9 to OpenMage 19.4.23 with PHP 8.1 corrupts HTML templates #3174

Closed
@djixas

Description

@djixas

Preconditions (*)

  1. Magento 1.9.4.5
  2. OpenMage 19.4.23
  3. PHP 8.1

Steps to reproduce (*)

  1. Take any Magento 1.9 install and upgrade to OpenMage, then enable PHP 8.1, this might also work on default OpenMage, I am not sure
  2. Now try to place an order, click admin forgot pass or anything else, so you get email from TEMPLATES

Expected result (*)

  1. It should display emails correctly

Sample "Test" email displays this content with PHP 7.4:

Name:
Email:
Telephone:

Comment: This is a test template email - your email settings are correct!

Actual result (*)

  1. [Screenshots, logs or description]
    mail

Sample "Test" email displays this content with PHP 8.1:

=0A=0AName: =0AEmail: =0ATelephone: =0A=0AComment: This is a test template email - your email settings are correct!

Tested also with https://github.com/icecubenz-open-mage/Icecube_CustomEmailServer just to be safe, same issue, but the issue disappears if I downgrade to PHP 7.4, then email templates work properly. And it's for all emails, forgot admin pass, etc. Already tried reloading all email templates, same issue.

PHP ini settings / modules are identical.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions