Direct Access problem after installing JomComment on Joomla! 1.5

joomla

I m quite fond of Joomla! project and try to beta test it alot and fix some bugs found in it myself.

I installed the latest version of JomComment over my 1.5 nightly build on my demo server, btw i try always update this install with the latest files from trunk.

When i finished installing it, and it did install successfully, i got a message when trying to log-in into admin backend of Joomla! 1.5:

Direct Access to this location is not allowed.

Though it could by caused by the installled JomComment on Joomla! 1.5 or its any module or plugin, but even when i removed the component by uninstalling it, i still get this message.

legacy mode for Joomla! is ON btw. and the site itself works fine on the front end, only got this problem with the admin side of the Joomla 1.5.

Well then how to solve this issue? here is the solution (and the reason why it was being caused):

Goto file /plugins/system/jom_commentsys_bot.php

Change /replace this part of code:

if(class_exists(‘JSITE’)){
defined( ‘_JEXEC’ ) or die( ‘Direct Access to this location is not allowed.’ );
}
else {
defined( ‘_VALID_MOS’ ) or die( ‘Direct Access to this location is not allowed.’ );
}

to only:

defined( ‘_JEXEC’ ) or die( ‘Direct Access to this location is not allowed.’ );

This will fix the issue and the direct access to this location is now allowed error on the Joomla! 1.5 backend which occured by installing the Jomcomment will be fixed.

hire best wordpress php css developer
Need Help? Hire me now!
I can help you in anything related to webdevelopment, including: HTML, CSS, PHP & MySql, WordPress (plugins & themes development, others), regular expressions, server management, etc.

Leave a Reply

Your email address will not be published.