error-message

rails 404 422 500 completely blank

This is probably very simple but I can't figure out why I get no error pages. First off, I'm using Heroku for hosting, so it's definitely in production mode. If I set the line "config.action_controller.consider_all_requests_local" set to true, I get a detailed error message but otherwise, I get a completely 100% blank screen. If I vie...

Error logging php - error_reporting(0) not having desired effect

I've got a pretty simple page which fetches a url and parse some data. I have built into my page some error handling in the event that the response is a 404 error. However, I can't seem to stop php from spitting out the following errors Warning: file_get_contents(http://url-to-retrieve.com/123.html) [function.file-get-contents]: f...

Disable error_log. Error_log flooding

Hello, i got an webserver running and old version of gambio (xt:commerce fork). The error_log in the dir over the public_html is flooding with errors. About 30mb in 15min. How can I disable this log? I can't fix all the errors. Here are a few examples of the errors: [warn] mod_fcgid: stderr: PHP Notice: Undefined variable: key in /u...

ASP.NET MVC Custom Error page (StatusCode 404 throws a 500)

I've got customErrors set in my web.config <customErrors mode="On" defaultRedirect="/Error/GeneralError"> <error statusCode="404" redirect="/Error/NotFound"/> </customErrors> This works fine locally. A 404 throws a 404. On the shared hosting it throws up the standard server 404 page unless I specifically set 404 to point to /Err...

What does 'Failed shutdown of Apache Portable Runtime' log message mean?

After shutting down tomcat, I get this message: INFO: Failed shutdown of Apache Portable Runtime Then Tomcat shuts down after all I haven't found a reasonable explanation googling around, nor in the single duplicate I've found (0 answers) ...

PHP script giving no such file or directory error

I'm trying to use this php thumbnail generator http://phpthumb.gxdlabs.com/ and i keep getting the error below. Warning: imagejpeg() [function.imagejpeg]: Unable to open 'Images/uploaded/thumbnails/' for writing: No such file or directory in D:\Data\Websites\wamp\www\StephsSite\PHP\phpThumb\GdThumb.inc.php on line 672 Here's my script ...

Rails f.error_messages alwais empty

What did I do :)? In rails form has f.error_messages alwais empty. How can I fix/check this? Thx ...

How to visually reject user input in a table?

In the programming of a table-based application module (i.e. the user mostly enters tabular data in an already laid-out table), how would you reject user input for a given cell? The scenario is: the user edits the cell, enters something (text, picture, ...) and you want them to notice when they finish editing (hitting enter, for example...

Rails: How can I loop through validation errors?

I'm building an API for my app and would like to return errors in the XML response that are generated by validation errors. So say you're registering on the site, right now the validation errors returned might be: Login has already been taken Password is too short (minimum is 6 characters) Email has already been taken But I'd like to...

How would I debug this IE7 issue?

Problem: Conditions: IE7, SP2, latest flash/java. Only reproducible on one machine. Observations: Smaller than a javascript alert box, and seems to be generated when a swf on my web page loads. The dialog is modal, however, like an alert box. Issues: I've tried matching the configuration of the machine in question, but a recreati...

error handling in an ajaxcall

Hi all, I have a website where an ajax call will get some Json data from a Asp.Net-Mvc action. Now I'm trying to do implant errorhandling in it. But I'm stuck at the point how to do it. The easyst way i found, was cattch the exceptions in the controller action, and Return a Json object with an error message in. And then in the ajax s...

Problem running RoR app in production environment

Have an app that has "listings" - think classified ads - and each listing has a list of tags. The following code fails when I run the app in production mode, but works fine under development mode uninitialized constant ActiveRecord::Acts::Taggable::InstanceMethods::TagList Extracted source (around line #45): 42: 43: <...

Weird output of Throwable getMessage()

Hi I have below pseudo code with throws an exception like this throw new MyException("Bad thing happened","com.stuff.errorCode"); where MyException extends Exception class. Below is how I am handling the exception ActionMessages errors = new ActionMessages(); if(ex.getErrorCode() != null && !"".equals(ex.getErrorCode())) error = n...

error using rename function in PHP.

I keep getting this error, although the file still gets moved into the correct directory. Anybody know why i'm getting this error? Warning: rename(../Images/uploaded/1162504_56863010.jpg,../Images/uploaded/Portraits/1162504_56863010.jpg) [function.rename]: No error in D:\Data\Websites\wamp\www\StephsSite\PHP\addImage.php on line 21 ...

Pyjamas & JavaScript: Too much recursion

I'm doing a Pyjamas example and get this error: TodoApp InternalError: too much recursion Here is the significant portion of TodoApp.py from the linked tutorial (please ignore indentation from the copy/paste): class TodoApp: def onModuleLoad(self): self.remote = DataService() panel = VerticalPanel() self.todoTextBox = T...

Verbosity in boost asio using ssl.

Is there a way to make ssl handshake more visible to me using boost asio? I am getting an error: "asio.ssl error". I just want more verbosity, because this message means almost nothing to me. Thanks. ...

What is the best way to log errors in Zend Framework in my project at this stage?

We built an app in Zend Framework and have not worked a lot in setting up error reporting and logging. Is there any way we could get some level or error reporting without too much change in the code? Is there a ErrorHandler plugin available? The basic requirement is to log errors that happens within the controller, missing controllers, ...

Querystring causes IE to show error

I have a problem when I send IE to the following location: http://fdvweb.mal/db/historikk/db_historikk_liste.asp?SQLfilter=SELECT TaKompHistorikk.*, TaKomponent.KompNummer, TaKomponent.KompNavn, TaKomponent.KompPlassering FROM TaKomponent RIGHT OUTER JOIN TaKompHistorikk ON [TaKomponent].[KompId]=[TaKompHistorikk].[KompHistorikkKompId] W...

How do i assert my exception message with JUNIT Test annotation ?

i have written a few junits with @Test annotation. If my test method throws a checked exception and if i want to assert the message along with the exception, is there a way to do so with JUNIT @Test annotation.AFAIK, Junit 4.7 doesnt provide this feature but does any future versions provide it. I know in .NET you can assert the message a...

Custom error handling Asp.Net

On my web application, I had configured my web.config file to set customerrors to ON, so here it is: <customErrors mode="On" defaultRedirect="Error.aspx"> <error statusCode="403" redirect="Error.aspx" /> <error statusCode="404" redirect="Error.aspx" /> </customErrors> For explaining propouses I only captured the 403 and 404 ...