Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail after save field #10

Closed
gisu opened this issue Apr 27, 2016 · 6 comments
Closed

Fail after save field #10

gisu opened this issue Apr 27, 2016 · 6 comments

Comments

@gisu
Copy link

gisu commented Apr 27, 2016

I wanted to test. Build a Simple Neo Field with two Blocks not more. Click on Save than a CException

/craft/app/framework/db/ar/CActiveRecord.php(146)

 */
public function __get($name)
{
    if(isset($this->_attributes[$name]))
        return $this->_attributes[$name];
    elseif(isset($this->getMetaData()->columns[$name]))
        return null;
    elseif(isset($this->_related[$name]))
        return $this->_related[$name];
    elseif(isset($this->getMetaData()->relations[$name]))
        return $this->getRelated($name);
    else
        return parent::__get($name); => Error
}
/**
 * PHP setter magic method.
 * This method is overridden so that AR attributes can be accessed like properties.
 * @param string $name property name
 * @param mixed $value property value
 */
public function __set($name,$value)
{
    if($this->setAttribute($name,$value)===false)
    {

Tested with Craft 2.6.2781

@benjamminf
Copy link
Contributor

Hey @gisu thanks for the report. Can I get some more details on how you encountered this issue? What fields/field types did your blocks contain? And what were your block type settings? Thanks, Ben.

@gisu
Copy link
Author

gisu commented Apr 27, 2016

First Try with two Blocks and serveral Fields (Exception).

Than a second try super simple. Two blocks only, one top level, the second block is nested - fields are empty.

image

@gisu
Copy link
Author

gisu commented Apr 27, 2016

I make a new Test with a new Craft Installation, it works. So i think on the first tested Installation is something broken or it comes from a other Plugin.

@benjamminf
Copy link
Contributor

Ah okay, thanks for the heads up. Am I able to get a list of the plugins you were using alongside Neo? I still want to see if I can reproduce this error to make sure I'm not doing anything wrong. Thanks!

@gisu
Copy link
Author

gisu commented Apr 27, 2016

I have added the Plugins from the Live Page to the Test Installation. Works. So i think its a bug inside the Core or a Datatable in the DB is broken (maybe from a Update, Deinstallation Plugin whatever).

@benjamminf
Copy link
Contributor

Hmm okay then, if you have this problem again reply here and I'll reopen the issue.

pvldigital added a commit that referenced this issue Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants