Joomla: Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.

Try this it will help you,

Open libraries/joomla/utilities/date.php file

Replace

function __construct($date = ‘now’, $tzOffset = 0)
{
if ($date == ‘now’ || empty($date))
{
$this->_date = strtotime(gmdate(“M d Y H:i:s”, time()));
return;
}

with

function __construct($date = ‘now’, $tzOffset = 0)
{
date_default_timezone_set (“America/New_York”);
if ($date == ‘now’ || empty($date))
{
$this->_date = strtotime(gmdate(“M d Y H:i:s”, time()));
return;
}

Advertisements

jtablesession::Store Failed DB function failed with error number 1146 Table ‘pharmach_chem.pharmach_session’ doesn’t exist SQL=INSERT INTO `pharmach_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` ) VALUES ( ‘c3c4baa96b94299f1653d1b44b18d199′,’1353725383′,”,’0′,’1′,’0’ )

Solution :

1st ] Try to repair that database.

if not work

2nd ] delete that particular table and retry to create that table once again via phpmyadmin

if not work

3rd ] check database prefix value in your configuration.php file. If it isn’t correct please correct it.

I suppose above 3 steps may help you to resolve your issue. In my case, I’ve fixed that issue using 3rd one.

Admin password reset in Joomla

For changing joomla admin area password if you’ve no idea about current one then  do following things after login to your cpanel

phpmyadmin>select database for joomla >jos_users> then paste md5password in that field .

Md5 password can be generated via http://www.md5.cz/

 

If it won’t work please do following things before resetting that password.

Open the database in phpmyadmin and look for the table jos_extensions  (where jos in the prefix that you use) and then look for plg_authentication_joomla (I found this on page 3). Set enabled to 1 if it is at 0.

For removing joomla extensions or components

Please do following steps for removing joomla components or extensions.

1.  Login to your Joomla 1.6 administrator backend.

2.  Click on ‘Extensions’, ‘Extension Manager’, switch to the ‘Manage’ tab.

3.  Under the filters – ‘Select Type’ = ‘Component’, or find it in the list of Extensions installed.

4.  Use the checkbox on the side to select the component(s) that you want to uninstall.

5.  Click on the ‘Uninstall‘ icon at the top (or near the top) of the screen.

6.  After that you will see a message that says:
Uninstalling component was successful.

Joomla Warning: Invalid argument supplied for foreach() in /home/components/com_content/helpers/route.php on line 106

There is a very easy solution for this problem:

– Edit the file components/com_content/helpers/route.php
– Insert a new line between line 99 and line 100
– In the new line write: $items = null;
– Now on line 107, before the statement foreach($items as $item) write: if ($items!=null)

That is if ($items!=null) foreach ($items as $item)

Fatal error: Cannot redeclare quoted_printable_encode() in /home/ username /public_html/includes/vcard.class.php on line 67

Solution:
Encapsulate the function

function quoted_printable_encode($input, $line_max = 76) {
……
……
}

with   if (!function_exists(‘quoted_printable_encode’)) {

 

EXAMPLE:

if (!function_exists(‘quoted_printable_encode’)) {
function quoted_printable_encode($input, $line_max = 76) {
……
……
}