Coder Social home page Coder Social logo

"can't modify frozen object" about meta-tags HOT 5 CLOSED

kpumuk avatar kpumuk commented on May 21, 2024
"can't modify frozen object"

from meta-tags.

Comments (5)

kpumuk avatar kpumuk commented on May 21, 2024

Could you show an example on how to reproduce this error? I've tried a few variations and can't get it failing:

  @view.title('someTitle'.freeze)
  @view.display_meta_tags(:site => 'someSite').should == '<title>someSite | someTitle</title>'

  @view.title(['someTitle'.freeze].freeze)
  @view.display_meta_tags(:site => 'someSite').should == '<title>someSite | someTitle</title>'

from meta-tags.

marius avatar marius commented on May 21, 2024

It is only happening in production mode, and only for some pages. We couldn't figure out what triggers this. The backtrace shows that the error occurs on the line with .map inside normalize title. Maybe rails does some caching for strip_tags or h and freezes the resulting string?

Can you somehow test in production? Maybe with some tags and unescaped html entities in the title.

from meta-tags.

kpumuk avatar kpumuk commented on May 21, 2024

Added frozen strings in production everywhere. No exceptions. Could you help me to find the problem?

from meta-tags.

marius avatar marius commented on May 21, 2024

Sorry, I have no idea what to do. Maybe it's one of the other gems or plugins we are using.

from meta-tags.

kpumuk avatar kpumuk commented on May 21, 2024

Closing issue since, there is no new information. Please re-open or create a new issue if you still having this problem.

from meta-tags.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.