Frank Vèssia Posted October 21, 2011 Share 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... Link to comment Share on other sites More sharing options...
Adam Kiss Posted October 21, 2011 Share Posted October 21, 2011 Isn't the save call problem? <?php $page->save; //should be $page->save(); Link to comment Share on other sites More sharing options...
Frank Vèssia Posted October 21, 2011 Author Share Posted October 21, 2011 damn, i need to sleep more at night... thanks Link to comment Share on other sites More sharing options...
Adam Kiss Posted October 21, 2011 Share Posted October 21, 2011 You're welcome I am going to add 'solved' tag to this topic. Link to comment Share on other sites More sharing options...
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