Giter Club home page Giter Club logo

Comments (4)

comur avatar comur commented on July 19, 2024

Hi @adityarai

Can you give me some more info ?
Which branch you use and which version of bootstrap you have ?
Is it a javascript error ? Can you look at inspector and give me some more info (file names and line that error occurs) ?

from comurimagebundle.

comur avatar comur commented on July 19, 2024

I close this issue, if you have more info to give me, you can reopen it.

from comurimagebundle.

yannskee avatar yannskee commented on July 19, 2024

Hello i having the same problem: "Uncaught SyntaxError: Unexpected token i" when I click on the "Edit" button where I included the image widget.

I use the branch : "comur/image-bundle": "1.0.*@dev"
and bootstrap 3.

In my layout I used {% include "ComurImageBundle:Form:croppable_image_modal.html.twig" with {'include_jquery': false, 'include_bootstrap': false} %} since i'm already including a jquery script and bootstrap 3. I made sure the include was after the jquery script.

When i click on the error msg in the navigator console. i don't get a specific line number, so i have no idea where the error is coming from.

from comurimagebundle.

evuez avatar evuez commented on July 19, 2024

The issue is due to some escaping madness with windows paths...
So in CroppableImageType#101 if your path looks like C:\\www\\uploads\\..., it won't work and instead you'll have to double-escape every backslashes so that it looks like that: C:\\\\www\\\\uploads\\\\....

And the error happens when the $.parseJSON in fields.html.twig#55 tries to parse the path, because the Javascript \\ will evaluate to \ instead of a \\ required for the JSON to be valid.

from comurimagebundle.

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.