today we have found that one of our custom plugin have a strange behavior in v4 . after adding a item, the successfully message appear but no data inserted in database ! , when we left some empty fields it return the error validation for that fields; so the validation pass without any issue, after a search in the forum the same behavior was reported in support manager pro in v4 also, no change made in database.
i was thinking what will be the cause for this behavior ?as no error returned from the Record components or the Input components .
i have added the begin() commit() rollback() fucntion to see what happen but no result, also the error_reporting and the debugger is not catching any error !!!
Question
Blesta Addons
today we have found that one of our custom plugin have a strange behavior in v4 . after adding a item, the successfully message appear but no data inserted in database ! , when we left some empty fields it return the error validation for that fields; so the validation pass without any issue, after a search in the forum the same behavior was reported in support manager pro in v4 also, no change made in database.
i was thinking what will be the cause for this behavior ?as no error returned from the Record components or the Input components .
i have added the begin() commit() rollback() fucntion to see what happen but no result, also the error_reporting and the debugger is not catching any error !!!
any idea how to diagnostics the problem ?
Top Posters For This Question
24
13
13
2
Popular Days
Apr 24
24
Apr 2
15
Apr 25
13
Apr 3
2
Top Posters For This Question
Blesta Addons 24 posts
Michael 13 posts
Adam 13 posts
Abdy 2 posts
Popular Days
Apr 24 2017
24 posts
Apr 2 2017
15 posts
Apr 25 2017
13 posts
Apr 3 2017
2 posts
Popular Posts
Blesta Addons
after some investigation , the $this->Record->lastInsertId(); return 0 . hope he can come soon
Adam
http://source-docs.blesta.com/class-Record.html#_update Pretty sure you can remove the third parameter on update as $data is a key/value value Since update returns a PDOStatement, save the
Blesta Addons
Thanks Adam, of course product_id is not null, the output is changing the same line via phpmyadmin is working . i confirm the same code work in v3.6 PDOStatement Object ( [queryString] =&
53 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.