Forum Support

 
Advanced Search


[1]

Offline uglyfashio
Free Member
Posts: 247
Posted on: June 03, 2010, 01:20:02 PM

Hey,

Does anyone know about .htaccess?  I am looking to try and add a line to the .htaccess file that comes with this template, but unfortunately I'm at a loss.

All I want to do is add a code to stop errors showing.  I've tried changing it in the Joomla! config and couldn't and I don't have access to php.ini

Below is the full .htaccess file which, seemingly works, but the bit I have added at the end does not stop the errors from showing Sad

Quote
##
# @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
## Deny access to extension xml files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension xml files
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section


php_flag display_errors off
Logged

Offline mikek
Free Member
Posts: 28743 WWW
Posted on: June 03, 2010, 02:02:00 PM

Hello,

I don't think you could call this in .htaccess because it's a php call:

php_flag display_errors off

You may be able to add it to the site's index.php file but I am not sure.
Logged

Offline uglyfashio
Free Member
Posts: 247
Posted on: June 04, 2010, 06:12:04 AM

oh I see.  I found loads of articles on the net instructing me to do it this way, I probably got the wrong end of the stick in that case Smiley

It doesn't seem to matter now I fixed the issue that I was suffering from.
Logged

Offline uglyfashio
Free Member
Posts: 247
Posted on: June 09, 2010, 01:34:51 PM

Nope I was wrong I have not fixed this issue.

Essentially the problem is this.  I have display errors on, and I want them off.  Changing the Joomla global configuration has not sorted it, and I don't have access to php.ini.

Can anyone advise what I should do or if this is a template issue?

Thanks, your help is as always, much appreciated,

Eoin
Logged

Offline mikek
Free Member
Posts: 28743 WWW
Posted on: June 10, 2010, 07:32:23 AM

Hello,

What error messages are showing on your site? It would be better to fix the error messages, than to try and hide them.
Logged

Offline uglyfashio
Free Member
Posts: 247
Posted on: June 10, 2010, 08:00:10 AM

Agreed.  I most certainly made that point.  The issue seems to be divided.  Firstly I have purchased and installed Community ACL.  It seems like it could be a valuable product, but at the moment it has not turned out to be.  If it ever gets fixed I will let you guys know!  Unfortunately uninstalling the product did not reverse the issues, and having installed it on my local system, and then thought it was working and then installed it on the live system, I've basically done myself a cropper.  Pretty stupid really.

Community ACL is what caused the error messages to start.  Which is not ideal.  I have asked them about this and they have stated a good many security reasons for why I should turn off the error reporting in PHP.  I still think there should be no errors as you stated.  However, their reasons all seem logical and were supported by forum posts around the web.  For anyone interested they revolve around hacker types using the information from the errors to work out how your site is structured, and this is a key part of working out how to hack it.  At least that was my understanding of it.

Anyway, as I haggle with them over the finer details of paying a fair bit of money for something that doesn't work out of the box, I would prefer to have the errors turned off.  Moreover, once it's fixed I would definitely like to have this turned off for the above stated reasons.  The CorePHP people are stating that somewhere in my installation error reporting is turned on, I've turned it off in Joomla global configuration to no avail.  Hence they have suggested it's somewhere in the code, which I can only assume may be in the template, as I assume the Joomla code would turn it on/off via the global configuration.

You'll note that I'm pretty much uneducated about such things, so any advice would be awesome.
Logged

Offline mikek
Free Member
Posts: 28743 WWW
Posted on: June 10, 2010, 12:59:45 PM

Can you post a url to where the errors are shown? So that I can see the error messages are.
Logged

Offline uglyfashio
Free Member
Posts: 247
Posted on: June 13, 2010, 11:17:36 AM

You can find the errors here:

http://www.uglyfashionmedia.com/

some unknown preprocessor calc or something.  It's well over my head !
Logged

Offline mikek
Free Member
Posts: 28743 WWW
Posted on: June 14, 2010, 09:09:24 AM

Hello,

It is being caused by an error in the plugiin cacl_preprocessor. You would need to contact the developer of this plugin to have this resolved or unpublish this plugin.
Logged

Offline uglyfashio
Free Member
Posts: 247
Posted on: July 24, 2010, 09:52:20 AM

Thanks Mike, I did contact them, and they provided a version without the errors.  Which was a relief!
Logged
[1]

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.028 seconds with 21 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.