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
Sitepress does not work on Rails 7.1: "uninitialized constant PageHelper" #50
Comments
The loading issue is also present in the other environments (not just in the test env). For example:
|
Here's a temporary workaround for this issue:
This code (or something similar) should probably go inside this gem directly. |
It's even worse... While the workaround works on my local machine, the tests running on GitHub CI fail with a new error:
|
This seems to fix both errors:
This code (or something equivalent) should be added to this gem, in order to solve this issue. |
It's an issue with autoloading changes introduced in Rails 7.1. Checkout the issue at #47 for more info. |
Just upgraded to 7.1.2 and now it's working. |
Great! Closing issue. |
Yes, great, I confirm! |
I am upgrading a Rails application that uses Sitepress from Rails 7 to Rails 7.1.1.
After the upgrade I get this error that prevents all tests from running:
The error is definitely related to this gem because I don't have any other
PageHelper
(I have only the default one included by Sitepress). I also made some research and I found this old related issue: rails/rails#43205 (I also tried to run the tests again, as suggested in that issue, but the problem persists).Do you have any idea on how to solve this?
The text was updated successfully, but these errors were encountered: