Support Forum
Hello,
When I insert the basic short code for edit profile, I got this error.
This does not happen for other short codes.
Is there anyway you can support (I am using Oxygen by the way).
Thank you
Thibaut
please see the below error log file
[07-Apr-2021 22:22:39 UTC] PHP Warning: Creating default object from empty value in /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/src/Shortcodes/Info.php on line 62
[07-Apr-2021 22:22:39 UTC] PHP Fatal error: Uncaught Error: Call to undefined method stdClass::enqueue() in /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/src/Forms/Base.php:64
Stack trace:
#0 /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/src/Forms/Info.php(43): MBUP\Forms\Base->render()
#1 /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/src/Shortcodes/Base.php(42): MBUP\Forms\Info->render()
#2 /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-includes/shortcodes.php(343): MBUP\Shortcodes\Base->shortcode()
#3 [internal function]: do_shortcode_tag()
#4 /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-includes/shortcodes.php(218): preg_replace_callback()
#5 /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-content/plugins/oxygen/component-framework/components/layouts/shortcode.php(95): do_shortcode()
#6 /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-includes/template-loader.php(106): inclu in /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/src/Forms/Base.php on line 64
[07-Apr-2021 22:22:49 UTC] PHP Warning: Creating default object from empty value in /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/src/Shortcodes/Info.php on line 62
[07-Apr-2021 22:22:49 UTC] PHP Fatal error: Uncaught Error: Call to undefined method stdClass::enqueue() in /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/src/Forms/Base.php:64
Stack trace:
#0 /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/src/Forms/Info.php(43): MBUP\Forms\Base->render()
#1 /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/src/Shortcodes/Base.php(42): MBUP\Forms\Info->render()
#2 /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-includes/shortcodes.php(343): MBUP\Shortcodes\Base->shortcode()
#3 [internal function]: do_shortcode_tag()
#4 /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-includes/shortcodes.php(218): preg_replace_callback()
#5 /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(54): do_shortcode()
#6 /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-includes/shortcodes.php(343): CT_S in /srv/data/web/vhosts/bibinoblog.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/src/Forms/Base.php on line 64
Hi,
Please add the available meta box ID to the id
attribute of the shortcode user profile. If you are using the Builder to create the meta box, please edit it and get the Field Groups ID, screenshot https://share.getcloudapp.com/5zuB1jq8.
The shortcode should be:
[ mb_user_profile_info id="post-meta" submit_button="Submit" confirmation="Your information has been successfully submitted. Thank you." ]