https://solidus.io logo
Join Slack
Powered by
# support
  • f

    Fede Barriola

    08/09/2022, 7:06 PM
    has someone face this error when creating a project? im using a mac m1
    j
    • 2
    • 1
  • k

    Kurtis

    08/10/2022, 6:34 AM
    https://github.com/solidusio/solidus/wiki/Storing-images-on-S3-and-CDN's
  • k

    Kurtis

    08/10/2022, 6:34 AM
    Is this still the way to do images via AWS? As it was my understanding Paperclip isn’t used now in favour of ActiveStorage?
  • k

    Kurtis

    08/10/2022, 6:35 AM
    So I assume perhaps it’ll work if I just set up storage.yml to point to AWS stuff
  • k

    Kurtis

    08/10/2022, 7:15 AM
    Do I need to set
    Copy code
    config.image_attachment_module = 'Spree::Image::PaperclipAttachment'
    config.taxon_attachment_module = 'Spree::Taxon::PaperclipAttachment'
    As I am moving from 2.11 to 3.0?
  • k

    Kurtis

    08/10/2022, 7:16 AM
    Currently getting an issue on prod after deploy with `ActionView:Template:Error (undefined method
    processed' for nil:NilClass):
    so any help appreciated
  • k

    Kurtis

    08/10/2022, 7:31 AM
    Currently getting `NoMethodError: undefined method
    has_one_attached' for #<Class:0x0000556c9d23c800>
    when trying to deploy with:
    Copy code
    if Rails.env.production?
        attachment_config = {
          s3_credentials: {
            bucket:            ENV["S3_BUCKET_NAME"],
            access_key_id:     ENV["AWS_ACCESS_KEY_ID"],
            secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"]
          },
    
          storage:        :s3,
          s3_headers:     { "Cache-Control" => "max-age=31557600" },
          s3_protocol:    "https",
          s3_region:      ENV["AWS_REGION"],
          bucket:         ENV["S3_BUCKET_NAME"],
          url:            ":s3_domain_url",
    
          styles: {
            mini:    "128x128>",
            small:   "256x256>",
            product: "512x512>",
            large:   "1024x1024>"
          },
    
          path:          "/:class/:id/:style/:basename.:extension",
          default_url:   "noimage/:style.png",
          default_style: "product",
        }
    
        attachment_config.each do |key, value|
          Spree::Image.attachment_definitions[:attachment][key.to_sym] = value
        end
    end
  • k

    Kurtis

    08/10/2022, 7:47 AM
    If anyone has any experience upgrading S3 from Solidus 2.11 with paperclip to Solidus 3.1, or if anyone has any working examples, it’d be greatly appreciated
    t
    r
    • 3
    • 14
  • k

    Kurtis

    08/10/2022, 9:13 AM
    Can anyone else also help with this?
    ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: 'Spree::Gateway::KlarnaCredit'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Spree::PaymentMethod.inheritance_column to use another column for that information.)
    ✅ 2
  • k

    Kurtis

    08/10/2022, 9:14 AM
    I’ve deleted Klarna gem and can’t get anywhere with payment methods
    ✅ 1
    r
    • 2
    • 29
  • k

    Kurtis

    08/10/2022, 9:14 AM
    I’ve put the code back in, deleted all klarna orders and klarna payments
  • k

    Kurtis

    08/10/2022, 9:14 AM
    Today is a day of hell 😂
  • k

    Kurtis

    08/10/2022, 11:11 AM
    I’m all out of ideas here 😞 I have tried: • Adding
    kt-paperclip
    +
    image_processing
    to Gemfile • Adding
    config.image_attachment_module = 'Spree::Image::ActiveStorageAttachment'
    and
    config.taxon_attachment_module = 'Spree::Taxon::ActiveStorageAttachment'
    to spree.rb as per https://guides.solidus.io/developers/products-and-variants/product-images • Adding + removing the
    attachment_config
    as per for aws.rb https://github.com/solidusio/solidus/wiki/Storing-images-on-S3-and-CDN's • Tried this alternative version https://gist.github.com/ArunMichaelDsouza/00029719b65028ab7e1a Am I missing something? Upgrading from 2.11 to 3.1
  • w

    waiting_for_dev

    08/10/2022, 11:13 AM
    Hey @Kurtis 👋 Could you create a Github discussion summing up the problem you're experiencing? Please, try to be clear in what you've done so far and which are your expectations. Thanks!
    🙏 2
  • k

    Kurtis

    08/10/2022, 11:14 AM
    Will do. Thank you
  • k

    Kurtis

    08/10/2022, 11:17 AM
    https://github.com/solidusio/solidus/discussions/4030
  • k

    Kurtis

    08/10/2022, 11:17 AM
    I see @kennyadsl has something here. Will look into his solution
  • t

    Tom Wilson

    08/10/2022, 9:49 PM
    Hey, folks - I've got a strange question that I feel like should be simple, but yet... One of our product team is trying to add products to a promotion, and is unable to search for the products. She gets an authorization failure. I, on the other hand, am able to search just fine. I dug in, and it seems like this is a permissions issue. The promotions page hits
    /admin/search/products
    to issue a search for these products, and that is returning an auth failure for this user. Because I'm a super user, it allows me to proceed. But after much digging, I still can't quite wrap my head around what permissions I need to actually grant this user to enable this use case. It looks like the permission check is coming from the
    authorize_admin
    method of the BaseController. That method looks like the following:
    Copy code
    def authorize_admin
            if respond_to?(:model_class, true) && model_class
              record = model_class
            else
              record = controller_name.to_sym
            end
            authorize! :admin, record
            authorize! action, record
          end
    In my case after tracing this,
    record
    is
    product
    and
    action
    is
    search
    - and the
    authorize! :admin
    line is failing. The user has the ProductMangement permission set, though, which grants
    :manage SpreeProduct
    . So what additional permission do I need to grant this user to perform a product search?
    e
    • 2
    • 4
  • t

    tvdeyen

    08/11/2022, 2:38 PM
    Ruby question: In preparation to a Rails 7 upgrade I am currently rewriting some monkey patches from
    Module.module_eval
    into
    Module#prepend
    . So they work with the new zeitwerk auto loader. [Due to a "bug" in Ruby 2.7](https://github.com/jruby/jruby/issues/6445#issuecomment-894407106) prepended modules of modules included in classes do not get prepended to the class, leading to not overwritten methods as one would expect using
    Module#prepend
    with modules prepended into classes. I have several ideas to circumvent the issue 1. Prepend the module into the class the module that the monkey patch was meant for. Problem with this is that the module in question (
    Spree::Core::ControllerHelpers::Order
    ) is included in several controllers and I would like to not maintain a list of controllers that I need to prepend my module in to. 2. Use
    module_eval
    in the
    prepended
    hook. Just an idea I have, that I have not tried yet. 3. Trick Zeitwerk by adding the constant it expects from the file name and keep the existing
    module_eval
    Feels fishy 4. Use a folder that is excluded from Zeitwerk auto loading. Not very convenient during development locally. Has anybody run into these kind of issues before and solved it? If yes, how?
    • 1
    • 1
  • g

    Georg Keferböck

    08/11/2022, 6:41 PM
    Hi folks - I have run into an issue with solidus_subscriptions: I removed the gem, and reversed the installation. Firstly, the migrations remained, so I had to manually write a migration to get rid of any tables, indexes and foreign keys. Now that the gem is uninstalled and all migrations removed, the entire store broke into pieces, as whatever we do traces of the gem keep appearing - i.e.:
    ActionView::Template::Error (undefined method 'subscribable' for #<Spree::Variant:0x00007feec5b059d0>): 106: <div data-hook="admin_product_form_subscribable"> 107: <%= f.field_container :subscribable do %> 108: <label> 109: <%= f.check_box :subscribable %> 110: <%= Spree::Product.human_attribute_name(:subscribable) %> 111: </label> 112: <% end %>
    No idea where this is coming from? What do we have to do - step by step to remove the gem?
  • g

    Georg Keferböck

    08/11/2022, 6:42 PM
    https://github.com/solidusio-contrib/solidus_subscriptions
  • g

    Georg Keferböck

    08/11/2022, 6:42 PM
    I removed all traces of that gem (including migrations) - I am running out of ideas why no matter where I click, a reference and error to subscription comes up.
  • j

    Jared Norman

    08/11/2022, 6:45 PM
    Did it install any deface overrides or views?
    g
    • 2
    • 1
  • j

    Jared Norman

    08/11/2022, 6:50 PM
    Where is that reference to
    subscribable
    ? In the gem?
  • j

    Jared Norman

    08/11/2022, 6:51 PM
    When you say you uninstalled the gem, you mean you removed it from your Gemfile and ran
    bundle
    to update the Gemfile.lock?
    g
    • 2
    • 14
  • k

    Kurtis

    08/12/2022, 10:54 AM
    Payee(s) passed in transaction does not match expected merchant id. Please ensure you are passing merchant-id=UAQHKSDFIT or <mailto:merchant-id-kasdgjgsdgsd@personal.example.com|merchant-id-kasdgjgsdgsd@personal.example.com> to the sdk url.
  • k

    Kurtis

    08/12/2022, 10:54 AM
    Is anyone familiar with this error for Solidus PayPal Braintree?
  • w

    Wladjmir

    08/13/2022, 1:26 PM
    Hi, there is no way to override: preference :default_country_iso, :string, default: ‘US’ in Spree/app_configuration to me this preference should configurable in initialzer/spree.
    j
    w
    • 3
    • 6
  • n

    Nitin

    08/15/2022, 4:38 AM
    Hello Everyone - How to add additional routes for Solidus Admin Users? How to override routes for Solidus Admin? I am using Solidus 3.1 with recent solidus_starter_frontend.
    ✅ 1
    j
    • 2
    • 2
  • j

    Jay

    08/15/2022, 6:51 AM
    Hello guys, i have an issue im requesting help with. I recently came back to app i was developing a while ago on solidus. It worked just fine the last time. It also starts fine. The issue is when i run /login or /admin on the browser and i get the following errors respectively
    Copy code
    uninitialized constant Spree::UserSessionsController
    and
    Copy code
    uninitialized constant Spree::Admin::UserSessionsController
    Thank you guys any help would go along way. NOTE: I have tried to reinstall solidus_auth_devise gem.And still nothing. Regards
    ✅ 1
    r
    w
    e
    • 4
    • 34
1...202122...39Latest