GithubHelp home page GithubHelp logo

Comments (7)

philsturgeon avatar philsturgeon commented on May 18, 2024

"add an article"?

And, are you inserting a title? ;-)

from pyrocms.

richlove1 avatar richlove1 commented on May 18, 2024

Apologies for any ambiguity,.....if I add a widget instance (e.g. RSS Feed or Twitter feed) and I DO complete the title field, the form validation comes back saying 'Title field is required'. If I comment out ln272 in application\modules\widgets\libraries\Widgets.php to not return form validation then form submits OK.

Also, feeds and tweets are not showing for me (tried BBC World Cup feed) but this could be a local configuration issue that my localhost can't retrieve feeds maybe?)

from pyrocms.

richlove1 avatar richlove1 commented on May 18, 2024

Looking in to this further (I am fairly new to CodeIgniter and very new to PyroCMS) it looks like you are unsetting some values (including title) from $options on ln86 of modules\widgets\controllers\ajax.php.

Not sure why you are unsetting these values but $options is then passed through to form validation and title has now been unset so looks like this is why failing form validation.

Not sure what appropriate solution is - maybe not to unset title from $options? Not sure why anything is being unset from it.

Rich

from pyrocms.

otuyelu avatar otuyelu commented on May 18, 2024

just installed PyroCMS, and was following the video tutorial, but I alos keep getting the 'title field is required" error. The title field is reset to blank, and all other field data remains intact.

from pyrocms.

richlove1 avatar richlove1 commented on May 18, 2024

As a work around solution you can comment out ln86 of modules\widgets\controllers\ajax.php. I am not sure if that is the desirable long term solution.

Even though I have done that, I am not getting any Twitter feeds showing through for me but have raised that as a separate issue

from pyrocms.

 avatar commented on May 18, 2024

I second that fix, it works for me. (commenting line 86)
also, if you have widgets... you cannot select text anymore if that line is not commented out. trying to copy the widget code and it starts dragging the widget around. leaving line 86 commented lets me copy that text now.

fyi - editing widgets now fails because of the commented out line. it gives the same error just on editing the widget instead.

from pyrocms.

philsturgeon avatar philsturgeon commented on May 18, 2024

Fixed in v0.9.9.5.

Drag and drop is nothing to do with server side validation pgarman, stop being a crazy person :)

from pyrocms.

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.