{"id":16232805,"date":"2022-11-25T00:01:38","date_gmt":"2022-11-25T00:01:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/problems-found\/"},"modified":"2022-11-25T00:01:38","modified_gmt":"2022-11-25T00:01:38","slug":"problems-found","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/problems-found\/","title":{"rendered":"problems found"},"content":{"rendered":"<p>I&#8217;m testing the plugin, and unfortunately it has some errors like the following:<\/p>\n<p>&#8211; The plugin is not compatible or does not have the possibility to add specific role capabilities<\/p>\n<p>so modify the following file<\/p>\n<p>plugins\\wp-support-ticket\\includes\\class-ticket.php<\/p>\n<p>adding the following code<\/p>\n<pre><code>&#039;capability_type&#039; =&gt; &#039;pl_support&#039;,\n            &#039;capabilities&#039; =&gt; array(\n                &#039;edit_pl_support&#039; =&gt; &#039;edit_pl_support&#039;, \n                &#039;read_pl_support&#039; =&gt; &#039;read_pl_support&#039;, \n                &#039;delete_pl_support&#039; =&gt; &#039;delete_pl_support&#039;, \n                &#039;edit_pl_supports&#039; =&gt; &#039;edit_pl_supports&#039;, \n                &#039;edit_others_pl_supports&#039; =&gt; &#039;edit_others_pl_supports&#039;,\n                &#039;publish_pl_supports&#039; =&gt; &#039;publish_pl_supports&#039;,\n                &#039;read_private_pl_supports&#039; =&gt; &#039;read_private_pl_supports&#039;,\n                &#039;create_pl_supports&#039; =&gt; &#039;edit_pl_supports&#039;,\n),<\/code><\/pre>\n<p>&#8211; If I am creating a tickect, and I only leave the title entered, it generates an error, since the image does not fit<\/p>\n<p>&#8211; also detected an error in the code<\/p>\n<p>plugins\\wp-support-ticket\\includes\\class-ticket-meta.php<\/p>\n<p>pass this<\/p>\n<p><code>$message1 .= __(&#039;Hello,&#039;,&#039;wp-support-ticket&#039;) . &quot;\\r\\n\\r\\n&quot;;<\/code><\/p>\n<p>to<\/p>\n<p><code>$message1 = __(&#039;Hello,&#039;,&#039;wp-support-ticket&#039;) . &quot;\\r\\n\\r\\n&quot;;<\/code><\/p>\n<p>&#8211; <\/p>\n","protected":false},"template":"","class_list":["post-16232805","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16232805","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\/16232805\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16232805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}