Giter Club home page Giter Club logo

Comments (7)

weotch avatar weotch commented on July 30, 2024

I found and fixed an issue with Element default images when using the longhand syntax you're using there (like instead of ogimage,image: /img/og_logo.png. However, what I experienced manfiested differently than what you reported:

ErrorException in Element.php line 237:
pathinfo() expects parameter 1 to be string, array given (View: /Users/reinhard/Work/Open Source/decoy/views/elements/index.haml)

I can no longer reproduce any errors using the /example app: http://yo.bkwld.com/2U1Z3c1R1L1G. I'm hoping e150ed7 somehow does fix it for you.

from decoy.

SomosAMambo avatar SomosAMambo commented on July 30, 2024

screencap.mov.zip

...Still the same. When I left the value empty, there is no error.

from decoy.

weotch avatar weotch commented on July 30, 2024

Can you tell me which what version or commit (from composer.lock) you are running?

from decoy.

SomosAMambo avatar SomosAMambo commented on July 30, 2024

dev-master

from decoy.

weotch avatar weotch commented on July 30, 2024

And what commit hash? Just wanna make sure I'm working using the same everything.

from decoy.

SomosAMambo avatar SomosAMambo commented on July 30, 2024

c7f7125

Here are the steps that leads to this error:

  1. Create a image field with any name and put a default value pointing to an existing file in the public/img folder.
seo:
  label: Tests
  help: test
  sections:
    general:
      test_image:
        type: image
        label: Test image
        value: /img/test.png
  1. Open elements in admin. You will notice (for me happens this way) that the image field hasn't loaded the image.
  2. Save it... error.

from decoy.

SomosAMambo avatar SomosAMambo commented on July 30, 2024

@weotch were you able to reproduce the error?

from decoy.

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.