photo credit: id-iom
This post is one of my WP Greet Box Troubleshooting Guides series (more to come).
You have installed WP Greet Box and found that your greeting messages do not show up.
Note that this troubleshooting guide should only be used for WP Greet Box with cache compatibility mode enabled.
Step 1: Check code embed
- Visit one of your post pages.
- On your post page, do a browser View > Source on the page, then check if the following text are there:
If all is there, then proceed to next step.
If wp-greet-box/css/wp-greet-box.css does not exists, it could mean that your theme does not make a call to the standard wp_head() function. You can fix this issue by manually inserting the follow between your <head> and </head> tags:
<link rel="stylesheet" href="/wp-content/plugins/wp-greet-box/css/wp-greet-box.css" type="text/css" />
If wp-greet-box/js/functions.js & wp-greet-box/js/onload.js does not exists, it could be that your theme does not make a call to the standard wp_footer() function. You can fix this issue by adding <?php wp_footer(); ?> into your theme’s footer.php or manually inserting the following towards the bottom of your HTML (near the </body> tag):
If any of these are not there, you might have not installed the plugin properly. Please read the readme.txt file and then retry the installation.
Step 2: Check AJAX call
- In WP Greet Box administrative options, make sure the DEFAULT banner is active and set it’s Visitor Timeout to 0.
- On the site front-end, visit one of your post pages to see if the Greet Box shows up. If you have navigated to your post page (via any other link on your site, e.g. the homepage) you will need to copy the permalink in your address bar, open a new browser window/tab, paste the permalink into the new browser window/tab, and visit the URL directly.
If you see the default banner using the method above, everything is working fine. You can revert your DEFAULT banner’s Visitor Timeout value to 14400.
If you still do not see the default banner, proceed to the next step.
Step 3: Mimic AJAX call
- Use a HTTP request monitoring software such as Firebug with the “NET” console enabled to visit your post page.
- Look in the HTTP request log for something that looks like the following URL:
- Visit the URL directly to see if you get a greeting message display back (and not a blank page).
If you do not see the greeting message display back, but see a blank page instead, it is a site specific permalink structure or .htaccess rewrite issue. Proceed to the next step.
Step 4: Find out what works
- Try visiting the following URL to see if anything shows up:
If a greeting message shows up then something is definitely wrong with URL resolution on your server. Something could be wrong with the .htaccess file, the WordPress adress or Blog address in your WordPress general settings, or the permalink settings. I’m not sure how your site structure is setup, but if you can modify your settings so that WP Greet Box can access an index.php then you should be fine.
If it doesn’t, then you should request support from me by posting a comment on the original plugin page.