@jbrodie My image paths in the page source (= src parameters in image tags) are /system/refinery/images
in both development and production. Images (from S3) are visible in both environments.
Just one wild thought: if you want to use S3 in development and production, do you also have the dragonfly-s3_data_store gem loaded for both environments?
@jussihirvi Yes, I have the gem exposed for all environments.
@anitagraham I am working on an instance I inherited from an older Rails 5.1 version, I am using the production DB restored locally with the buckets for S3 copied to a new dev version of the bucket. I was unaware of the encoding aspect of that so that is a little more insight. Thanks.
The only difference I can see is the pathing on them at this point. The new install, updated to Rails 5.2 is injecting an additional folder layer of refinery between the system and the images folder. I can only assume this would be some configuration somewhere that I can't seem to see.
config.dragonfly_url_format = "/system/images/:job/:basename.:ext"
@jussihirvi Thanks for all the time you have spent assisting me with this port. It seems that the previous developers did some strange things to make this work including using some videos plugin, which complicates things much more.
The amount man bastardization I was having to do to upgrade this to Rails 5.2 just isn't worth it. There are problems after problems for very little gain. We are going to leave it for now and do a fresh spin up on the current version of Refinery (which natively supports video now) and port in all our data to a new instance in the future. Atleast we have an answer now on this.
Thanks again to you and everyone that commented and helped out. I learned somethings on Refinery, and something about the crappy job the initial implementors did on our end.
Hello everyone! I, as some others, am having problems with images in Heroku.
I've been trying a few things but nothing seems to work. Does anyone knows how to fix the problem?
2020-02-14T03:56:29.526941+00:00 app[web.1]: I, [2020-02-14T03:56:29.526814 #4] INFO -- : [6b9b7602-3396-4ff2-83e5-972de0e45e2e] Started GET "/system/refinery/images/W1siZiIsIjIwMjAvMDIvMTQvNXkzNnhkOWsweV81OTk1NjI4OF82MTEyNTM4NzI3MDc1MTVfNTg2MjMwODg5NTQzODE1NzgwOF9uLmpwZyJdLFsicCIsInRodW1iIiwiMTQ5eDE0OSNjIl1d/59956288_611253872707515_5862308895438157808_n.jpg" for 201.160.193.28 at 2020-02-14 03:56:29 +0000
2020-02-14T03:56:29.527489+00:00 app[web.1]: W, [2020-02-14T03:56:29.527401 #4] WARN -- : [6b9b7602-3396-4ff2-83e5-972de0e45e2e] DRAGONFLY: uid 2020/02/14/5y36xd9k0y_59956288_611253872707515_5862308895438157808_n.jpg not found
2020-02-14T03:56:29.527604+00:00 app[web.1]: I, [2020-02-14T03:56:29.527517 #4] INFO -- : [6b9b7602-3396-4ff2-83e5-972de0e45e2e] DRAGONFLY: GET /system/refinery/images/W1siZiIsIjIwMjAvMDIvMTQvNXkzNnhkOWsweV81OTk1NjI4OF82MTEyNTM4NzI3MDc1MTVfNTg2MjMwODg5NTQzODE1NzgwOF9uLmpwZyJdLFsicCIsInRodW1iIiwiMTQ5eDE0OSNjIl1d/59956288_611253872707515_5862308895438157808_n.jpg 404
In my refinerycms 4.0.3 app, a logged-in refinery user can always access his own user page. This is necessary for example if they want to change their password.
However, on the user page, any user can also control their own plugin access. This rrenders the whole plugin access selection meaningless. Has this been fixed in newer versions?
I made a temporary hack where only a superuser can see and select plugin access permissions.
However, on the user page, any user can also control their own plugin access. This rrenders the whole plugin access selection meaningless. Has this been fixed in newer versions?
Are you sure you're not a superuser?
I'm trying to install refinerycms-blog into an existing rails 6 app that uses devise, I'm getting the following error,
Bundler could not find compatible versions for gem "railties":
In Gemfile:
administrate-field-active_storage (~> 0.3.0) was resolved to 0.3.5, which depends on
rails (>= 6.0) was resolved to 6.0.3.2, which depends on
railties (= 6.0.3.2)
refinerycms-blog was resolved to 4.0.0, which depends on
responders (~> 2.0) was resolved to 2.0.2, which depends on
railties (< 5, >= 4.2.0.alpha)
my gem file contains...
gem 'responders', '~> 2.0'
gem 'refinerycms-blog', git: 'https://github.com/refinery/refinerycms-blog', branch: 'master'
gem 'refinerycms-authentication-devise', git: 'https://github.com/refinery/refinerycms-authentication-devise', branch: 'master'
I haven't seen anything in the closed issues...
I have PR or two in the works, but I also have some problems that I don't know how to fix.
refinerycms-wymeditor
uses a call to find-asset
which gets an error ActionView::Template::Error: undefined method
find_asset' for #<Sprockets::Manifest:0x00007fd3fd15d0f0>`, which has been reported and fixed. However I still get the problem when testing.# Gemfile.lock
refinerycms-wymeditor (2.2.0)
refinerycms-core (>= 4.0.0, < 5.0)
refinerycms-testing
defines a helper refinery_login
. However if I'm running tests in a gem such as refinerycms-inquiries
, which uses refinerycms-testing
I need to add refinery_login
in a helper.Any ideas for how to fix my basic setup?