What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
We import CMS Pages by creating a `CmsPageTransfer` object, adding data and in the end calling ```$t
We import CMS Pages by creating a CmsPageTransfer
object, adding data and in the end calling
$this->getCmsGuiFacade()->activatePage($idCmsPage); $this->getCmsGuiFacade()->publishWithVersion($idCmsPage);
Spryker gives no errors and all seems fine. Still the contents are not published to Yves. It seems the Publish Events are missing from the queue. If we press the publish button in the backend everything is fine. Any suggestions?
Comments
-
The publish did work with Spryker CMS 7.0.0. Now we use 7.7.1
0 -
hm, sounds like a bug from the first sight. cc @UK9N7MP96 @valerii.trots have you heard anything about that?
0 -
This must communicate with CMS stream through the bug report if this is a bug in core
0 -
@UM4BZSK7T do you use Spryker DataImport module for that? If yes, you need to know that events in DataImport is disabled by default. You need trigger it manually by extending
\Spryker\Zed\DataImport\Business\Model\DataImportStep\PublishAwareStep
$cmsVersionTransfer = $this->cmsFacade->publishWithVersion($dataSet[CmsPageStoreDataSet::ID_CMS_PAGE]); $this->addPublishEvents(CmsEvents::CMS_VERSION_PUBLISH, $cmsVersionTransfer->getFkCmsPage());
0 -
see
\Spryker\Zed\CmsPageDataImport\Business\CmsPage\CmsPagePublishStep
for references0 -
BTW you have
getCmsGuiFacade()
in your example. We donβt have facade in CmsGui module.0 -
It seems we are missing the kernel terminate events. During our spryker module updates we did
new EventBehaviorServiceProvider(),
remove that. Still I have added it again but no change the contents are not published and the event is not added. I deleted all cache fodlers as such strange behaviour seems a bit like a stale cache. But no change. So I will debug some more.
0 -
About "there is no face in CMS gui" Yes that is right but there is a
\Spryker\Zed\CmsGui\Dependency\Facade\CmsGuiToCmsBridge::publishWithVersion
Bridge. Maybe we found that first instead of the CMS module itself. I want to change this later.0 -
We are really stuck with the exception The service
"dispatcher" is marked as frozen an can't be extended at this point.
I don't really know what to do about that. If I add
EventBehaviorServiceProvider
to\WF\Zed\Application\ApplicationDependencyProvider::getApiServiceProviders
I will always run into that exception. The same service is added togetServiceProviders
and that runs without problems. If I leave it away the system runs but misseskernel.terminate
I have no clue why you freeze those dispatcher events and wy this seems to come at a different place for API Calls.0 -
Have you seen the troubleshooting advice here: https://documentation.spryker.com/v3/docs/container-201903 ?
0 -
This leads imho to \Spryker\Zed\WebProfiler\Communication\Plugin\Application\WebProfilerApplicationPlugin::extendEventDispatcher
0 -
you cannot add this SP twice, thatβs why it was removed
0 -
We have βfrozenβ exception if you get ir from container when we register services.
As I understand you are using application plugins and service providers in the same time. Could you send me a list of service providers that you use in the api stack?0 -
-
Great. Would be nice if you can show me your application plugins stack if you are using them
0 -
I need to know if you are using
EventDispatcherApplicationPlugin
there
0 -
-
Nope. In your ApplicationDependencyProvider might be the method
getApplicationPlugins
0 -
If you donβt have, itβs ok
0 -
Looks like we do miss the event-dispatcher module
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 921 Developer Corner
- 781 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random