Blank page is shown in Magento Frontend, Backend or Magento Connect Manager
If you see a blank page opening your Store in browser, it indicates that there is a PHP syntax error somewhere in the code of your site.
This usually happens when you modified files, templates or extensions manually, or installed a theme or extension with PHP syntax errors.
Before starting investigation please try to Disable Magento Compiler and Clear cached Magento data , in the most cases it should solve the issue.
To see the actual error message you need to login via FTP to your Store and use the following instructions:
Sometimes you may need to make sure that the user is browsing your site over securte connection. An easy to way to always redirect the user to secure connection (https://) can be accomplished with a .htaccess file containing the following lines:
Magento 1.6 Upgrade Errors with Solutions
After upgrading to Magento 1.6, You may face some problems like Integrity constraint violation: 1062 Duplicate entry or Error 404 after installation(while home page is OK).
It is also highly encouraged to restrict access to your website while repairing the database or making upgrade. Here is an example of restricting your website instance to your IP address exclusively. Other visitors, including search spiders, will get the HTTP 503 Service Unavailable error.
If you have experienced this error in your webpage:
Fatal error: Cannot use object of type stdClass as array in /modules/mod_jf_twitter/helper.php on line 38
Then it is a problem of “JF Twitter” module. Do the following on /modules/mod_jf_twitter/helper.php/helper.php on line 38:
My contact forms no longer work in Chrome or Safari. The form will load but errors occur upon clicking “send”. Works still in firefox and Explorer. (more…)
Problem: How to get menu Itemid? or How to get active menu item properties in joomla?
To get menu “Itemid” use the following code
$menus = &JSite::getMenu();
$menu = $menus->getActive();
$itemid = $menu->id;
Log into your server as the root user and find the process PID that you wish to kill. You can do that by issuing the ps command with the aux options. See example below.
This will display a process list and each visible process should have a line similar to the one below.
username 31262 0.0 0.0 12168 1752 ? S 00:25 0:00 somecommand
Use the code below to check if a user is logged in. This is useful if you want to only show certain parts of your component to registered users and not non-registred users. Have fun.
For every request in Joomla!, there is one user. Information about this user is readily available through the Joomla! framework in the form of an object. To get this object for the current user, use the following member function of JFactory:
$user =& JFactory::getUser();