-
Notifications
You must be signed in to change notification settings - Fork 163
Any error logging? #147
Comments
Post a screenshot? |
Wow. I don't think I've ever actually seen that alert actually show up. It's a fallback for a fallback error message: try {
data = JSON.parse(response.responseText);
} catch (e) {
data = {error: response.responseText};
}
msg = data.error || '<strong>FAIL</strong> An unexpected server error has occurred.'; This means that not only did your server not return what Genghis was expecting, but it didn't return anything at all, so there's not a more helpful message for Genghis to display. |
lol ok i will go and see what my server error level is |
Do you mind checking in dev tools to see what URL it was requesting when it ran into that? That might help track it down as well. |
what dev tools? There is no javascript errors. my error level is set to: E_ALL & ~E_NOTICE |
The "Timeline" or "Net" tab of Inspector, or Console, or Firebug, or whatever your browser has. Just check what URL was requested that didn't return 200 OK. |
It looks like you're using the 3.0 dev branch, right? Are you running genghis.php or genghis-dev.php? |
yes i tried the dev branch to see if my error would go away |
Never mind, I can tell from the screenshot you just posted. Are you using rewrite rules? Are you running this on its own virtual host, or in a folder? |
most likely this issue is same as what i had before on my amazon lamp stack. using the new mongoclient http://derickrethans.nl/mongoclient.html |
Genghis should support both with and without MongoClient. |
it's just running in a folder. No change to rewrite . |
https://github.com/bobthecow/genghis/tree/develop <- that is the dev branch. https://github.com/bobthecow/genghis/tree/feature/three-dot-oh-my <- that is a very much work-in-progress 3.0 dev branch. For now, you probably want the first one, not the second :) |
ok grabbed the first link and updated htaccess file with no success. |
One of the two URLs that's failing for you is check-status, an API call that does a couple of environment sanity checks. It doesn't do anything crazy at all, just check for Mongo drivers, timezone issues, magic quote config, etc: https://github.com/bobthecow/genghis/blob/feature/three-dot-oh-my/src/php/Genghis/Api.php#L96-L171 So that shouldn't be MongoClient related. |
If the other dev version didn't work for you, it's probably environment related. What version of MAMP are you running? |
Version 2.0.5 (2.0.5) |
php 5.3.6 |
Okay. Lemme see if I can reproduce it. |
it might be easier to debug if you installed this with genghis http://filp.github.io/whoops/demo/ Laravel framework has whoops included. if I went to http://localhost/genghis/check-status in my browser should that be displaying a 404 error or json response? |
I love whoops :) For the non-dev releases (i.e. the compiled genghis.php) it would be just about worthless though. Might make sense to include it in genghis-dev.php for 3.0+ though. I'll look into it. |
Most Genghis paths respond to two kinds of requests: for standard browser requests, they respond with an HTML page. For XHR requests, they respond as a JSON API. For example,
|
Okay. The good news is that I was able to reproduce this. The bad news is that I'm not exactly sure what it's doing :) I'll keep looking. |
You're sure you're not getting any errors in your MAMP logs? Mine is missing the |
nope nothing in my error logs. |
And you have the Mongo extension installed and working? |
yep it works. I have it working with codeigniter and i also have mongo working with a laravel site I just started. |
Just for fun, try out the latest version? |
sorry no change |
Ok. I'll look into it further when I get a chance. |
I have it installed on mamp and i see no errors in the error logs.
Genghis displays: FAIL An unexpected server error has occurred.
How can i get a more detailed reason for what went wrong.
The text was updated successfully, but these errors were encountered: