"The website encountered an unexpected error. Please try again later." this is the most common error encountered by a Drupal developer. Usually, errors are logged by Drupal and the logs can be accessed from Admin->Reports->Recent log messages. But when you get "The website encountered an unexpected error. Please try again later." you cannot even access the reports dashboard.
Drupal Errors
Many Drupal users were encountering a situation in their Drupal site where Boost was caching the Drupal error messages on a page. If you are facing the same situation in your Drupal site and would like to know how to prevent Boost from caching Drupal error messages then read on to find out the solution.
Many Drupal programmers, Drupal site admins and Drupal site users have encountered the
"Notice: Undefined variable" error message in their Drupal site. If you are facing the same situation in your Drupal site then read on to find out more.
Many Drupal programmers, Drupal site admins and Drupal site users have encountered 403, 404, 406, 500 or "Page not found" errors when submitting content with specific phrases. If you are facing the same situation in your Drupal site then read on to find out more.
Many Drupal programmers, Drupal site admins and Drupal site users have encountered the error message - "MySQL: "Warning: MySQL server has gone away" on their Drupal site. If you are facing the same situation in your Drupal site then read on to know the fix.
Many Drupal users have encountered "Page Not Found" Errors on all pages except their sites homepage. If you are facing the same error in your Drupal site then read on to find out the solution.
A Drupal+Ubercart site with a store where users can purchase your products and no links to indicate the number of products anywhere in your site seems too annoying. It would be nice if there is a way to update the cart count as soon as a product is added to the cart.
Here is the code snippet to get the total number of contents in the cart:
<?php print count(uc_cart_get_contents()); ?>
You can theme the content accordingly to show the contents in style:
<?php print count(uc_cart_get_contents()); ?> items