Joomla

Posts filed under Joomla

DB function failed with error number 145

Filed in Joomla, Linux

If you ever faced the below error

 

jtablesession::Store Failed
DB function failed with error number 145
Table ‘./joomla_database/jos_session’ is marked as crashed and should be repaired SQL=INSERT INTO `jos_session` (`session_id`,`time`,`username`,`gid`,`guest`,`client_id`) VALUES (’1ecb458814b53d190db10cafee822dc0′,’1237429551′,”’0′,’1′,’0′);

Error message above usually happens to CMS Joomla. One of Joomla tables jos_session (the table name depends on prefix) is crash. It’s `very easy to overcome this problem. Just truncate the table jos_session. SQL command:

mysql> truncate jos_session;

Or

mysql> repair table jos_session;

You can always check the table ‘health’ by running the command:
check table jos_session

Done !!

 

 

 

How to get rid of “You don’t have permission to access / on this server.”

Filed in Joomla, Linux

If you ever work on Joomla you may hit with this error.

Forbidden
You don’t have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

This was one of the error which lot lot of my time to fix and yes annoying too !!

So here are the steps which I kfollowed to fix this and atlast what I did to get rid of it.

Method 1:

I googled many articles to fix this issue and found many discussions but they worked for me .I will mention here and you may try your luck .

Method 1: (Didn’t worked for me) 🙁

  1. Check if .htaccess file has 0755 permission.IfAdd the below code in .htaccess file

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

Restart the apache server and check if you have overcome the issue.

Although this trick didnt worked for me.

Method 2: (worked for me) 🙂

I set 0777 permission to all my folder structure .

chmod 777 public_html/ -R

wow it worked.

I know the above trick will work also for you. Its 100% sure. But after that please change the file permissions for your administrator and important folders as you are inviting hackers to hack your site with 777 .