Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

PSA: 7.3 compatibility issues (saving field meta) #380

Description

@Mosnar

This is just a warning and reference for people searching for this issue in the future. One of our servers automatically upgraded to PHP 7.3 due to the version constraint being set incorrectly. Craft compatibility aside, this causes some pretty weird behavior with SEOmatic. The primary symptom I observed was that SEO meta field data would not save (though the overrides were working, no errors thrown).

I suspect this has something to do with string sanitation parameters having changed in 7.3; however, I didn't look into it very much since we weren't supposed to be on 7.3 anyway.

If you're using services like Heroku, make sure you set your PHP version constraint to this to avoid automatic upgrades to 7.3:
"php": "~7.2.0",

This package is deprecated and unmaintained, so I'm just posting this to help save the next person some time.

Activity

  1. darylknight commented on May 3, 2019

    @darylknight

    Yep, thanks mosnar. I'm maintaining an old Craft 2 site. My local Valet installation runs on PHP 7.3, and I can't see the front end of this site - getting this error:

    Property "Craft\Seomatic_MetaFieldModel.0" is not defined.
    
  2. ow commented on May 22, 2019

    @ow

    Ah crap, I'm affected by this too—I haven't been able to migrate yet and this kinda leaves me stranded

  3. jamesmacwhite commented on Jan 5, 2021

    @jamesmacwhite

    I'm aware this is old issue, but our upstream provider intends to remove PHP 7.2 soon. I deployed our Craft 2 (latest version) site on PHP 7.3.21 to test things and I don't seem to have any issues saving entries and no issues on the front end. No PHP errors related to SEOMatic and it's meta field. Either I'm not hitting the right issue with my environment or this magically got fixed somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions