Title: Angular JS Error &#8211; Doesnt do anything
Last modified: August 31, 2016

---

# Angular JS Error – Doesnt do anything

 *  [Andy Brudtkuhl](https://wordpress.org/support/users/abrudtkuhl/)
 * (@abrudtkuhl)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/)
 * Just says “fetching server” and has the following Angular error
 * Error: [$resource:badcfg] [http://errors.angularjs.org/1.4.8/$resource/badcfg?p0=shortcodes&p1=array&p2=object&p3=GET&p4=%2Fwp-admin%2Fadmin-ajax.php](http://errors.angularjs.org/1.4.8/$resource/badcfg?p0=shortcodes&p1=array&p2=object&p3=GET&p4=%2Fwp-admin%2Fadmin-ajax.php)
   
   at Error (native)
 * [https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/](https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/page/2/?output_format=md)

 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121556)
 * Hello andy, with version of the plugin are you using?
 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121560)
 * I think maybe you have the case of shortcodes in excerpt (short description),
   i didn’t test this case, i will try to add one shortcode and see if i get the
   error
    Probably the problem is here: `$result= array_merge($resultContent,$resultExcerpt);`
 *  Thread Starter [Andy Brudtkuhl](https://wordpress.org/support/users/abrudtkuhl/)
 * (@abrudtkuhl)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121581)
 * Latest version
 * There aren’t any shortcodes in excerpts that I know of
 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121607)
 * I didn’t found anything weird :/ maybe you can test changing the
    The `echo json_encode(
   $result);` To `echo json_encode($result, JSON_OBJECT_AS_ARRAY);` from the function
   readShortCodes() of the ImageRestDNUI (php->rest), and see what happen, other
   thing that can help me is see what is getting from the ajax call (ctrl+shift+
   i or ctrl+shift+k) and see what is the answer [http://www.nicearma.com/wp-content/uploads/2016/02/debug-shortcode.png](http://www.nicearma.com/wp-content/uploads/2016/02/debug-shortcode.png)
 * Maybe you are getting one PHP error, i sow that JSON_ENCODE can have problem 
   with special chars, so other question would be witch version of PHP you use?,
   and if you use special chars? (you blog is not in English )
 * You can disabled the shortcode check and see if the other part are working fine,
   i will try to fix the problem with your help.
 * PD: It’s a little late in France, i will see your answer the soon i wake up
 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121658)
 * Hello, you could do the change? any news?
 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121860)
 * I added the log system, and i made some code changes, tell me if the plugin work
   fine, if not i can help you with the log system 🙂
 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121885)
 * I think i can put this like resolved, if is not the case, i will be here for 
   fix it
 *  [kloevstroem](https://wordpress.org/support/users/kloevstroem/)
 * (@kloevstroem)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121893)
 * Hey
 * I’m having this issue as well.
 * Fetching server…
 * Stuck forever..
 * angular.min.js?ver=4.4.2:107 Error: [$resource:badcfg] [http://errors.angularjs.org/1.4.8/$resource/badcfg?p0=shortcodes&p1=array&p2=object&p3=GET&p4=%2Fwp%2Fwp-admin%2Fadmin-ajax.php](http://errors.angularjs.org/1.4.8/$resource/badcfg?p0=shortcodes&p1=array&p2=object&p3=GET&p4=%2Fwp%2Fwp-admin%2Fadmin-ajax.php)
   
   at Error (native) at [http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:6:416](http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:6:416)
   at k.then.p.$resolved ([http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular-resource.min.js?ver=4.4.2:9:408](http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular-resource.min.js?ver=4.4.2:9:408))
   at [http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:119:129](http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:119:129)
   at r.$eval ([http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:133:313](http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:133:313))
   at r.$digest ([http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:130:412](http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:130:412))
   at r.$apply ([http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:134:78](http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:134:78))
   at g ([http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:87:444](http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:87:444))
   at T ([http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:92:50](http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:92:50))
   at XMLHttpRequest.w.onload ([http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:93:78](http://domain.tld/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:93:78))
 *  [ClearMind](https://wordpress.org/support/users/clearmind/)
 * (@clearmind)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121895)
 * The same problem.
    The system is: Wordpress 4.4.2 Apache 2.4.10-10+deb8u3 MySQL
   5.5.46-0+deb8u1 PHP 5.6.14+dfsg-0+deb8u1 Perl 5.20.2-3+deb8u1 Kernel 2.6.32-042stab113.17
 * I also tried to turn off all the plugins but no succsess.
    All the time I see
   the Fetching server… on white screen.
 * Here is a console messages:
 * angular.min.js:107 Error: [$resource:badcfg] [http://errors.angularjs.org/1.4.8/$resource/badcfg?p0=shortcodes&p1=array&p2=object&p3=GET&p4=%2Fwp-admin%2Fadmin-ajax.php](http://errors.angularjs.org/1.4.8/$resource/badcfg?p0=shortcodes&p1=array&p2=object&p3=GET&p4=%2Fwp-admin%2Fadmin-ajax.php)
   
   at Error (native) at /wp-content/plugins/dnui-delete-not-used-image-wordpress/
   js/external/angular.min.js?ver=4.4.2:6:416 at k.then.p.$resolved (/wp-content/
   plugins/dnui-delete-not-used-image-wordpress/js/external/angular-resource.min.
   js?ver=4.4.2:9:408) at /wp-content/plugins/dnui-delete-not-used-image-wordpress/
   js/external/angular.min.js?ver=4.4.2:119:129 at r.$eval (/wp-content/plugins/
   dnui-delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:133:
   313) at r.$digest (/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/
   external/angular.min.js?ver=4.4.2:130:412) at r.$apply (/wp-content/plugins/dnui-
   delete-not-used-image-wordpress/js/external/angular.min.js?ver=4.4.2:134:78) 
   at g (/wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.
   min.js?ver=4.4.2:87:444) at T (/wp-content/plugins/dnui-delete-not-used-image-
   wordpress/js/external/angular.min.js?ver=4.4.2:92:50) at XMLHttpRequest.w.onload(/
   wp-content/plugins/dnui-delete-not-used-image-wordpress/js/external/angular.min.
   js?ver=4.4.2:93:78)(anonymous function) @ angular.min.js:107(anonymous function)
   @ angular.min.js:81(anonymous function) @ angular.min.js:119r.$eval @ angular.
   min.js:133r.$digest @ angular.min.js:130r.$apply @ angular.min.js:134g @ angular.
   min.js:87T @ angular.min.js:92w.onload @ angular.min.js:93
 *  [kloevstroem](https://wordpress.org/support/users/kloevstroem/)
 * (@kloevstroem)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121896)
 * Oh forgot to mention I’m running Nginx and PHP7.03
 *  [ClearMind](https://wordpress.org/support/users/clearmind/)
 * (@clearmind)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121897)
 * I have too nginx 1.8.0-1~jessie
 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121898)
 * Hello,
 * I change the status to not resolved.
 * I think i have already identify the problem, the error logic is catching others
   plugin errors, and when the plugin make an ajax calls, the result have the good
   answer mixed with the error message, i already fix this in the dev github branch,
   but because i didn’t test it in PHP 7 and neither nginx i will install one virtual
   machine with this two and see if i get other errors
 *  [kloevstroem](https://wordpress.org/support/users/kloevstroem/)
 * (@kloevstroem)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121899)
 * Nicearma i tested the master branch from git and the issue is still not resolved..
 *  [kloevstroem](https://wordpress.org/support/users/kloevstroem/)
 * (@kloevstroem)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121900)
 * Disabling all other plugins doesnt seem to affect the result, so I’m confident
   the bug is in the plugin itself, and not errors cause by other plugins..
 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/#post-7121901)
 * [@kloevstroem](https://wordpress.org/support/users/kloevstroem/) thanks for the
   return, i will what is going on

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/page/2/?output_format=md)

The topic ‘Angular JS Error – Doesnt do anything’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dnui-delete-not-used-image-wordpress.
   svg)
 * [DNUI](https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dnui-delete-not-used-image-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/dnui-delete-not-used-image-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dnui-delete-not-used-image-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dnui-delete-not-used-image-wordpress/reviews/)

 * 19 replies
 * 4 participants
 * Last reply from: [nicearma](https://wordpress.org/support/users/nicearma/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/angular-js-error-doesnt-do-anything/page/2/#post-7121916)
 * Status: not resolved