baruwaproject / baruwa2

Baruwa 2.0
http://www.baruwa.org
GNU General Public License v3.0
21 stars 9 forks source link

Fixed broken jsi18n.js pathing #29

Closed fluxlabs closed 10 years ago

fluxlabs commented 10 years ago

Added jsi18n.js to /js Appended /js to necessary files

Signed-off-by: Jeremy McSpadden jeremy@fluxlabs.net

akissa commented 10 years ago

The JS is dynamically generated should not be a static file

fluxlabs commented 10 years ago

I've asked several times on the ML regarding this file, and have had no reply. I was getting error 500 on this file, so if it is in fact being generated dynamically, It is broken some where.

tail -n 25 baruwa-access_log | grep jsi18n.js x.x.x.x - - [24/Dec/2013:18:20:44 +0000] "GET /jsi18n.js HTTP/1.1" 500 1175 x.x.x.x - - [24/Dec/2013:18:24:02 +0000] "GET /jsi18n.js HTTP/1.1" 500 1175 x.x.x.x - - [24/Dec/2013:18:24:05 +0000] "GET /jsi18n.js HTTP/1.1" 500 1175 x.x.x.x - - [24/Dec/2013:18:24:06 +0000] "GET /jsi18n.js HTTP/1.1" 500 1175

This commit fixes the errors I was receiving by going static. I am unable to locate any dynamic generation of this file.

x.x.x.x - - [24/Dec/2013:18:25:02 +0000] "GET /js/jsi18n.js HTTP/1.1" 200 3580 x.x.x.x - - [24/Dec/2013:18:33:05 +0000] "GET /js/jsi18n.js HTTP/1.1" 304 - x.x.x.x - - [24/Dec/2013:18:40:59 +0000] "GET /js/jsi18n.js HTTP/1.1" 304 -

akissa commented 10 years ago

Request the file in the browser you will see what the 500 error is

fluxlabs commented 10 years ago

404 in browser, 500 in logs with direct browser request to /jsi18n.js

fluxlabs commented 10 years ago

PATH_INFO '/jsi18n.js' PATH_TRANSLATED '/home/baruwa/px/lib/python2.6/site-packages/baruwa/baruwa.wsgi/jsi18n.js'

akissa commented 10 years ago

On 24 Dec 2013, at 8:58 PM, Flux Labs notifications@github.com wrote:

not sure how its generating itself inside of another file ..

That is just indicating it is running thru wsgi