Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Friday, April 25, 2014

phpPgAdmin - postgres - error "Login disallowed for security reasons"

PhpPgAdmin  by default deny access for certain usernames (pgsql, postgres, root, administrator) , Also it will block any attempt to login using no password .

The line controlling this is in the  config.inc.php file

$conf['extra_login_security'] = true;

If you are developing a website locally you can change this option in config.inc.php file to false but keep in mind that this option is a very good security helper if you are in production phase.

Thursday, March 6, 2014

Task 'default' was not defined in your gulpfile but you tried to run it Please check the documentation for proper gulpfile formatting.

Task 'default' was not defined in your gulpfile but you tried to run it Please check the documentation for proper gulpfile formatting.
This error happened when I was trying to minify a CSS file which was including @media tags ,I was trying to minify this file using Notepad++  Jstool plugin through JsMin command, but the this function cannot handle @media queries the right way and the output file will not maintain @media queries properly and the final Css file will be useless. So to solve this issue I had to install gulp and its gulp-minify-css plugin because  But when I created the gulpfile like this :

 
var gulp = require('gulp');
var minifyCSS = require('gulp-minify-css');
gulp.task('minify-css', function() {

  gulp.src('styles.css')
    .pipe(minifyCSS())
    .pipe(gulp.dest('./'));
});



 and tried to run the command :

gulp


I got the above mentioned error ,So I thought the problem because I didn't add the file name to the command :

gulp gulpfile.js 


 but that also didn't solve the issue. again and again I check the file for syntax errors but didn't find thing.

The problem as very dummy . It is because I didn't add the task name to the command line :

gulp  minify-css



That's it . thank you.


Sunday, November 10, 2013

ie html contditional tage is not responding when using ie conditions

If you have a problem that ie tag is not working and the css file that you assign for this tag is not loading then the problem may be as I found it in the tag spaces. there must be no space in the tag before "If" and after ie9 .like what you see here :

<!--[if lt IE9]>
    <link rel="stylesheet" type="text/css" href="/assets/css/ie.css" />
<![endif]-->


 that mistake can happened if it like the following:

<!--  [if lt IE9]> or <!--[if lt IE 9]> or  <!--[if lt IE 9]  > 

also

<!  [endif]-->  or <![endif]  --> 
 
 
Note: Microsoft Stopped supporting IE condition tag in IE-10 and later Versions

Saturday, October 19, 2013

The Response content must be a string or object implementing __toString(), "boolean" given. Laravel4

"The Response content must be a string or object implementing __toString(), "boolean" given. Laravel4" .

This kind of error will kill you if yo are going to debug it Or trace it step by step, you will never find the solution because this error happens in response, I mean that it will be detected by the framework only after the response is ready to be rendered ,So it is as the message said "the response is boolean". Often it will happen in the view that some variables affect the response content . Just check the view variables one by one ,and remove each of them the try to run again . you will find the variable that cause this error. But before going in this path try to change the view by any other view page (blade-template) and see if the error is still there . if it is not , then the problem in the view page.

Sometime this error caused by directly returning false :

 
return false ;
Just change it to :
return 0;

Sunday, June 16, 2013

Whoops! There was an error in Laravel-4 Startup

Suddenly When I tried to reach laravel 4 Documentation on my server ,a strange colorful screen came out  saying  :

"Whoops! There was an error"







This is a debug stack trace detailed page taking from Symfony Package which is used with laravel packages as  an error stack trace  display script .
(Sorry.. Laravel-4 going to be elites software not for anyone , and I think it will lose its popularity )

Ok. How to solve this issue , As I said this is a detailed information about the error you got,If you are lost in these crowded tech information then you can reach the single line error page by changing the variable debug value from True to False in the configuration file app.php.
You can find this file in app/config/ folder .
After changing the value  to false regenerate the error again and you will get a single line error telling you what is the problem.


Friday, May 3, 2013

php5apache2_4.dll into server: The specified module could not be found.

From event viewer in Windows I got this error, After trying to Add Apache 2.4 to Wamp 2.2 , Where I cannot run php scripts with php5.4.14 .
The Problem Was I downloaded the non thread safe version of php , So to solve this issue just download the thread safe PHP.
It is Supposed that you already added these lines to the Apache configuration file  :

 DirectoryIndex index.php index.php3 index.html index.htm
 DirectoryIndex index.php index.php3 index.html index.htm
   AddType application/x-httpd-php .php
  AddType application/x-httpd-php .php   

  AddType application/x-httpd-php .php3   
  AddType application/x-httpd-php .php3

Thanks