{"id":13915946,"date":"2021-01-16T13:38:00","date_gmt":"2021-01-16T13:38:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/after-deactivation-of-plugin-there-are-fatal-errors\/"},"modified":"2021-01-16T13:38:00","modified_gmt":"2021-01-16T13:38:00","slug":"after-deactivation-of-plugin-there-are-fatal-errors","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/after-deactivation-of-plugin-there-are-fatal-errors\/","title":{"rendered":"After deactivation of Plugin there are fatal errors"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>i tried the plugin for learning, but quickly realised, that it is sadly not, what i was searching for. <\/p>\n<p>After deactivation i came across these fatal errors. I could imagine that there is some issues with user-based changes in the database. Is there a simple soulution to change some settings (i.e. custom fields) for a as previous state?<\/p>\n<p>The Errors occur on a Page with a custom Shortcode defined in the functions.php:<br \/>\nhttps:\/\/master.fk12.org\/personen\/<\/p>\n<p>As well as on a post page (with \u00bbDisplay Post\u00ab Shortcode):<br \/>\nhttps:\/\/master.fk12.org\/protest-eine-zukunftspraxis\/<\/p>\n<p>Thank you so much for your help. I appreciate it a lot. =)<\/p>\n<p>Here attached the custom Shortcode defined in the functions.php:<\/p>\n<pre><code>function mr_list_users($atts) {\n    \/\/ Keine shortcode_atts, da dann dynamische Nummer von Attributen m\u00f6glich\n    $query = new WP_User_Query($atts);\n    $results = $query-&gt;get_results();\n\n    \/\/ Keine Resultate\n    if (empty($results)) {\n        return;\n    }\n\n\t\n    \/\/ Resultate\n    ob_start();\n    echo &#039;&lt;div class=&quot;container&quot; data-ref=&quot;container&quot;&gt;&#039;;\n    foreach ($results as $item) {\n?&gt;\n\n&lt;div class=&quot;mix &lt;?php echo esc_html(strtolower($item-&gt;display_name)); ?&gt; \n\t\t\t\t\t&lt;?php echo &#039;year-&#039;;echo esc_html($item-&gt;year_started_master); ?&gt; \n\t\t\t\t\t&lt;?php echo &#039;alumni-&#039;; echo esc_html($item-&gt;alumni); ?&gt;&quot;&gt;\n    &lt;a href=&quot;&lt;?php echo get_author_posts_url($item-&gt;ID); ?&gt;&quot;&gt;\n        &lt;div class=&quot;hover-container&quot;&gt;\n\t\t\t&lt;div class=&quot;hover-image&quot;&gt; &lt;?php echo get_avatar($item-&gt;user_email, 500); ?&gt;&lt;\/div&gt;\n                &lt;div class=&quot;hover-overlay&quot;&gt;\n                    &lt;div class=&quot;hover-text&quot;&gt;\n                        &lt;?php echo esc_html($item-&gt;user_description); ?&gt;\n                    &lt;\/div&gt;\n                &lt;\/div&gt;\n        &lt;\/div&gt;\n\t\t    &lt;\/a&gt;\n    &lt;div&gt;\n\t\t&lt;p&gt;\n\t\t\t\t\t&lt;?php echo esc_html($item-&gt;display_name); ?&gt;\n\t\t&lt;\/p&gt;\n\t&lt;\/div&gt;\n&lt;\/div&gt;\n\n \u00a0 \u00a0&lt;?php\n    }\n    echo &#039;&lt;\/div&gt;&#039;;\n    return ob_get_clean();\n}\n\nadd_shortcode(&#039;list_users&#039;, &#039;mr_list_users&#039;);<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-13915946","topic","type-topic","status-publish","hentry","topic-tag-critical-error","topic-tag-database","topic-tag-deactivation","topic-tag-fatal-error"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13915946","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":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13915946\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13915946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}