Try New Technology

Techie

Problem with Reviews in WooCommerce 2.0.20 not showing

by on Dec.14, 2013, under Techie

Currently I’ve been working on a new site for JoeFrank.com and with the help of a designer it is almost ready to launch, but the problem is now that I can not see (if I add via Admin) nor Add (as a customer would) any Reviews. After a lot of hunting around I found that the following was missing from my “../wp-content/themes/canvas/functions.php”:

add_action('woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30);
add_action('woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30);

I add those lines in and got an error about “../wp-content/plugins/woocommerce/templates/single-product/tabs/reviews.php” missing (basically) and when I looked there was no file. I downloaded a new copy of WooCommerce and that file is not there at all. After a fair bit of hunting I found the following code from a GitHub post (when I find the post I’ll link to it):

<?php
/**
* Reviews tab
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/

global $woocommerce, $post;

if ( comments_open() ) : ?>
<div class="panel entry-content" id="tab-reviews">

<?php comments_template(); ?>
</br>

</div>
<?php endif; ?>

This works just fine for my needs with the custom theme and the version of WooCommerce we are using.
Finally after all of this I was still getting 1 error. The error was “uasotrt() expects parameter 1 to be array, null given in…” and was in the “../wp-content/plugins/woocommerce/woocommerce-template.php” file on line 795. I just went in and commented out LINE 795: uasort( $tabs, '_sort_priority_callback' ); since I have no other tabs the way it is setup.

Now Reviews show perfectly and people can add them! Hope some one else finds this post and saves themselves a few days of research and random troubleshooting to figure out a fix.

..or maybe it’s just me and everyone already knows.

Comments Off on Problem with Reviews in WooCommerce 2.0.20 not showing more...

Great things for WordPress sites!

by on Aug.24, 2013, under Techie

Found 2 set WordPress plugins recently and have them in use on all the sites I manage / setup!

WP SlimStatA powerful real-time web analytics plugin for WordPress.
Better WP SecurityBetter WP Security takes the best WordPress security features and techniques and combines them in a single plugin thereby ensuring that as many security holes as possible are patched without having to worry about conflicting features or the possibility of missing anything on your site. (WARNING: Some settings can and will break the site! If you don’t understand it, then do NOT enable it!)

Comments Off on Great things for WordPress sites! more...

Fix for Windows XP SP3 svchost.exe 100 CPU usage issue

by on Jul.25, 2013, under Techie

I have hunted for a long time and surfed through a LOT of posts without luck. This issue is hit and miss and will disappear or be there forever on an OS. Today was my lucky day and I found the following information from http://shoemakerbrian.wordpress.com/tag/windows-xp-sp3-svchost-exe-100-cpu-usage/. I just used this on a freshly reloaded Windows XP SP3 machine that had this issue and the problem went away allowing me to finish patching the machine.

Reset the Automatic Updates System – Windows XP SP3

Open a command prompt: Start | Run | cmd /Enter

net stop “Automatic Updates” – ENTER

del /f /s /q %windir%\SoftwareDistribution\*.* – ENTER

net start “Automatic Updates” – ENTER

wuauclt.exe /detectnow – ENTER

What this does is: Stops the Automatic Update service then flushes the content of the folder “SoftwareDistrubution”; it then starts the Automatic Update service and then forces an update cycle to start.

Reasons to run this is: The svchost.exe file running at 100% CPU usage or slightly less but crippling the computer system never the less.

Diagnoses: Open command prompt type: “tasklist /svc” this will list all running tasks. Open Task Manager and view which PID/svchost.exe is running at 100% or slightly less.

If you do not see PID in Task Manager window: open the View menu inside Task Manager and select “Select Columns…” option and place a check mark in the “PID (Process Identifier)”

Comments Off on Fix for Windows XP SP3 svchost.exe 100 CPU usage issue more...

Using /bin/mknod to keep PERC 3/Di devices loaded after reboot (afacli)

by on May.08, 2013, under Techie

Mostly tossing this up here for my own use in referring back. Below is what needs done to ensure afacli can be ran correctly from script after a reboot. The issue is the PERC 3/Di card software for CentOS/Fedora Linux doesn’t rebuild the /dev/ files correctly and so when we run an internal raid check script it errors out with the following output:

/usr/sbin/afacli: line 13: /dev/MAKEDEV.afa: No such file or directory

The solution to this is to first run

cat /proc/devices

which will give you the Device ID for the “aac” (PERC 3/Di). Example:

Character devices:
1 mem
196 dahdi
253 aac
254 pcmcia

Next you want to add the following line(s) into /etc/rc.local (as many times as needed, so in my case with 7 errors I need to have afa0-afa6):

/bin/mknod /dev/afa0 c DEVICE_ID 0

Comments Off on Using /bin/mknod to keep PERC 3/Di devices loaded after reboot (afacli) more...

Cacti Template – Redline RDL-3000 PmP

by on Mar.07, 2013, under Techie

I had to create a set of Cacti Templates for use with Redline RDL-3000 PmP radios and thought I’d upload the Exported Template for others to enjoy. I’ll add this to the official Cacti Templates sometime, but for now youw ill fine a link on this page.

Comments Off on Cacti Template – Redline RDL-3000 PmP more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...