Timeline for Problems creating an entry using app()->entries->saveEntry()
Current License: CC BY-SA 3.0
21 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 21, 2014 at 20:27 | vote | accept | jhon | ||
Jul 21, 2014 at 19:59 | answer | added | jhon | timeline score: 3 | |
Jul 16, 2014 at 1:15 | comment | added | Matt Stein | @jhon Please consider adding your answer to this question if you think it might benefit others! | |
Jul 15, 2014 at 15:06 | comment | added | jhon | At the end I used other option, working with a craft Http service, what makes load all the dependencies of Craft, without problems. | |
Jul 15, 2014 at 15:05 | history | edited | jhon | CC BY-SA 3.0 |
added 223 characters in body
|
Jul 15, 2014 at 9:27 | history | edited | carlcs |
edited tags
|
|
Jul 15, 2014 at 0:57 | history | edited | jhon | CC BY-SA 3.0 |
deleted 18 characters in body
|
Jul 15, 2014 at 0:48 | comment | added | jhon |
i can get the Entries, also I can delete them using this code: \Craft\craft()->entries->deleteEntryById($entryId); why doesn't the saveEntry() work?
|
|
Jul 15, 2014 at 0:42 | history | edited | Matt Stein | CC BY-SA 3.0 |
Added syntax highlighting snippets.
|
Jul 15, 2014 at 0:40 | history | edited | jhon | CC BY-SA 3.0 |
deleted 54 characters in body
|
Jul 15, 2014 at 0:30 | history | edited | jhon | CC BY-SA 3.0 |
added 5843 characters in body
|
Jul 15, 2014 at 0:20 | history | edited | jhon | CC BY-SA 3.0 |
added 54 characters in body
|
Jul 15, 2014 at 0:12 | comment | added | Brandon Kelly |
Is any of that code (starting with $entry = new \Craft\EntryModel(); ) actually getting called? Can you post the code you’re using to actually load Craft? That “bootstrap file” is just setting some server variables; not actually loading Craft.
|
|
Jul 14, 2014 at 23:53 | comment | added | Matt Stein | @jhon I edited your original question with the examples from your comments. Please fix anything I might have messed up! | |
Jul 14, 2014 at 23:53 | history | edited | Matt Stein | CC BY-SA 3.0 |
Moved examples from comments to post.
|
Jul 14, 2014 at 23:37 | comment | added | Brandon Kelly |
CraftTwigExtension shouldn’t be getting loaded if you’re just loading Craft and calling Craft\craft()->entries->saveEntry() . Can you please post all of your code?
|
|
Jul 14, 2014 at 23:19 | comment | added | jhon | Hi, I mean this, I load just the core of Craft, and use the Api functions. | |
Jul 14, 2014 at 23:04 | history | edited | Matt Stein | CC BY-SA 3.0 |
added 4 characters in body; edited title
|
Jul 14, 2014 at 23:02 | review | First posts | |||
Jul 14, 2014 at 23:09 | |||||
Jul 14, 2014 at 22:57 | comment | added | Matt Stein |
Hi @jhon and welcome to the Craft CMS Stack Exchange site! Could you explain what you mean by "I get the Craft loaded with another application on PHP"? You might want to start by checking craft/storage/runtime/logs for anything suspicious.
|
|
Jul 14, 2014 at 22:50 | history | asked | jhon | CC BY-SA 3.0 |