I have few sites of clients running with Codeigniter and are hosted by different hosts including Godaddy, Host Gator and others. With few hosts I had problems with working of CI, whenever I tried to access the website, I just used to get a text in browser saying ‘No input file specified’ and no html as expected except this text.
Tag » Error
Check undefined, null, empty or blank variable in JavaScript
There are already many answers exist to check for undefined, null, empty or blank variable in JavaScript and jQuery still sometimes they mislead if not understood well. So this article is a straightforward manner to determine if a variable is undefined or has null/empty value or whatsoever.
Uncaught SyntaxError: Unexpected token = in Chrome
While working on a project I got a JavaScript error saying Uncaught SyntaxError: Unexpected token = in Google Chrome while Firefox was performing fine. I searched on Google for similar questions but couldn’t get the issue with my code. Still later after finding solution for this Uncaught SyntaxError, I decided to post an article as below.
Undefined property $db in Codeigniter
Are you facing any notice saying Undefined property: Home::$db or something like this in your Codeigniter application? The reason behind the error Undefined property $db in Codeigniter arises because you didn’t load database library in your controller/method to use any function of it.
Form validation rule to validate checkbox in Codeigniter
Checkbox validation in Codeigniter form is not as straight as validating other input types. As usually we need to check if a checkbox is checked or unchecked during form submission likewise if user accepted or not ‘TOS (Terms of Services)’ through checkbox. So I have provided a form validation rule to validate checkbox as ‘required’ rule can’t do the task.
Contact form 7 validation error don’t disappear
Contact form 7 gives the error message on submit but when we try to correct contact form 7 validation error don’t disappear. Usually, when someone tries to click back into the form field that has an error, the validation message disappears. The validation boxes stay in place and the user can’t see the form field to fix his error. I’ve had this work automatically on most of the sites.
Styling Contact Form 7 validation with CSS and border
Contact Form 7 uses minimum CSS for styling and validation. Hence lacking of better UI designing. We can overcome this issue by styling Contact Form 7 validation with border which I’m describing here in this article. Here, we will apply some CSS rules for validation customization on Contact Form 7 forms including styling Contact Form 7 validation with border.
WordPress fix to blank screen or blank page or dashboard
Getting a blank screen or blank page or dashboard under your WordPress powered website? Relax! You are not the single person to face the issue and I have sum up all the possible solutions which will sure help you out to solve the issue.
Deactivate plugins when not able to access dashboard
Sometimes any change made in WordPress site mess it’s working and we need to deactivate plugins or set default theme with alternate methods because we feel ourselves not able to access dashboard to undo changes.
Most of the times we see blank pages whenever we try to open wp admin dashboard that can happen due to any poor plugin or broken theme.
Syntax error due to using a reserved word as a table or column name
If we try to execute a simple MySQL query or any database query that contains reserved word as a table or column name we come across syntax errors.
We have discuss two options to have Defense from syntax error using a reserved word as a table or column name.