Title: Weird Script Error on Image Pages
Last modified: August 31, 2016

---

# Weird Script Error on Image Pages

 *  [Mike H](https://wordpress.org/support/users/mtnweekly/)
 * (@mtnweekly)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/weird-script-error-on-image-pages/)
 * Please see the error showing on this page – [http://mtnweekly.com/crested-butte-ski-photos07-2](http://mtnweekly.com/crested-butte-ski-photos07-2)
 * Error details:
 * jQuery.ajax({ url: “[http://mtnweekly.com/wp-content/plugins/top-10/includes/top-10-addcount.js.php&#8221](http://mtnweekly.com/wp-content/plugins/top-10/includes/top-10-addcount.js.php&#8221);,
   data: { top_ten_id: 25626, top_ten_blog_id
 * [https://wordpress.org/plugins/top-10/](https://wordpress.org/plugins/top-10/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/weird-script-error-on-image-pages/#post-7398011)
 * That’s strange. It seems like it’s hitting all the potentially media post types.
 * It shows up as the post title:
 *     ```
       <h1 class="post_title">jQuery.ajax({
       							url: "http://mtnweekly.com/wp-content/plugins/top-10/includes/top-10-addcount.js.php",
       							data: {
       								top_ten_id: 25626,
       								top_ten_blog_id</h1>
       ```
   
 * Can you try a couple of things:
 * a) Deactivate Top 10 (don’t delete)
    b) Change to another theme temporarily
 *  Thread Starter [Mike H](https://wordpress.org/support/users/mtnweekly/)
 * (@mtnweekly)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/weird-script-error-on-image-pages/#post-7398042)
 * I was able to get the error to go away by doing the steps mentioned above. No
   script message when deactivating top 10. Also same when changing themes, and 
   then top 10 activated with old theme. No error. When I switch back to the current
   theme the error message below returns:
 * `jQuery.ajax({ url: "http://mtnweekly.com/wp-content/plugins/top-10/includes/
   top-10-addcount.js.php", data: { top_ten_id: 25626, top_ten_blog_id`
 * Looks like its happening with all media as I scroll across the next or previous
   photos.
 * Let me know what you think.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/weird-script-error-on-image-pages/#post-7398049)
 * Which theme is this? Is it a free one I can have access to?
 *  Thread Starter [Mike H](https://wordpress.org/support/users/mtnweekly/)
 * (@mtnweekly)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/weird-script-error-on-image-pages/#post-7398112)
 * I am using the Theme Forest Spotlight Magazine Theme. I can give you access to
   the backend. This error is starting to show up in Google search results..
 * So I really need to get this cleaned up.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [10 years, 2 months ago](https://wordpress.org/support/topic/weird-script-error-on-image-pages/#post-7398113)
 * > I can give you access to the backend.
 * Please don’t. That would get a form letter reply like so.
 * >  I’m am 100% sure you mean well but please _never offer to let anyone log into
   > your installation’s backend on these forums._
   > [http://codex.wordpress.org/Forum_Welcome#The_Bad_Stuff](http://codex.wordpress.org/Forum_Welcome#The_Bad_Stuff)
   > Now for the why: The internet is a wonderful place full of very nice people
   > and a few very bad ones. I’m sure everyone here is very nice however, by giving
   > some ones keys to your house you are trusting they wont steal anything. Likewise
   > the person who takes the keys is now responsible for the house FOREVER.
   > If something was to go wrong, then the author may well legally become liable
   > for damages, which they would not normally have been as their software is provided
   > without warranty.
 * So please, don’t offer that access to Ajay.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/weird-script-error-on-image-pages/#post-7398114)
 * Jan, I understand your concern on this point. But as the author of the plugin
   it’s almost impossible for me to debug anything without access to their sites.
 * In addition, I usually tell them to give me access only to staging sites. I don’t
   like to touch a production site.
 * And to contact me via [https://webberzone.com/contact/](https://webberzone.com/contact/)
   only which is the plugin site and never to post any public details in this forum.
 * I’m not sure what other route is there to help people who use the plugin and 
   experience issues that can’t be resolved via the forum. But happy to get your
   views on that.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [10 years, 2 months ago](https://wordpress.org/support/topic/weird-script-error-on-image-pages/#post-7398115)
 * Side note:
 * Ajay, you _know_ that I count you among the _Good Plugin Author List of Stardom
   ™_ and I have a ton of respect and admiration for you. Honest, you and I do see
   eye to eye and there’s no conflict here between us. 😉
 * _*Does fistbump in Ajay’s direction*_
 * That said (emphasis added by me):
 * > Jan, I understand your concern on this point. **But as the author of the plugin
   > it’s almost impossible for me to debug anything without access to their sites.**
 * It’s not about understanding. Really, author’s can’t ask and should not accept
   those offers in these forums. The reason is that these forums must remain a safe
   place for all users, experienced ones as well as first time users of WordPress.
 * _*Looks*_
 * I really need to write a post on make/support about this. 😉 Here’s what I replied
   to another author about the same thing.
 * >  There are many ways to get information you need and accessing the user’s site
   > is not one of them. That’s going too far.
    - Ask for a link to the [http://pasetbin.com/](http://pasetbin.com/) log of 
      the user’s web server error log.
    - Ask the user to create and post a link to their `phpinfo();` output.
    - Ask the user to install the [Send System Info plugin](https://wordpress.org/plugins/send-system-info/)
      and get the data that way.
    - Walk the user through [enabling WP_DEBUG and how to log that output to a file and how to share that file.](https://codex.wordpress.org/WP_DEBUG#WP_DEBUG_LOG_and_WP_DEBUG_DISPLAY)
    - Walk the user through basic troubleshooting steps such and disabling all other
      plugins except yours, switch to the Twenty Fifteen theme, clear their cache
      and cookies and try again.
    - Ask the user for the step-by-step on how they can reproduce the problem.
 * You get the idea.
 * Volunteer support is not easy. But these forums need to a safe place for all 
   users, experienced or new. Accessing their system that way is a short cut that
   will get you into real trouble in these forums.
 * Just to be clear to others: _anyone who follow’s Ajay knows that he is a good
   person, offers great support and writes good code for years._ I routinely interact
   with him here and on Twitter. I also hope he attends WCNYC this year if possible.
   😉
 * I’m replying here for the benefit of everyone. Authors accepting or offering 
   to access user’s installations that way is a step too far.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/weird-script-error-on-image-pages/#post-7398116)
 * Understood and completely agree with you. It’s not easy for every user to distinguish
   between the good, the bad and the ugly in our space and particularly in the forums.
 * And, thanks for the vote of confidence and the kind words.
    It’s always great
   to get others in the community weighing in on my work 🙂 And, hopefully, I do
   end up with a WCNYC sometime soon. Have done just the WC London a few years back.
 * Back on topic:
 * **[@mike](https://wordpress.org/support/users/mike/) Hardaker**, to help you 
   further on this one. Clearly the issue is with the theme’s compatibility with
   the plugin. Since it is a paid theme, I can’t test it out directly. However, 
   can you post the code from the template that is used for the media page. You 
   can figure this out by checking the output using Query Monitor plugin. It gives
   you a drop-down (at the top) with which template file is used.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Weird Script Error on Image Pages’ is closed to new replies.

 * ![](https://ps.w.org/top-10/assets/icon-256x256.png?rev=3619994)
 * [WebberZone Top 10 — Popular Posts](https://wordpress.org/plugins/top-10/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/top-10/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/top-10/)
 * [Active Topics](https://wordpress.org/support/plugin/top-10/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/top-10/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/top-10/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/weird-script-error-on-image-pages/#post-7398116)
 * Status: not resolved