wpalmer / magerun-cms

very basic CMS import/export for Magerun
Other
4 stars 0 forks source link

CMS block load does not work. #3

Open AngelsDustz opened 6 years ago

AngelsDustz commented 6 years ago

Hello, when trying to load a JSON file we just dumped it does not add the blocks to our Magento site. It does not produce an error, below is a dump of Magerun with triple verbose level.

It worked fine for pages but does nothing for blocks. Magento version 1.9.3.8

Load dist config phar:///home/***/bin/magerun/src/N98/Magento/Application/../../../../config.yaml
Folder /home is not readable. Skip.
Folder /home is not readable. Skip.
Search for Magento in folder /home/***/domains/kubustotaal.nl/public_html
Found Magento in folder /home/***/domains/kubustotaal.nl/public_html
Load dist config cached
Vendor directory phar:///home/***/bin/magerun/src/N98/Magento/Application/../../../../vendor
Load plugin config /home/***/.n98-magerun/modules/diw-cms/n98-magerun.yaml
Registered PSR-0 autoloader  DIW -> /home/***/.n98-magerun/modules/diw-cms/src
Add command  admin:notifications -> N98\Magento\Command\Admin\DisableNotificationsCommand
Add command  admin:user:change-password -> N98\Magento\Command\Admin\User\ChangePasswordCommand
Add command  admin:user:create -> N98\Magento\Command\Admin\User\CreateUserCommand
Add command  admin:user:list -> N98\Magento\Command\Admin\User\ListCommand
Add command  admin:user:delete -> N98\Magento\Command\Admin\User\DeleteUserCommand
Add command  admin:user:change-status -> N98\Magento\Command\Admin\User\ChangeStatusCommand
Add command  admin:user:lock -> N98\Magento\Command\Admin\User\LockCommand
Add command  admin:user:lockdown -> N98\Magento\Command\Admin\User\LockdownCommand
Add command  admin:user:unlock -> N98\Magento\Command\Admin\User\UnlockCommand
Add command  cache:clean -> N98\Magento\Command\Cache\CleanCommand
Add command  cache:dir:flush -> N98\Magento\Command\Cache\Dir\FlushCommand
Add command  cache:disable -> N98\Magento\Command\Cache\DisableCommand
Add command  cache:enable -> N98\Magento\Command\Cache\EnableCommand
Add command  cache:flush -> N98\Magento\Command\Cache\FlushCommand
Add command  cache:list -> N98\Magento\Command\Cache\ListCommand
Add command  cache:report -> N98\Magento\Command\Cache\ReportCommand
Add command  cache:view -> N98\Magento\Command\Cache\ViewCommand
Add command  category:create:dummy -> N98\Magento\Command\Category\Create\DummyCommand
Add command  cms:banner:toggle -> N98\Magento\Command\Cms\Banner\ToggleCommand
Add command  cms:block:list -> N98\Magento\Command\Cms\Block\ListCommand
Add command  cms:block:toggle -> N98\Magento\Command\Cms\Block\ToggleCommand
Add command  cms:page:publish -> N98\Magento\Command\Cms\Page\PublishCommand
Add command  config:delete -> N98\Magento\Command\Config\DeleteCommand
Add command  config:dump -> N98\Magento\Command\Config\DumpCommand
Add command  config:get -> N98\Magento\Command\Config\GetCommand
Add command  config:set -> N98\Magento\Command\Config\SetCommand
Add command  config:search -> N98\Magento\Command\Config\SearchCommand
Add command  customer:change-password -> N98\Magento\Command\Customer\ChangePasswordCommand
Add command  customer:create -> N98\Magento\Command\Customer\CreateCommand
Add command  customer:create:dummy -> N98\Magento\Command\Customer\CreateDummyCommand
Add command  customer:info -> N98\Magento\Command\Customer\InfoCommand
Add command  customer:list -> N98\Magento\Command\Customer\ListCommand
Add command  customer:delete -> N98\Magento\Command\Customer\DeleteCommand
Add command  db:console -> N98\Magento\Command\Database\ConsoleCommand
Add command  db:create -> N98\Magento\Command\Database\CreateCommand
Add command  db:drop -> N98\Magento\Command\Database\DropCommand
Add command  db:dump -> N98\Magento\Command\Database\DumpCommand
Add command  db:import -> N98\Magento\Command\Database\ImportCommand
Add command  db:info -> N98\Magento\Command\Database\InfoCommand
Add command  db:query -> N98\Magento\Command\Database\QueryCommand
Add command  db:variables -> N98\Magento\Command\Database\VariablesCommand
Add command  db:status -> N98\Magento\Command\Database\StatusCommand
Add command  db:maintain:check-tables -> N98\Magento\Command\Database\Maintain\CheckTablesCommand
Add command  design:demo-notice -> N98\Magento\Command\Design\DemoNoticeCommand
Add command  dev:code:model:method -> N98\Magento\Command\Developer\Code\Model\MethodCommand
Add command  dev:email-template:usage -> N98\Magento\Command\Developer\EmailTemplate\UsageCommand
Add command  dev:ide:phpstorm:meta -> N98\Magento\Command\Developer\Ide\PhpStorm\MetaCommand
Add command  dev:setup:script:attribute -> N98\Magento\Command\Developer\Setup\Script\AttributeCommand
Add command  dev:console -> N98\Magento\Command\Developer\ConsoleCommand
Add command  dev:log:db -> N98\Magento\Command\Developer\Log\DbCommand
Add command  dev:log -> N98\Magento\Command\Developer\Log\LogCommand
Add command  dev:log:size -> N98\Magento\Command\Developer\Log\SizeCommand
Add command  dev:module:create -> N98\Magento\Command\Developer\Module\CreateCommand
Add command  dev:module:disable -> N98\Magento\Command\Developer\Module\Disableenable\DisableCommand
Add command  dev:module:enable -> N98\Magento\Command\Developer\Module\Disableenable\EnableCommand
Add command  dev:module:update -> N98\Magento\Command\Developer\Module\UpdateCommand
Add command  dev:module:list -> N98\Magento\Command\Developer\Module\ListCommand
Add command  dev:module:observer:list -> N98\Magento\Command\Developer\Module\Observer\ListCommand
Add command  dev:module:rewrite:conflicts -> N98\Magento\Command\Developer\Module\Rewrite\ConflictsCommand
Add command  dev:module:rewrite:list -> N98\Magento\Command\Developer\Module\Rewrite\ListCommand
Add command  dev:module:dependencies:on -> N98\Magento\Command\Developer\Module\Dependencies\OnCommand
Add command  dev:module:dependencies:from -> N98\Magento\Command\Developer\Module\Dependencies\FromCommand
Add command  dev:profiler -> N98\Magento\Command\Developer\ProfilerCommand
Add command  dev:report:count -> N98\Magento\Command\Developer\Report\CountCommand
Add command  dev:class:lookup -> N98\Magento\Command\Developer\ClassLookupCommand
Add command  dev:symlinks -> N98\Magento\Command\Developer\SymlinksCommand
Add command  dev:merge-css -> N98\Magento\Command\Developer\MergeCssCommand
Add command  dev:merge-js -> N98\Magento\Command\Developer\MergeJsCommand
Add command  dev:template-hints-blocks -> N98\Magento\Command\Developer\TemplateHintsBlocksCommand
Add command  dev:template-hints -> N98\Magento\Command\Developer\TemplateHintsCommand
Add command  dev:theme:duplicates -> N98\Magento\Command\Developer\Theme\DuplicatesCommand
Add command  dev:theme:list -> N98\Magento\Command\Developer\Theme\ListCommand
Add command  dev:theme:info -> N98\Magento\Command\Developer\Theme\InfoCommand
Add command  dev:translate:admin -> N98\Magento\Command\Developer\Translate\InlineAdminCommand
Add command  dev:translate:shop -> N98\Magento\Command\Developer\Translate\InlineShopCommand
Add command  dev:translate:set -> N98\Magento\Command\Developer\Translate\SetCommand
Add command  dev:translate:export -> N98\Magento\Command\Developer\Translate\ExportCommand
Add command  eav:attribute:create-dummy-values -> N98\Magento\Command\Eav\Attribute\Create\DummyCommand
Add command  eav:attribute:list -> N98\Magento\Command\Eav\Attribute\ListCommand
Add command  eav:attribute:remove -> N98\Magento\Command\Eav\Attribute\RemoveCommand
Add command  eav:attribute:view -> N98\Magento\Command\Eav\Attribute\ViewCommand
Add command  giftcard:create -> N98\Magento\Command\GiftCard\CreateCommand
Add command  giftcard:info -> N98\Magento\Command\GiftCard\InfoCommand
Add command  giftcard:remove -> N98\Magento\Command\GiftCard\RemoveCommand
Add command  giftcard:pool:generate -> N98\Magento\Command\GiftCard\Pool\GenerateCommand
Add command  index:list -> N98\Magento\Command\Indexer\ListCommand
Add command  index:list:mview -> N98\Magento\Command\Indexer\ListMviewCommand
Add command  index:reindex:all -> N98\Magento\Command\Indexer\ReindexAllCommand
Add command  index:reindex:mview -> N98\Magento\Command\Indexer\ReindexMviewCommand
Add command  index:reindex -> N98\Magento\Command\Indexer\ReindexCommand
Add command  install -> N98\Magento\Command\Installer\InstallCommand
Add command  uninstall -> N98\Magento\Command\Installer\UninstallCommand
Add command  local-config:generate -> N98\Magento\Command\LocalConfig\GenerateCommand
Add command  extension:download -> N98\Magento\Command\MagentoConnect\DownloadExtensionCommand
Add command  extension:install -> N98\Magento\Command\MagentoConnect\InstallExtensionCommand
Add command  extension:list -> N98\Magento\Command\MagentoConnect\ListExtensionsCommand
Add command  extension:upgrade -> N98\Magento\Command\MagentoConnect\UpgradeExtensionCommand
Add command  extension:validate -> N98\Magento\Command\MagentoConnect\ValidateExtensionCommand
Add command  media:cache:image:clear -> N98\Magento\Command\Media\Cache\Image\ClearCommand
Add command  media:cache:jscss:clear -> N98\Magento\Command\Media\Cache\JsCss\ClearCommand
Add command  media:dump -> N98\Magento\Command\Media\DumpCommand
Add command  open-browser -> N98\Magento\Command\OpenBrowserCommand
Add command  script -> N98\Magento\Command\ScriptCommand
Add command  script:repo:list -> N98\Magento\Command\Script\Repository\ListCommand
Add command  script:repo:run -> N98\Magento\Command\Script\Repository\RunCommand
Add command  self-update -> N98\Magento\Command\SelfUpdateCommand
Add command  shell -> N98\Magento\Command\ShellCommand
Add command  sys:check -> N98\Magento\Command\System\CheckCommand
Add command  sys:cron:history -> N98\Magento\Command\System\Cron\HistoryCommand
Add command  sys:cron:list -> N98\Magento\Command\System\Cron\ListCommand
Add command  sys:cron:run -> N98\Magento\Command\System\Cron\RunCommand
Add command  sys:info -> N98\Magento\Command\System\InfoCommand
Add command  sys:maintenance -> N98\Magento\Command\System\MaintenanceCommand
Add command  sys:setup:compare-versions -> N98\Magento\Command\System\Setup\CompareVersionsCommand
Add command  sys:setup:change-version -> N98\Magento\Command\System\Setup\ChangeVersionCommand
Add command  sys:setup:remove -> N98\Magento\Command\System\Setup\RemoveCommand
Add command  sys:setup:run -> N98\Magento\Command\System\Setup\RunCommand
Add command  sys:setup:incremental -> N98\Magento\Command\System\Setup\IncrementalCommand
Add command  sys:store:config:base-url:list -> N98\Magento\Command\System\Store\Config\BaseUrlListCommand
Add command  sys:store:list -> N98\Magento\Command\System\Store\ListCommand
Add command  sys:url:list -> N98\Magento\Command\System\Url\ListCommand
Add command  sys:website:list -> N98\Magento\Command\System\Website\ListCommand
Add command  composer:init -> Composer\Command\InitCommand
Add command  composer:install -> Composer\Command\InstallCommand
Add command  composer:require -> Composer\Command\RequireCommand
Add command  composer:update -> Composer\Command\UpdateCommand
Add command  composer:validate -> Composer\Command\ValidateCommand
Add command  composer:search -> Composer\Command\SearchCommand
Add command  composer:diagnose -> Composer\Command\DiagnoseCommand
Add command  cms:block:dump -> DIW\Magento\Command\CMS\Block\DumpCommand
Add command  cms:block:list -> DIW\Magento\Command\CMS\Block\ListCommand
Add command  cms:block:load -> DIW\Magento\Command\CMS\Block\LoadCommand
Add command  cms:page:dump -> DIW\Magento\Command\CMS\Page\DumpCommand
Add command  cms:page:list -> DIW\Magento\Command\CMS\Page\ListCommand
Add command  cms:page:load -> DIW\Magento\Command\CMS\Page\LoadCommand
wpalmer commented 6 years ago

Can you let me know the full command-line, including any pipelines, you used to run this?

AngelsDustz commented 6 years ago

Yeah sure the full command run is magerun cms:block:load < filename.json where the filename.json is generated by using magerun cms:block:dump > filename.json on a different webstore.

I also tried to cat the data in with no avail so I tried cat filename.json | magerun cms:block:load That is all there is to it really. Thanks for responding so fast!

edit: cleared up a line that could be interpreted wrong

wpalmer commented 6 years ago

Are you able to share the contents of filename.json? (a secret gist would be fine if you would prefer not to add the contents to a public ticket, let me know if you'd prefer that and I can give you options for where to send a link)

AngelsDustz commented 6 years ago

I forgot I made this issue, whoops. Due to it containing customer's data I can't give it sadly. Are you unable to reproduce it?