• Resolved cmdavidson

    (@cmdavidson)


    I have a bilingual English/French website using WPML. Ever since Pods 2.7.31, every time I try to update the Pods plugin, I get a PHP warning on the front end of the site just on the French side. The update also messes up the formatting of the header on the French side. So far, I’ve just rolled the Pods plugin back to 2.7.31 and hoped that with the next update the problem will be fixed, but it hasn’t.

    These are the errors I’m getting on the front end for all versions above 2.7.31 (this is a staging site):
    Warning: Invalid argument supplied for foreach() in /home/customer/www/[REMOVED]/public_html/wp-content/plugins/pods/components/I18n/I18n.php on line 484
    Warning: Invalid argument supplied for foreach() in /home/customer/www/[REMOVED]/public_html/wp-content/plugins/pods/components/I18n/I18n.php on line 484

    The custom post type functionality still works fine.

    I have cleared the Pods cache, site cache, and browser cache.

    WP 6.1.1
    PHP 7.4.33
    All other plugins and themes up-to-date

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @cmdavidson

    Seems like you’ve found a bug and I’ve created a patch so this will be fixed a.s.a.p.

    https://github.com/pods-framework/pods/pull/7004

    Let me know if the patch works for you as well!

    Cheers, Jory

    Thread Starter cmdavidson

    (@cmdavidson)

    Thank you! I will let you know.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Fixed in 2.9.12

    Thread Starter cmdavidson

    (@cmdavidson)

    Thanks for the fix. I’ve just updated to 2.9.12.2 and the PHP errors are gone. However, now the translation is broken. The post titles on the French side are showing English.

    The post title here should be “Emplois”:
    https://comnet.conniedavidson.ca/fr/emplois/coordinateurtrice-dentrepot/

    I’ve checked the Translation tab for the Jobs post type, and the translation is set properly there, but not showing on the front end.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @cmdavidson

    Hmm, that translation has nothing to do with the error you’ve posted so I think another update/change has created this issue.

    Did you update something else as well?

    Cheers, Jory

    Thread Starter cmdavidson

    (@cmdavidson)

    Hi Jory,

    Yes, I updated a bunch of other plugins. I’ve tried adjusting a few things in WPML with no luck.

    I don’t know if this helps, but when I go to the Pods translation tab for the Jobs pod and re-save it, then both English and French job posts show the French label (Emplois). But then if I just re-save it again, they both go back to English (Jobs).

    Connie

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @cmdavidson

    Sorry for the silence here. I haven’t found a way to reproduce this issue yet. Could you provide me with steps to consistently reproduce this issue on a clean installation?

    Cheers, Jory

    Thread Starter cmdavidson

    (@cmdavidson)

    Hi Jory,

    Unfortunately, I don’t know exactly how to reproduce it. All I know is that it started happening after the update from Pods 2.7.31 to 2.9.12.2. I believe the only other thing I updated at that time was WPML. But I’ve checked the WPML String Translation multiple times, and WPML is not responsible for the translation of the pod label (“Jobs”).

    Today I updated to Pods 2.9.13, but no change. I tried switching the theme to 2023, but it doesn’t show the page title so I can’t tell if that fixes it or not. I also deactivated all plugins other than Pods, Posts Table Pro, the theme core plugin, and WPML, but the problem was still there.

    The only change after all of that is that now both English and French sides are stuck on the French title (Emplois) instead of the English.

    I’m happy to give you temporary access to the site if that is helpful.

    Connie

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @cmdavidson

    Sharing login information is not allowed on the WordPress forums.

    Besides, if you cannot reproduce it then it will be very hard for use to find the actual issue.
    Can you downgrade Pods until it seems fixed? (Or update minor versions from 2.7.31 until the problem starts). When we have a version where the problem starts it’s easier for us try and find the cause.

    Cheers, Jory

    Thread Starter cmdavidson

    (@cmdavidson)

    Hi Jory,

    I downgraded to 2.7.31 and, as before, everything is working properly. I looked for the next version here in Advanced View, but the next one available is 2.8.23 (although I see from the changelog that there are many other versions in between). I went ahead and upgraded to 2.8.23 and the translation issue appears (English post title on both English and French sides).

    Is there a place I can get the other versions between 2.7.31 and 2.8.23 to test out where the problem starts?

    Connie

    Thread Starter cmdavidson

    (@cmdavidson)

    Hi – Just checking in again. Where can I find the Pods versions between 2.7.31 to 2.8.23?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @cmdavidson

    All versions can be found on GitHub: https://github.com/pods-framework/pods/releases

    Cheers, Jory

    Thread Starter cmdavidson

    (@cmdavidson)

    Hi Jory,

    I have an update for you. The issue with the translation of the post type label started in Pods version 2.8. And I noticed another bug that showed up in that version. The More Fields box in the post editor is missing from the French job posts. It’s there in the English editor, just not the French.

    Connie

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @cmdavidson

    Thanks for letting me know!

    Then this is indeed a bug that started once we started using React.
    Related:
    https://github.com/pods-framework/pods/pull/6155
    https://github.com/pods-framework/pods/pull/6095

    Could you create a GitHub issue where you provide the package and all other steps in order to recreate your exact situation so I can debug/fix this issue a.s.a.p.?

    Please tag me in the issue report and reference to the first PR: https://github.com/pods-framework/pods/pull/7004

    Cheers, Jory

    Thread Starter cmdavidson

    (@cmdavidson)

    Sure, but what is the package?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Front end error after Pods 2.7.31’ is closed to new replies.