Error Exception in php artisan make migration

Recently, I came across an issue of Error Exception in php artisan make migration while coding in laravel to create a table via migration as shown in the below screenshot.

Error Exception in php artisan make migration
Error Exception in php artisan make migration

Continue reading Error Exception in php artisan make migration

could not open input file artisan

IF you are getting an error message like “could not open input file artisan” while running a command php artisan make:controller ListController in Laravel then I have simple solution based on my experience.

Initially, I had created a folder “services” under D:\xampp\htdocs\allure\ and I created a Laravel project services inside services folder. I forgot and ran the command “php artisan make:controller ListController” resulting error message as “could not open input file artisan” like shown below Continue reading could not open input file artisan

Magento has been downloaded earlier

When trying to reinstall Magento once I failed earlier installation I got an error message “Magento has been downloaded earlier”. I had deleted all the earlier installation file and cleared the database too after running downloader.php which I had downloaded from Magento.com. I uploaded downloader file to next location still I got same error message of Magento has been downloaded earlier. Continue reading Magento has been downloaded earlier

How to fix WordPress custom post type permalink 404 error

If you have added a new custom post type, then you might be encountering an issue od 404 page not found an error while viewing a new post of the very custom post type. It can be fixed easily. This post is on How to fix WordPress custom post type permalink 404 error.

Please go to the Permalink menu of your WordPress admin under Settings menu. Now click the Save Changes button and reload the post page, you issue might have been fixed.

Easy way to fix issue of multiple filters not working in Category page of OpenCart

Today, I came across an issue of multiple filters not working in category page of PHP shopping cart OpenCart. I had two filter groups Gender and Color. If I chose Female in Gender and Red in Color Filter, it used to display the products of other Colors too. If you happen to come across similar error here is an easy way to fix the issue of multiple filters not working in Category page of OpenCart.

To solve the issue you need to add a few query in the category.php file located at “catalog\controller\product” as shown in the screenshot below: Continue reading Easy way to fix issue of multiple filters not working in Category page of OpenCart

How to fix Methods with the same name as their class will not be constructors in a future version of PHP

In the latest version of PHP 7 you will face an error message as Methods with the same name as their class will not be constructors in a future version of PHP. So, this post is about how to fix Methods with the same name as their class will not be constructors in a future version of PHP.

How to fix Methods with the same name as their class will not be constructors in a future version of PHP
how to fix methods with same name as their class will not be constructors future version of php

Earlier version of PHP supports below codes

As PHP 7 does not support a simple tweak will fix this issue. To fix the issue you just need to add a constructor function as below
class foo
{
public function __construct()
{
echo ‘I am the constructor’;// same as earlier
}

public function foo()
{
echo ‘I am the constructor’;
}
}