Frank Vèssia Posted October 21, 2011 Posted October 21, 2011 After updating PW from 2.0 to 2.1 i get a strange behavior in api. I cannot add any image except from the admin. I made more test with no luck, this is my code, very simple. $p = $pages->get(6629); $p->setOutputFormatting(false); $p->immagine->add("http://www.9freepictures.com/d/file/art-online/200907/bob-ross-landscape-oil-painting-27-20.jpg"); $p->save; no warning, no error_log, anything...
Adam Kiss Posted October 21, 2011 Posted October 21, 2011 Isn't the save call problem? <?php $page->save; //should be $page->save();
Frank Vèssia Posted October 21, 2011 Author Posted October 21, 2011 damn, i need to sleep more at night... thanks
Adam Kiss Posted October 21, 2011 Posted October 21, 2011 You're welcome I am going to add 'solved' tag to this topic.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now