-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Pods 2.8 Bug] testing on site using WPML gives error #5945
Comments
@sc0ttkclark |
I think that will not solve the current problem and will make hundreds of WPML webs out there unable to upgrade to 2.8. A major change like that will make sense in a 3.0 release with sufficient plan to provide the alternative and a migration plan, but just removing WPML support from 2.8 seems to me like a bad movement for this project. |
Hi @carlosrovira |
Hi @JoryHogeveen , ok thanks. In that case, if it's a refactor to be better handled, then that will be cool. But maybe that will mean it could be possible for 2.8 timeframe?, or we'll need to wait to update? |
@JoryHogeveen that pathway sounds good to me |
Hi @sc0ttkclark and @JoryHogeveen, please, if you can share whatever plan or time frame that will be good to know what to expect. If I need to freeze in 2.7 for sometime or I can expect to try 2.8 for WPML support. Thanks for your support! |
Hi @carlosrovira
Cheers, Jory |
Hi, yes, in that page I have 2 shortcodes: and
Then HTH Carlos |
If Cheers. Jory |
Hi Jory, I'm understand correctly that change 1 of the pods above to this:
I tried, but seems not to fix the issue, or is just a fix to be done but separated from the WPML problem? Thanks for your help |
Sorry for my late reply. |
@carlosrovira Could you test the following PR: #6155 |
Hi @JoryHogeveen, I have currently a problem in the pre server where I can test it. I have it in my backlog for several days. Will try to fix this weekend and try it, and back here with my findings. Thanks |
Hi @JoryHogeveen, after working several hours in the last weekend, I could solve my test server issues. Sorry to be late, but I need to migrate some webs to other server, upgrade SO, PHP, and even install packages that was not considered some years ago until get things working. I finally have the site up in the same state as production. So from there, I updated Pods to latest RC1 downloading the zip and switching from the latest stable. I found some things are solved since last time but we have still critical issues. Note that I have WP_DEBUG enabled and also I tried to remove pods cache to ensure issues was not coming from any stale state. We have basically 3 pages that use Pods (Groups, Investors and Clients), and we have just 2 languages in WPML: Spanish (ES) and English (EN). Here's my findings: 1.- In "Group" page, ES version is working fully as expected, but EN version don't show the pods parts: you can check https://webpre.codeoscopic.com/es/grupo/ vs https://webpre.codeoscopic.com/en/group/ 2.- The same thing happens in "Investor" page. 3.- "Clients" page is not working at all and is reporting lots of issues that you can see printed in screen: https://webpre.codeoscopic.com/es/clientes/ Maybe I need to update some code, but I thing that should not be necessary since if the page is working in 2.7, it should be ok in 2.8 for a smooth transition. So I didn't try the change you proposed on Mar, 9, since at that time I have the server unoperative due to all the issue I said before. Also I didn't understand really what need to be changed. I'm open to help trying things, and also we can talk if you need to operate in my pre instalation. HTH Carlos |
hi, In all EN wp admin pages I get this log (not happening in ES wp admin pages): Notice: Trying to access array offset on value of type bool in /home/codeoscopic/var/www/codeoscopic.com/wp-content/plugins/pods/components/I18n/I18n.php on line 422 Warning: Invalid argument supplied for foreach() in /home/codeoscopic/var/www/codeoscopic.com/wp-content/plugins/pods/components/I18n/I18n.php on line 422 Notice: Trying to access array offset on value of type bool in /home/codeoscopic/var/www/codeoscopic.com/wp-content/plugins/pods/components/I18n/I18n.php on line 422 Warning: Invalid argument supplied for foreach() in /home/codeoscopic/var/www/codeoscopic.com/wp-content/plugins/pods/components/I18n/I18n.php on line 422 Notice: Trying to access array offset on value of type bool in /home/codeoscopic/var/www/codeoscopic.com/wp-content/plugins/pods/components/I18n/I18n.php on line 422 Warning: Invalid argument supplied for foreach() in /home/codeoscopic/var/www/codeoscopic.com/wp-content/plugins/pods/components/I18n/I18n.php on line 422 |
Before we continue, did you test on the latest RC or with the integration patch? As for your findings. EDIT: Also make sure you clear all Pods cache. When updating manual this might not be done automatically. Let me know! Cheers, Jory |
@sc0ttkclark |
Allrighty, found the issue. It's indeed your templates, you didn't create any translations while the Pod Templates are translatable. |
Hi @JoryHogeveen, ok. Will try now to create the templates and report back. Thanks |
Hi @JoryHogeveen and @sc0ttkclark. As Jory said, creating the templates with the same info works all ok. So seem 2.7 has some way to make this work without it. Anyway a migration from 2.7 to 2.8 will require to know this fact, so would be good to put it in notes or something to avoid people get stuck with this issue. Thanks for getting this finaly done. I'll close this issue if you're ok with it. Thanks |
I honestly think this worked in 2.7 because the compatibility code was outdated and didn't work properly. Topic can indeed be closed, thank you for reporting! |
Hi @JoryHogeveen, I notice that now, templates show in EN and not in ES. I tried various approaches, but what I found is that If I create add template for a language it doesn't show in the other one and viceversa. I couldn't find a solution for this and decided to post here... do you have any idea of what could be the problem? |
(reopening since I can't post without do so) Hi @JoryHogeveen, I notice that now, templates show in EN and not in ES. I tried various approaches, but what I found is that If I create add template for a language it doesn't show in the other one and viceversa. I couldn't find a solution for this and decided to post here... do you have any idea of what could be the problem? |
Hi, I think I finally get it to work with a combination of making the templates not to be a duplicate and clearing pods cache. But was tricky. While presite is now working, when I cleared the pods cache I got again the following error stack trace: Notice: Trying to access array offset on value of type bool in /home/codeoscopic/var/www/codeoscopic.com/wp-content/plugins/pods/components/I18n/I18n.php on line 413 Warning: Invalid argument supplied for foreach() in /home/codeoscopic/var/www/codeoscopic.com/wp-content/plugins/pods/components/I18n/I18n.php on line 413 Notice: Trying to access array offset on value of type bool in /home/codeoscopic/var/www/codeoscopic.com/wp-content/plugins/pods/components/I18n/I18n.php on line 413 Warning: Invalid argument supplied for foreach() in /home/codeoscopic/var/www/codeoscopic.com/wp-content/plugins/pods/components/I18n/I18n.php on line 413 Notice: Trying to access array offset on value of type bool in /home/codeoscopic/var/www/codeoscopic.com/wp-content/plugins/pods/components/I18n/I18n.php on line 413 Warning: Invalid argument supplied for foreach() in /home/codeoscopic/var/www/codeoscopic.com/wp-content/plugins/pods/components/I18n/I18n.php on line 413 this is using rc3 and 2.8.0 final release update just few minutes ago. HTH Carlos |
I got pro site update to 2.8 final release. Just notice that is a bit tricky since you need to clear pods cache and also other caches you can have in your site and refresh it and try again until things settle. Closing again. |
also the error stack trace doesn't show in pro site :? |
This is probably because debug is disabled on the production website. About the errors, could you share the full stack trace and not just the error (warning) itself? |
Hi @JoryHogeveen, ok, please let me know where I can find the full stack trace so I can share here. Thanks |
@JoryHogeveen remember you hace access to the pre site where you can see that error. Also ensure you put in EN view (since only happens in EN, not in ES). |
@carlosrovira Unfortunately a WordPress admin login is of no use to me for such errors since I cannot view or modify the code from there. |
Hi @JoryHogeveen, I'll send you server log to your email, since I don't know where I can put the var_dump code you mention. |
Hello @carlosrovira |
Just got another error that is server related it seems:
|
Hi, [1] https://wpml.org/errata/php-7-possible-issues-simplexml/ |
I have a very similar issue (same variance across languages, same SELECT DISTINT LEFTJOIN type of query) on a prod site after latest update of Pods. All I can add is that I get a 500 error on the front end and this in the error log:
Hosted on SiteGround with PHP 7.4.25. |
Hi @wildmercury, is your site using WPML? This problem was about using WPML but was fixed. IMHO, an error 500 indicates something different that seems not related to this problem. Did you try to enable debug to see more traces on screen. Usually that use to help to determine what's happening behind. Also, when migrating to 2.8 I found that some of my pods config was missing configuration checks that now need to be check in order to work. HTH C. |
Thanks for that. Yes, WPML and errors only on one language and with a PHP v8.0 test we get the following error: Which looks like a string is not being handled properly / has a character missing / or adding a space at the end? I'm not sure what you mean by "configuration checks that now need to be check in order to work". How would one check a pods config? Nothing has changed in several years (since 2017 I think). |
Follow up on this: I did a manual update of String Translations for Pods FR fields namely: Still stuck with the original SELECT error... |
I mean that I need to select a couple of checks that was unchecked in 2.7, but was needed in 2.8 in "selected mode" (with the tick) after this major refactor. So 2.7 seems to be less strict in the need If after try to revise checks and pod config and sabe the problem is not solved, I think you should log a new issue that tries to describe the problem as something new since to me it appears something different to what is described in the original purpose of this issue. |
I cannot find this translation within the Pods FR translation files: https://translate.wordpress.org/locale/fr/default/wp-plugins/pods/
Indeed, your issues sounds unrelated to this one, please create a new bug report and provide all info asked so we can reproduce and fix it! |
Pods 2.8 version
version of Pods 2.8 running is: "2.8.0-b-1"
Description
Seems Pods 2.8 is not ready to use in production with WPML. I updated the plugin in our preproduction site and we are getting this:
string(1196) "Database Error; SQL: SELECT
Just copied one of the errors. In that page you'll see one more.
Testing instructions
To see the problem in action check our preproduction site here: https://webpre.codeoscopic.com/en/group/
and you'll see the string above printed on the page.
Also in the "Management Team" section is empty. There we should get the management team employees info and then below a list of employees info.
This problem can be seen in the rest of pages using pods like "investors" and "clients", and "work with us" (link in the footer). In this one I see a reduced error:
string(20) "Objeto no encontrado"
That means "Object not found", so this could be related to pods not using now "Object"
Expected behavior
just to work as before. You can see the right output here in the production site with released pods version: https://codeoscopic.com/en/group/
In the current status I'll not be able to upgrade from pods 2.7 to 2.8. Hope a solution could be found in this beta time frame.
Possible workaround
No one found
Other super helpful information
WPML is using the all plugins at its latest official released version.
Thanks
The text was updated successfully, but these errors were encountered: