We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Tags & Categories are not getting saved

Philip Meissner October 20, 2016 by Philip Meissner

PHP 7, Satamic 2.1.15

When I try to create new tags or categories, I get an error "There was a problem saving the data. Check the logs."

In my logsā€¦

[2016-10-20 10:53:07] live.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getItem() on null in /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Data/Services/TermsService.php:27
Stack trace:
#0 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/API/Term.php(27): Statamic\Data\Services\TermsService->id('71ed386a-5f7d-4...')
#1 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Data/Content/ContentCollection.php(162): Statamic\API\Term::find('71ed386a-5f7d-4...')
#2 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Data/Taxonomies/Term.php(168): Statamic\Data\Content\ContentCollection->filterByTaxonomy('71ed386a-5f7d-4...')
#3 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Data/Taxonomies/Term.php(314): Statamic\Data\Taxonomies\Term->collection()
#4 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Data/Taxonomies/Term.php(330): Statamic\Data\Taxonomies\Term->count()
#5 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Data/Data.php(582): Statamic\Data\Taxonomies\Term->supplement()
#6 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/bundles/Search/SearchListener.php(57): Statamic\Data\Data->toArray()
#7 [internal function]: Statamic\Addons\Search\SearchListener->insert(Object(Statamic\Events\Stache\RepositoryItemInserted))
#8 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(221): call_user_func_array(Array, Array)
#9 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(355): Illuminate\Events\Dispatcher->fire('Statamic\\Events...', Array, false)
#10 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Stache/Repository.php(259): event(Object(Statamic\Events\Stache\RepositoryItemInserted))
#11 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Stache/Listeners/UpdateItem.php(86): Statamic\Stache\Repository->setItem('71ed386a-5f7d-4...', Object(Statamic\Data\Taxonomies\Term))
#12 [internal function]: Statamic\Stache\Listeners\UpdateItem->updateSavedItem(Object(Statamic\Data\Taxonomies\Term))
#13 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(347): call_user_func_array(Array, Array)
#14 [internal function]: Illuminate\Events\Dispatcher->Illuminate\Events\{closure}(Object(Statamic\Data\Taxonomies\Term))
#15 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(221): call_user_func_array(Object(Closure), Array)
#16 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(355): Illuminate\Events\Dispatcher->fire('content.saved', Array, false)
#17 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Data/Content/Content.php(191): event('content.saved', Object(Statamic\Data\Taxonomies\Term))
#18 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Data/Content/ContentFactory.php(89): Statamic\Data\Content\Content->save()
#19 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/bundles/Taxonomy/TaxonomyFieldtype.php(21): Statamic\Data\Content\ContentFactory->save()
#20 [internal function]: Statamic\Addons\Taxonomy\TaxonomyFieldtype->Statamic\Addons\Taxonomy\{closure}('Jabberwocky', 35)
#21 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Support/Collection.php(469): array_map(Object(Closure), Array, Array)
#22 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/bundles/Taxonomy/TaxonomyFieldtype.php(24): Illuminate\Support\Collection->map(Object(Closure))
#23 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/CP/Publish/Publisher.php(200): Statamic\Addons\Taxonomy\TaxonomyFieldtype->process(Array)
#24 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/CP/Publish/Publisher.php(86): Statamic\CP\Publish\Publisher->processFields()
#25 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/CP/Publish/EntryPublisher.php(25): Statamic\CP\Publish\Publisher->publish()
#26 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Http/Controllers/PublishController.php(433): Statamic\CP\Publish\EntryPublisher->publish()
#27 [internal function]: Statamic\Http\Controllers\PublishController->save()
#28 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(256): call_user_func_array(Array, Array)
#29 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(164): Illuminate\Routing\Controller->callAction('save', Array)
#30 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(112): Illuminate\Routing\ControllerDispatcher->call(Object(Statamic\Http\Controllers\PublishController), Object(Illuminate\Routing\Route), 'save')
#31 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#32 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#33 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#34 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#35 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(114): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#36 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(67): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(Statamic\Http\Controllers\PublishController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'save')
#37 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Routing/Route.php(203): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'Statamic\\Http\\C...', 'save')
#38 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Routing/Route.php(134): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))
#39 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Routing/Router.php(708): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#40 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#41 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#42 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Http/Middleware/CP/Authenticate.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#43 [internal function]: Statamic\Http\Middleware\CP\Authenticate->handle(Object(Illuminate\Http\Request), Object(Closure))
#44 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#45 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Http/Middleware/Outpost.php(51): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 [internal function]: Statamic\Http\Middleware\Outpost->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#48 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Http/Middleware/CP/DefaultLocale.php(28): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#49 [internal function]: Statamic\Http\Middleware\CP\DefaultLocale->handle(Object(Illuminate\Http\Request), Object(Closure))
#50 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#51 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#53 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Routing/Router.php(710): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#54 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Routing/Router.php(673): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#55 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#56 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(236): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#57 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#58 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#59 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Http/Middleware/PersistStache.php(22): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#60 [internal function]: Statamic\Http\Middleware\PersistStache->handle(Object(Illuminate\Http\Request), Object(Closure))
#61 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#62 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#63 [internal function]: Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#64 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#65 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#66 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#67 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#68 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#69 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#70 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#71 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#72 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#73 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#74 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#75 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#76 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#77 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/Http/Middleware/Glide.php(43): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#78 [internal function]: Statamic\Http\Middleware\Glide->handle(Object(Illuminate\Http\Request), Object(Closure))
#79 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#80 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/core/StaticCaching/Middleware/Retrieve.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#81 [internal function]: Statamic\StaticCaching\Middleware\Retrieve->handle(Object(Illuminate\Http\Request), Object(Closure))
#82 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#83 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#84 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#85 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#86 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#87 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#88 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(122): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#89 /home1/rnpanten/public_html/platinumlakemanagement.com/statamic/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(87): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#90 /home1/rnpanten/public_html/platinumlakemanagement.com/index.php(155): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#91 {main}  
Answered by Philip Meissner!
>>>>>>> Answered <<<<<<<
8 Replies
3 Followers