Blog - Web Development Articles

Magento - Notice: Undefined index: 0 in Config.php on line 88

Magento - Notice: Undefined index:  0 in Config.php on line 88

I just ran across an error transferring a Magento site from one host to another and wanted to share the solution here. The fix is fairly simple however the debug process to track down the fix was quite involved.

How to create Magento configurable poducts

 

In Magento there are several types of products and you will want to select the correct product type before setting up your catalog. A Magento configurable product is a product with multiple associated products, each with their own properties, which show up on the front-end of a Magento site as options a customer can select such as size and color.

The most significant benefit of using a Magento configurable product is it allows you to track inventory on each of it's separate associated products, for example, if you have a shirt in three sizes and three colors you can create a configurable product with six associated products, three for each size and three for each color. This type of setup allows you to set different stock quantities for each separate option so if I run out of small black shirts Magento will not display those options in the front-end until I update the quantity on those products and place them back in stock.

Linux Find Replace in Multiple Files Using grep and sed

Here is a quick tip if you need to recursively grep a directory for files containing a certain string and replace the entire line containing that string here's one way to accomplish that.

 

grep -lr wngzhxknyp * | xargs sed -i 's/.*wngzhxknyp.*/<?php/'

 

The -lr switches make grep searche the current directory recursively (the -r) and only returns the filenames (the -l) that contain the matching string "wngzhxknyp". When we pipe the resulting filenames to sed we use sed to search and replace any lines containing "wngzhxknyp" with "<?php".

Wordpress Site Security

Wordpress Site Security

 

Wordpress site security should be number one priority if you're running or hosting wordpress sites. Recently there has been an overwhelming amount of reports to large hosting companies like HostGator, LiquidWeb and InMotion that wordpress site security is a large target right now for hackers. We've come up with some tried and true methods of securing your wordpress site to avoid being hacked. While these methods won't guarantee anything they will certainly reduce the risk of possibilities. 

 

What hackers are doing is creating what are called botnets. When a hacker gains access to a system they infect it with an application that allows them full access to the system. These botnets can be comprised of 90,000+ systems and hackers use these botnets to attack other systems, such as your wordpress site,  by using what is called a "brute force attack". A brute force attack is where hackers run a program on your site that tries to login, over and over, with hundreds of thousands of login and password combinations starting with the most common combinations first. Since the botnets come from so many different systems, it's impossible to block them completely but what you can do is tighten up security and make it more difficult for them to gain access.

 

Boise Web Design

Established in the City of Trees in Boise Idaho in 2002, Vector Network Solutions is now a leading web development company providing Boise web design with over ten years of experience. Leading the way with a proven track record on the industries top web platforms, VectorNS is capable of delivering exceptional solutions to clients around the globe. Our strategic methods afford us the ability to provide Boise with web design, development and a sharp competitive edge. Call or e-mail today to start initiating your project with the experienced professionals at VectorNS.

Free Web Tips & Ideas!

Sign up for VectorNS Web Tips and recieve occasional tips & ideas to enhance your web presence.