Suppress those warning and errors!




Tagged Under : , , ,

Version: 11.1
Revision: 23.3 Build 6

Suppress those warning and errors!

php_logo_v2Introduction:
This problem is getting on my nerves and I don’t really like it! It normally triggers when your server is loading a page. But, to clarify this issues, the server must first send the ‘HTTP headers’, before the ‘HTML’ sections and the body tags. So, without the buffer commands, you’ll get something that looks like this: “Cannot modify header information – headers already sent by (output started at ……….)”

Example: “Warning: Cannot modify header information – headers already sent by (output started at /root/file.php:16) in /root/file.php on line 54″

This errors happens a lot on Wordpress & Drupal. But, there is a way to suppress this problem.
We just add this bit of code – straight into the top of the page!

<?php  // Enable output buffering
ob_start(); ?>

For Wordpress users, you’ll need to add this script into your ‘header.php’ file.
After that, just save your changes and the errors should be suppressed!

What is “ob_start” and what is this little function?

ob_start() is an output function that holds back any ‘output’ from the script until everything is ready to go. After that, it sends the headers and HTML.

Copyrighted By Lair360




Fix Event 7000 – driver service failed




Tagged Under : , , , , ,

Version: 13.2
Revision: 34 Build 13

Fix Event 7000 – driver service failed

Introduction:
when I was surfing my website with firefox, one of my script has warned me about this critical errors! This errors occurred about eight times in my event viewer! So, I take out my records and take a look at this suspicious IDs.

Event Type: Error
Event ID: 7000
Description: The PLCMPR5 NDIS Protocol Driver service failed to start due to the following error: The system cannot find the file specified. This problems may also be generated by Homeplug networking device software.

1.] Download this file and extract these files into your “system32″ directory. But, don’t put these files into your “system” directory! Also, don’t forget to extract this file: “PLCLIB.dll”. Without it, your browser might experience crashes!

Advice: if your computer is asking for one of these files: PLCMPR4.SYS, PLCMPR5.SYS, PLCNDIS4.SYS or PLCNDIS5.SYS, you’ll need to extract it and place it into your “System32″ directory.

Url: http://storageserver.co.uk/files/1746/PLC_files.zip.html

File destination: %systemroot%\system32\*place your ‘Sys’ files here.

2.] Go into your registry – library and look for these directory.
After that, just look for this value name: ImagePath (REG_EXPAND_SZ).

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PLCMPR5
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Services\PLCMPR5
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet005\Services\PLCMPR5


- Change all “ImagePath” directory with: %systemroot%\system32\file-destination

Notes: you’ll need to replace with your chosen driver – file. But, please be aware that each system driver file requires a reboot, when it’s placed in your system32 directory.

3.] Exit your registry library and right click on “My Computer >> Manage >> Services and Applications >> Services.

4.] Now, look for this services and change the settings to “Automatic”. But, don’t change it to “Manual”.

Windows User Mode Driver Framework – Automatic
Wired AutoConfig – Automatic


4.] Finally, just exit the dialogue box and reboot your computer.

5.] You are done!

Copyrighted by Lair360




How to fix IE7 crashes




Tagged Under : , , , ,

Version: 19.1
Revision: 18 Build 13

How to fix IE7 crashes

Introduction:
Internet Explorer is a very popular browser which dominates the marketplace. However, there are times when Internet explorer crashes and all the data is lost. Sometime, it will just keep crashing. But, there are several reason behind this issues and the most common reason is the “add-ons” which are installed in Internet Explorer.

1.] Execute Internet Explorer and select: “IE Tools Menu >> Manage Add-Ons >> Enable or Disable Add-Ons”.

Notes: Internet Explorer 6 has this option: “Tools >> Internet Options >> Programs >> Manage Add-Ons.”

Photobucket

2.] Here you will see all the “Add-Ons” which are installed in Internet Explorer.
But, within this dialogue box there are some plugins which aren’t register properly durring the installation, so you might need to disable them one at a time…

Notes: analyze your “crash error report” that will be displayed after the crash, which module has created the crash. If you can’t find it, just try disabling the enabled “add-ons” one by one and see if your Internet Explorer start working again or not.

3.] After the repair, you’ll need to reboot your computer.

4.] Done!

Advice: if it happens again, you’ll need to record the errors and disable the correspondent plug-in. That is all you need to know…

Copyrighted By Lair360