Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

My site displays the following script error in IE8:

Webpage error details
Message: 'ajaxurl' is undefined
Line: 1
Char: 102
Code: 0
URI: http://www.superlogical.net/wp-includes/js/wp-lists.js?ver=20110521

I can't see what is calling wp-lists.js.

Any ideas?

share|improve this question

1 Answer 1

wp-lists.js seems to be one of scripts, used in WP admin. Assuming ajaxurl is defined is from there as well.

This is likely some plugin, trying to use these in admin area but (being poorly coded) loading them everyhwere.

share|improve this answer
    
Thanks. The code ajaxurl is only contained in two plugins: Add This, and Wordpress SEO. I will see which one is causing the problem. –  Steve Jul 22 '11 at 9:50
    
:-S Deactivating them one by one didn't make a difference - error is still there. –  Steve Jul 22 '11 at 9:54
2  
@Steve don't search for that, it might just be called in one of scripts internally. Look for something like wp_enqueue_script('wp-lists'). –  Rarst Jul 22 '11 at 10:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.