Skip to content

jQuery not loading (404) in app

edited March 2013 in Troubleshooting

pages are loading images from the right root path but js it trying load from http://www.myresponder.co/app/jsp/js/jquery-1.9.1.min.js and failing with 404

Comments

  • Hi @rgauny,

    Your Sendy files are uploaded to http://www.myresponder.co but it's trying to access jQuery on http://www.myresponder.co/app/jsp/js/jquery-1.9.1.min.js in which the file does not exist in the directory, /app/jsp/js/.

    May I know what is set as your APP_PATH in http://www.myresponder.co/includes/config.php?

    Thanks.

    Ben

  • Hi Ben below is my config.php
    //==================================================================================//
    // Configuration
    //==================================================================================//

    //path to your Sendy installation (without the trailing slash)
    define('APP_PATH', 'http://www.myresponder.co');
    
    //database connection credentials
    $dbHost = 'XXXXXXc9g4njcoauwd.us-east-1.rds.amazonaws.com'; //mySQL Hostname
    $dbUser = 'root'; //mySQL Username
    $dbPass = 'XXXXXXXXXX'; //mySQL Password
    $dbName = 'myresponder'; //mySQL Database Name
    $dbPort = 3306; //mySQL port (only if you need to change it)
    
    //domain of cookie (99.99% chance you don't need to edit this)
    define('COOKIE_DOMAIN', '');
    
    //==================================================================================//
    
  • edited March 2013

    Saw this in header.php (at bottom): and if I'm reading it right Ben, since my APP_PATH is http://www.myresponder.co the path for jquery that is being set here is http://www.myresponder.co/app/jsp/js/jquery-1.9.1.min.js which doesnt exist. It's located at http://www.myresponder.co/js/jquery-1.9.1.min.js

    <script type="text/javascript" src="<?php echo get_app_info('path');?>/app/jsp/js/jquery-1.9.1.min.js"></script>
        <script type="text/javascript" src="<?php echo get_app_info('path');?>/app/jsp/js/jquery-migrate-1.1.0.min.js"></script>
        <script type="text/javascript" src="<?php echo get_app_info('path');?>/app/jsp/js/jquery-ui-1.8.21.custom.min.js"></script>
        <script type="text/javascript" src="<?php echo get_app_info('path');?>/app/jsp/js/bootstrap.js"></script>
        <script type="text/javascript" src="<?php echo get_app_info('path');?>/app/jsp/js/main.js"></script>
    
  • I'm going to change those 5 path locations in header.php for my build. But you may want to get that fixed for others, bootstrap really doesnt function without jquery loading. Please let me know iwhether it's a bug or not.

  • Hi @rgauny,

    I just doubly checked the entire build of Sendy. The code you provided above is not Sendy's original code. There is no instance of /app/jsp/ anywhere in the code base. Not in our development build nor in the release build.

    Ben

This discussion has been closed.