Question

Migrating pimcore 10.6 version to 11.0, composer udpate got success, error in migration

Hi Team,

Im trying to update pimcore v 10.6.9 to v 11.0

After composer update is successful, i executed bin/console doctrine:migrations:migrate command getting button error

How to implement button layout custom ? can i get the reference for this with js and how to call it in classes?

is there any other layout which i can use instead button ?

please refer the below link for the error screenshots

https://imgur.com/a/lKRoYHc

The github links which are given in the documents of custom layout button are not opening, getting error page, those files are not exists in the version link given, none of the links are working from the documents given.

Documents are not clear, where to add js and php files if created custom? how to call it and how to use it ?

i have created button.php file inside the path var/classes/Layout/ is it right way?

js file where to add ? we should add js files in the bundle where we needed ?

php file how to call in the class or in the class admin UI?

Can anyone suggest or give the idea to solve this issue?

Thanks in advance

Thejaswini Rao U


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
September 6, 2023

Hi there,

It sounds like the button custom layout class can not be found.

According to the Pimcore official documentation, you might have to rebuild the classes, objectBricks, fieldCollections and customLayouts as described here:

https://pimcore.com/docs/platform/Pimcore/Installation_and_Upgrade/Updating_Pimcore/V10_to_V11/

To do that you can try the following commands to rebuild the classes, objectBricks, fieldCollections and customLayouts:

bin/console doctrine:migration:exec 'Pimcore\Bundle\CoreBundle\Migrations\Version20230412105530'

Make sure to always take a backup before doing such major upgrades so that you can revert back in case anything goes wrong!

Let me know how it goes!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel