Title: [Plugin: Infinite-Scroll] JavaScript Not Loading: infinitescroll.init.js.php returns a 404
Last modified: August 20, 2016

---

# [Plugin: Infinite-Scroll] JavaScript Not Loading: infinitescroll.init.js.php returns a 404

 *  [esdizzle](https://wordpress.org/support/users/esdizzle/)
 * (@esdizzle)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-infinite-scroll-javascript-not-loading-infinitescrollinitjsphp-returns-a-404/)
 * Great plugin and thanks to the developers who created and support it!
 * I am running wordpress 3.4.1 and using the multisite feature to create a network
   of sites. I was eager to install the infinite-scroll plugin, but after installing
   version 2.0b2.120226, completing a network activate on the plugin and loading
   my blog in a browser I noticed the javascript file /wp-content/plugins/infinite-
   scroll/infinitescroll.init.js.php is not loading. That is, the response for that
   resource is returning an http 404. I started to mess around with selectors, but
   expect the reason the plugin isn’t working is because the necessary javascript
   files are not loading. Has anyone experienced this? Anyone solved this? Any help
   is greatly appreciated!
 * [http://wordpress.org/extend/plugins/infinite-scroll/](http://wordpress.org/extend/plugins/infinite-scroll/)

Viewing 1 replies (of 1 total)

 *  [doublesharp](https://wordpress.org/support/users/doublesharp/)
 * (@doublesharp)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-infinite-scroll-javascript-not-loading-infinitescrollinitjsphp-returns-a-404/#post-2999416)
 * I just solved this exact issue on my site. The problem was that the `index.php`
   page was setting `'posts_per_page' => 6` in a custom query, but the value set
   in “Blog pages show at most” on `/wp-admin/options-reading.php` was 10. Changing
   this to 6 so that they match caused the check in infinite-scroll-class.php to
   succeed:
 *     ```
       $nextpage_no            = intval($current_page) + 1;
       $max_page                       = $wp_query->max_num_pages;
       if ( !$max_page || $max_page >= $nextpage_no )
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Infinite-Scroll] JavaScript Not Loading: infinitescroll.init.
js.php returns a 404’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/infinite-scroll.svg)
 * [Infinite-Scroll](https://wordpress.org/plugins/infinite-scroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/infinite-scroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/infinite-scroll/)
 * [Active Topics](https://wordpress.org/support/plugin/infinite-scroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/infinite-scroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/infinite-scroll/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 2 participants
 * Last reply from: [doublesharp](https://wordpress.org/support/users/doublesharp/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-infinite-scroll-javascript-not-loading-infinitescrollinitjsphp-returns-a-404/#post-2999416)
 * Status: not resolved