Forum Support

Shape 5
March 28, 2024, 04:31:58 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: does anyone know about .htaccess  (Read 1730 times)
uglyfashio
Jr. Member
**
Offline Offline

Posts: 247



« 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
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 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

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
uglyfashio
Jr. Member
**
Offline Offline

Posts: 247



« Reply #2 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
uglyfashio
Jr. Member
**
Offline Offline

Posts: 247



« Reply #3 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
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #4 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

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
uglyfashio
Jr. Member
**
Offline Offline

Posts: 247



« Reply #5 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
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #6 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

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
uglyfashio
Jr. Member
**
Offline Offline

Posts: 247



« Reply #7 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
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #8 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

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
uglyfashio
Jr. Member
**
Offline Offline

Posts: 247



« Reply #9 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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
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.