Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

WhEditable bugs #59

Closed
neowutran opened this issue Aug 30, 2013 · 9 comments
Closed

WhEditable bugs #59

neowutran opened this issue Aug 30, 2013 · 9 comments
Labels
Milestone

Comments

@neowutran
Copy link
Contributor

When i try to use WhEditable like this: http://yiiwheels.2amigos.us/site/grid#editablecolumn

I get a "Error 500 include(WhEditable.php): failed to open stream: No such file or directory"
to fix this:

  • Add "Yii::import( 'yiiwheels.widgets.editable.WhEditable' );" on the beginning of the file "WhEditableColumn.php".

Then I get a "Error 500 Property CWebApplication.editable is not defined."
this error come from the line"if ( yii::app()->editable->form != EditableConfig::FORM_BOOTSTRAP ) {" (there are 2 occurrence) in the file "WhEditableColumn.php"
I don't know how to fix this so I commented the two "if" block.

After that I get a "Error 500 include(EditableField.php): failed to open stream: No such file or directory"
to fix that:

  • Change the line "$widgetClass = 'EditableField';" to "$widgetClass = 'WhEditableField';" in the file "WhEditableColumn.php".

After that the page is rendered correctly, but you can't edit.

You need to edit "WhEditableSaver.php":

  • Add "Yii::import( 'yiiwheels.widgets.editable.WhEditableField' );" on the beginning of the file
  • Replace all the occurence of "EditableField::" by "WhEditableField::"

After that it's working for me

(PS: Sorry about my english)

@tonydspaniard
Copy link
Member

Great feedback... Thank you very much for your feedback. Will fix it asap.

@anilkonsal
Copy link

Fixes suggested by @neowutran worked for me. Thanks for help.

Tony, when you think this bug will be fixed in main branch as fixes are already provided by @neowutran.

@kudzuu
Copy link

kudzuu commented Oct 8, 2013

Have fix yet?

@marjss
Copy link

marjss commented Nov 9, 2013

Is it fixed???

@app2one
Copy link

app2one commented Nov 12, 2013

Should it be assigned to someone first? Otherwise will not be fixed soon.

@bitclaw
Copy link

bitclaw commented Nov 12, 2013

Suggested fix also worked for me , thanks @neowutran!

@tonydspaniard
Copy link
Member

@neowutran I am running really out of time, would be great if you could provide a pull request!

@antiyanky
Copy link

Hola, ya realice todos los cambios, y muchos de los errores se fueron, el problema es que al editar cualquier campo, me tira el siguiente error:

https://www.dropbox.com/s/629p1h6ipe4rfx7/1.png
https://www.dropbox.com/s/i731wjp9nfk6276/error2.png

por favor necesito de su ayuda, muchas gracias! (mi mail es arenzo@neutrocode.com)

@tonydspaniard
Copy link
Member

This should have been fixed by #82

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants