{"id":17812463,"date":"2024-06-09T18:25:14","date_gmt":"2024-06-09T18:25:14","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/deprecated-errors-16\/"},"modified":"2024-06-09T19:11:30","modified_gmt":"2024-06-09T19:11:30","slug":"deprecated-errors-16","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/deprecated-errors-16\/","title":{"rendered":"Deprecated errors"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Site above is in next to final build mode. Have the Call Now button on several sites with no issues. Installed on a site with a common theme template used before (Overlap) and am getting deprecated errors. How to fix? <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\domain\\CnbDomain::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/domain\/CnbDomain.php<\/strong>&nbsp;on line&nbsp;<strong>182<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\domain\\CnbDomainProperties::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in\u00a0<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/domain\/CnbDomain.php<\/strong>\u00a0on line\u00a0<strong>243<\/strong><br \/><br \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\domain\\CnbDomain::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/domain\/CnbDomain.php<\/strong>&nbsp;on line&nbsp;<strong>182<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\domain\\CnbDomainProperties::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/domain\/CnbDomain.php<\/strong>&nbsp;on line&nbsp;<strong>243<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/admin.php?page=call-now-button&amp;action=edit&amp;type=single&amp;id=button_9f34895d_c6ff_43cf_9eda_b905223d9fb8&amp;tid=cnb-25dd08ac-71e2-4d5f-886c-e6504e3f329f&amp;tab=scheduler#wpbody-content\">Skip to main content<\/a><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/admin.php?page=call-now-button&amp;action=edit&amp;type=single&amp;id=button_9f34895d_c6ff_43cf_9eda_b905223d9fb8&amp;tid=cnb-25dd08ac-71e2-4d5f-886c-e6504e3f329f&amp;tab=scheduler#wp-toolbar\">Skip to toolbar<\/a><\/p>\n\n\n\n<ul>\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/index.php\">Dashboard<\/a>\n<ul>\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/index.php\">Home<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/update-core.php\">Updates\u00a01<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/edit.php\">Posts<\/a>\n<ul>\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/edit.php\">All Posts<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/post-new.php\">Add New Post<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/edit-tags.php?taxonomy=category\">Categories<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/edit-tags.php?taxonomy=post_tag\">Tags<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/upload.php\">Media<\/a>\n<ul>\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/upload.php\">Library<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/media-new.php\">Add New Media File<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/edit.php?post_type=page\">Pages<\/a>\n<ul>\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/edit.php?post_type=page\">All Pages<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/post-new.php?post_type=page\">Add New Page<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/edit-comments.php\">Comments<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/admin.php?page=call-now-button\">Buttons<\/a>\n<ul>\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/admin.php?page=call-now-button\">All buttons<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/admin.php?page=call-now-button&amp;action=new\">Add New<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/admin.php?page=call-now-button-templates\">Templates<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/admin.php?page=call-now-button-settings\">Settings<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/themes.php\">Appearance<\/a>\n<ul>\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/themes.php\">Themes<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/edit.php?post_type=wp_block\">Patterns<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/customize.php?return=%2Fwp-admin%2Fadmin.php%3Fpage%3Dcall-now-button%26action%3Dedit%26type%3Dsingle%26id%3Dbutton_9f34895d_c6ff_43cf_9eda_b905223d9fb8%26tid%3Dcnb-25dd08ac-71e2-4d5f-886c-e6504e3f329f%26tab%3Dscheduler\">Customize<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/widgets.php\">Widgets<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/nav-menus.php\">Menus<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/themes.php?page=install-bundled-plugins\">Install Plugins<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/theme-editor.php\">Theme File Editor<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/plugins.php\">Plugins\u00a01<\/a>\n<ul>\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/plugins.php\">Installed Plugins<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/plugin-install.php\">Add New Plugin<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/plugin-editor.php\">Plugin File Editor<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/users.php\">Users<\/a>\n<ul>\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/users.php\">All Users<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/user-new.php\">Add New User<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/profile.php\">Profile<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/tools.php\">Tools<\/a>\n<ul>\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/tools.php\">Available Tools<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/import.php\">Import<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/export.php\">Export<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/site-health.php\">Site Health\u00a02<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/export-personal-data.php\">Export Personal Data<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/erase-personal-data.php\">Erase Personal Data<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/options-general.php\">Settings<\/a>\n<ul>\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/options-general.php\">General<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/options-writing.php\">Writing<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/options-reading.php\">Reading<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/options-discussion.php\">Discussion<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/options-media.php\">Media<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/options-permalink.php\">Permalinks<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/options-privacy.php\">Privacy<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Collapse menu<\/li>\n<\/ul>\n\n\n\n<ul>\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/about.php\">About WordPress<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/\">The Luv Bug Pet Nanny<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/update-core.php\">11 update available<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/edit-comments.php\">00 Comments in moderation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/post-new.php\">New<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/\">Troubleshooting Mode<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/theluvbugpetnanny.com\/wp-admin\/profile.php\">Howdy,\u00a0Jennifer Taylor<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\models\\CnbUser::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/models\/CnbUser.php<\/strong>&nbsp;on line&nbsp;<strong>126<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\models\\CnbUserTaxId::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/models\/CnbUser.php<\/strong>&nbsp;on line&nbsp;<strong>172<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\models\\CnbUserTaxIdVerification::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/models\/CnbUser.php<\/strong>&nbsp;on line&nbsp;<strong>205<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\models\\CnbUserAddress::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/models\/CnbUser.php<\/strong>&nbsp;on line&nbsp;<strong>249<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\models\\CnbUserStripeDetails::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/models\/CnbUser.php<\/strong>&nbsp;on line&nbsp;<strong>283<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\models\\CnbUserMarketingData::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/models\/CnbUser.php<\/strong>&nbsp;on line&nbsp;<strong>330<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\button\\CnbButton::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/button\/CnbButton.php<\/strong>&nbsp;on line&nbsp;<strong>238<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\button\\CnbButtonOptions::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/button\/CnbButton.php<\/strong>&nbsp;on line&nbsp;<strong>316<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\button\\CnbMultiButtonOptions::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/button\/CnbButton.php<\/strong>&nbsp;on line&nbsp;<strong>412<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\button\\CnbScrollOptions::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/button\/CnbButton.php<\/strong>&nbsp;on line&nbsp;<strong>454<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\action\\CnbAction::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/action\/CnbAction.php<\/strong>&nbsp;on line&nbsp;<strong>223<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\action\\CnbActionProperties::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/action\/CnbAction.php<\/strong>&nbsp;on line&nbsp;<strong>241<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: Return type of cnb\\admin\\action\\CnbActionSchedule::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/admin\/action\/CnbAction.php<\/strong>&nbsp;on line&nbsp;<strong>291<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/utils\/cnb-backwards-compatible.php<\/strong>&nbsp;on line&nbsp;<strong>112<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deprecated<\/strong>: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in&nbsp;<strong>\/home9\/theluvbu\/public_html\/wp-content\/plugins\/call-now-button\/src\/utils\/cnb-backwards-compatible.php<\/strong>&nbsp;on line&nbsp;<strong>115<\/strong><\/p>\n","protected":false},"template":"","class_list":["post-17812463","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17812463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17812463\/revisions"}],"predecessor-version":[{"id":17812469,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17812463\/revisions\/17812469"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17812463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}