{"id":8997794,"date":"2017-04-05T18:34:40","date_gmt":"2017-04-05T18:34:40","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-loading-scripts-js-css-in-admin-area\/"},"modified":"2017-04-05T18:35:41","modified_gmt":"2017-04-05T18:35:41","slug":"error-loading-scripts-js-css-in-admin-area","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-loading-scripts-js-css-in-admin-area\/","title":{"rendered":"Error loading scripts(.js\/.css) in admin area"},"content":{"rendered":"<p>I just installed the plugin and found it great, but I have a big problem of delay in loading the panel.<br \/>\n<img decoding=\"async\"  src=\"\/\/i1.wp.com\/floripasom.com.br\/imagens\/the-event-calendar-error.jpg\" alt=\"printscreen F12 Chrome debug bar\" \/><\/p>\n<p>Something is wrong with loading scripts into the dashbord area and causing a majour delay in all areas of the dashboard.<br \/>\nThere is a confusion with plugin_path, plugin_dir, plugin_url, which created a wrong url (non-existent) to call the files.<br \/>\n.<br \/>\nI suspect that the error is in using the defined directory variables<br \/>\n.<br \/>\nI set the variables in my wp-config.php<\/p>\n<pre><code>\nDefine(&#039;WP_PLUGIN_DIR&#039;, &#039;\/home\/DOMAIN\/public_html\/PLUGIN-DIR&#039;);\nDefine(&#039;FTP_PLUGIN_DIR&#039;, &#039;\/home\/DOMAIN\/public_html\/PLUGIN-DIR\/&#039;);\nDefine(&#039;WP_PLUGIN_URL&#039;, &#039;http:\/\/SITE-DOMAIN\/PLUGIN-DIR&#039;);\n<\/code><\/pre>\n<p>From what i see &#8220;The Event Calendar&#8221; is using site_url + plugin_path<br \/>\nAnd not &#8220;plugin_url&#8221;<br \/>\n.<br \/>\ntanks<br \/>\n&#8211;<br \/>\nTranslated by Google<\/p>\n","protected":false},"template":"","class_list":["post-8997794","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8997794","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\/8997794\/revisions"}],"predecessor-version":[{"id":8997800,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8997794\/revisions\/8997800"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8997794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}