Joomla! Discussion Forums



It is currently Tue Sep 13, 2011 10:46 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 35 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue Apr 15, 2008 8:42 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed May 16, 2007 9:25 pm
Posts: 18
Hi all Joomla! when I install joomla v1.5 in localhost in my pc i used Apache 2.0 Handler and php 5.0.4 the proplem i have its in page "Pre-installation Check" when i install joomla 1.5 in the Recommended Settings joomla tell me its recommend this setting for "Display Errors :OFF:" but in my istallation is "ON" plz tell my how to fix this .


Last edited by humvee on Wed Aug 06, 2008 2:35 pm, edited 1 time in total.
marked topic as resolved as per original poster


Top
 Profile  
 
PostPosted: Tue Apr 15, 2008 9:00 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 9545
Location: Kent, England
Display errors on is not a problem for a localhost/development web site - in fact it can be a benefit if there are any problems whilst you are developing your own web site.
It is an issue for Public/Live web sites here it needs to be switched off.

To do this navigate to your PHP directory and locate the php.ini file.

Look for the line
Code:
display_errors On
:
Attachment:
display_errors.png

Depending on your own particular installation (including OS, distribution, etc, you may find this setting at a different line number so just do a Find with your editor.

Change the On to Off | alternatively on some installations it will show as
Code:
display_errors 1
just change the 1 to 0 (the number zero)

hth

Andy


You do not have the required permissions to view the files attached to this post.

_________________
Andy Wallace - Author of The Joomla! 1.5 Installation Manual http://joomlacode.org/gf/download/docmanfileversion/664/17471/1.5_Installation_Manual_version_0.5.pdf 606,000 downloads and counting!!


Top
 Profile  
 
PostPosted: Tue Apr 15, 2008 9:11 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed May 16, 2007 9:25 pm
Posts: 18
Thanks ... humvee


Top
 Profile  
 
PostPosted: Tue Apr 15, 2008 10:13 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 9545
Location: Kent, England
You are welcome.
If this solves your issue please change the ? icon in your first post to the green tick icon instead :)

Andy

_________________
Andy Wallace - Author of The Joomla! 1.5 Installation Manual http://joomlacode.org/gf/download/docmanfileversion/664/17471/1.5_Installation_Manual_version_0.5.pdf 606,000 downloads and counting!!


Top
 Profile  
 
PostPosted: Sun Apr 20, 2008 6:08 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Mar 28, 2008 6:45 pm
Posts: 88
Location: New York
Go to thiz thread:

viewtopic.php?f=429&t=279727

I changed my .htaccess file and it worked.
p

_________________
Peter Matra
http://www.petermatra.com
mailto://info@avenueCdesign.com


Top
 Profile  
 
PostPosted: Tue Apr 22, 2008 1:09 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 11, 2007 10:09 pm
Posts: 51
Location: Toronto, ON Canada
Hi Andy,
I am running my Joomla on 1.5.2 and I can't fix the problem. 1and1 isn't providing me with any good support at all. They have good servers but terrible technical support. I tried creating php.ini with this code
Code:
display_errors 0
file in Joomla root directory and I also tried adding additional code
Code:
php_flag display_errors "0"
to .htaccess file which is also located in joomla root directory /joomla. None work. In fact when I add additional line to .htaccess file the website doesn't want to open up at all. I read few of your posts and none of the solutions work. I am on shared hosting with full php and mysql support. For my database I am using ver 5. Can you please help me out?

Thanks

Andriy.


Last edited by humvee on Mon Aug 17, 2009 4:46 pm, edited 1 time in total.
removed excessive quoted text


Top
 Profile  
 
PostPosted: Tue Apr 22, 2008 7:42 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 9545
Location: Kent, England
1&1 provide the option to either use PHP4 or PHP5 on their UK Business packages upwards. The attached file is taken directly from my own 1&1 server.
Attachment:
htaccess.zip

unzip the file into the joomla_root/ directory on the server. This will set the preference as PHP5.
Make sure your domain name setting in the 1&1 admin panel is set to the correct directory, typically this would be /joomla (whatever name you want can be used instead of joomla)
Point your web browser at the domain name and the installer should start.
The Display Errors On variable is not critical and it can be controlled by adding
Code:
php_flag display_errors "0"

to the .htaccess file that you add to the server above.
This is for UK/European 1and1, I am unclear whether N.America 1&1 have different configurations on their servers.

Andy


You do not have the required permissions to view the files attached to this post.

_________________
Andy Wallace - Author of The Joomla! 1.5 Installation Manual http://joomlacode.org/gf/download/docmanfileversion/664/17471/1.5_Installation_Manual_version_0.5.pdf 606,000 downloads and counting!!


Top
 Profile  
 
PostPosted: Wed Apr 23, 2008 8:09 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 9545
Location: Kent, England
Hi Andriy,

I did a follow up with the 1&1 uk support on this one and their response to me was to advise them of the domain and they would feed back to me what to do. Not too sure whether this means they will do something server side or it will be something doable from my side of the server. (or indeed whether it is just a stall for lack of knowledge ;) ) I will update you as soon as I hear something more.
Incidentally the system on 1&1 UK has changed since I last had to worry about display errors and I don't in fact think adding the display errors setting to .htaccess or a php.ini file is the correct approach, it certainly did not work for me.

Andy

_________________
Andy Wallace - Author of The Joomla! 1.5 Installation Manual http://joomlacode.org/gf/download/docmanfileversion/664/17471/1.5_Installation_Manual_version_0.5.pdf 606,000 downloads and counting!!


Top
 Profile  
 
PostPosted: Thu Apr 24, 2008 1:33 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 11, 2007 10:09 pm
Posts: 51
Location: Toronto, ON Canada
Thanks, I will be waiting for your post.


Top
 Profile  
 
PostPosted: Wed Apr 30, 2008 1:12 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Apr 30, 2008 1:07 pm
Posts: 1
Sorry guys if I'll sound really noobie, but where is those php.ini and .htaccess files? I searched all over the freehostia place. I'm on free hosting right now, because I'm trying out joomla. Later I'll move to paid host. Anyway, where should those files be?


Top
 Profile  
 
PostPosted: Thu May 01, 2008 4:28 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Nov 10, 2005 3:10 am
Posts: 1926
Location: New Jersey, USA
Or you could just change the error reporting in the Global Configuration...

_________________
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs


Top
 Profile  
 
PostPosted: Thu May 22, 2008 3:11 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Aug 20, 2005 8:53 am
Posts: 831
Location: Italy
to humvee:

I tried to add the line you suggested to .htaccess but I have back:
"a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request"

Please, Do you have any suggestions for me ?


Top
 Profile  
 
PostPosted: Thu May 22, 2008 4:11 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Nov 10, 2005 3:10 am
Posts: 1926
Location: New Jersey, USA
eGulp wrote:
to humvee:

I tried to add the line you suggested to .htaccess but I have back:
"a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request"

Please, Do you have any suggestions for me ?

Image

_________________
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs


Top
 Profile  
 
PostPosted: Thu May 22, 2008 7:02 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Aug 20, 2005 8:53 am
Posts: 831
Location: Italy
To ircmaxell:
in first many thanks for reply. So,
Do you mean that I can complete the installation also with "Display Errors ON" ?
and then I can change it simply in Global configuration, is it right ?

If so, please, Can you suggest me the best configuration with an example:

Path to temp folder = ?
GZIP page compression = ?
Error Reporting = ?

To humvee:
my hoster told me "You cannot add php flags in the .htaccess file since our servers are phpSuexec enabled". That's why I have to put a php.ini file in each folder I want the changes.
So, please, Do t"he display errors function" need to have a php.ini file in each joomla installation folder or just one file into the main joomla folder ?

Many Thanks


Top
 Profile  
 
PostPosted: Fri May 23, 2008 8:44 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 9545
Location: Kent, England
I believe you will need to add one copy of the php.ini file to the joomla_root/ directory and a further copy in the joomla_root/administrator directory. If you are adding the php.ini ahead of installation itself then also add one to the joomla_root/installation directory.

Andy

_________________
Andy Wallace - Author of The Joomla! 1.5 Installation Manual http://joomlacode.org/gf/download/docmanfileversion/664/17471/1.5_Installation_Manual_version_0.5.pdf 606,000 downloads and counting!!


Top
 Profile  
 
PostPosted: Fri May 23, 2008 1:08 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Aug 20, 2005 8:53 am
Posts: 831
Location: Italy
Hi humvee,

Really Many Thanks, all seem to run very good. Thinking can be useful, this is what I done:
I asked my hoster to give me the php.ini file
I had look for "display_errors = On" inside it
I changed "On" with "Off"
I put a copy of the php.ini file into these folders:
public_html
public_html/administrator
public_html/installation

Why not put this inside the online guide here: http://help.joomla.org/content/view/1945/302/
or in teh new documentation site ?


Top
 Profile  
 
PostPosted: Fri May 23, 2008 1:23 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 9545
Location: Kent, England
This is in the new version of the Installation Manual which i have been rewriting for some months now in between doing these forums and living ;)

The next release of Manual (version 1.0) should hopefully not be too much longer in the workings.

I think this information might already be buried somewhere in the FAQ's of the Help Site or Docs site

[Edit] Sorry forgot to add congratulations and to say glad it worked out :-[ ]

_________________
Andy Wallace - Author of The Joomla! 1.5 Installation Manual http://joomlacode.org/gf/download/docmanfileversion/664/17471/1.5_Installation_Manual_version_0.5.pdf 606,000 downloads and counting!!


Top
 Profile  
 
PostPosted: Wed Aug 06, 2008 2:46 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Nov 15, 2006 12:17 am
Posts: 73
Location: USA - Ohio
THIS IS A REPEAT POST BECAUSE IT IS WHAT IS FOUND IN GOOGLE WHEN SEARCHING FOR "DISPLAY ERRORS 1AND1"

After having the same issue I did some research and found what may be the root of the trouble for 1and1 users (though I am using the American side). What seems to be is that 1and1 has listed the example wrong in there FAQ section. I went and did a search for php.ini on the faq.1and1.com site and found the example php.ini file shows:

Code:
allow_url_fopen = off;
memory_limit = 40M;
upload_max_filesize = 20M;
max_execution_time = 50000;
browscap = /usr/local/lib/browscap.ini
register_globals = off;
error_reporting  =  (E_ALL & ~E_NOTICE & ~E_WARNING);
url_rewriter.tags = “a=href,area=href,frame=src,form=fakeentry,fieldset=”;


If you notice the 5th line "browscap = /usr/local/lib/browscap.ini" needs a semi-colon at the end like:

Code:
allow_url_fopen = off;
memory_limit = 40M;
upload_max_filesize = 20M;
max_execution_time = 50000;
browscap = /usr/local/lib/browscap.ini;
register_globals = off;
error_reporting  =  (E_ALL & ~E_NOTICE & ~E_WARNING);
url_rewriter.tags = “a=href,area=href,frame=src,form=fakeentry,fieldset=”;


Other wise everything underneath that line fails to get read. Assuming most use this as the example php.ini they started with an error and add the "display_errors = off;" line at the bottom like myself...

Any way using their example at 1and1 your php.ini file should have the following contents

Code:
### Turn allow_url_fopen ON if you want to allow for site feeds ###
### to reach your site and other content as such ###
### Security Risk involved in allowing allow_url_fopen###
allow_url_fopen = off;
memory_limit = 40M;
upload_max_filesize = 20M;
max_execution_time = 50000;
browscap = /usr/local/lib/browscap.ini;
### Register Globals off for php 4 ###
###if you use an htaccess file to change to 5 this doesn't matter ###
register_globals = off;
error_reporting  =  (E_ALL & ~E_NOTICE & ~E_WARNING);
url_rewriter.tags = “a=href,area=href,frame=src,form=fakeentry,fieldset=”;
display_errors = off;


Then the php.ini file should be placed in the following folders:
    /
    /administrator
    /installation

The reason for only those 3 folders is because php should not be executing anywhere else on your Joomla site. If this is not the case add the php.ini anywhere else your browser can access content from the web. (or you have a problem and need to fix the code)

Also your .htaccess file should only be in the root folder "/" as it will effect all sub folders unlike the php.ini (this is for shared hosting on the 1and1 servers)

your .htaccess should contain (and can be added to the bottom of the joomla htaccess.txt)
Code:
AddType x-mapp-php5 .php
Attachment:
example1.jpg


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Wed Aug 06, 2008 2:45 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 9545
Location: Kent, England
Hi. Tekcronic,

Thanks very much for posting your findings here. You might like to register at the doc.joomla.org wiki pages and create a tutorial on this.

Andy

_________________
Andy Wallace - Author of The Joomla! 1.5 Installation Manual http://joomlacode.org/gf/download/docmanfileversion/664/17471/1.5_Installation_Manual_version_0.5.pdf 606,000 downloads and counting!!


Top
 Profile  
 
PostPosted: Thu Oct 16, 2008 8:24 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Oct 16, 2008 8:19 pm
Posts: 2
Hi. I've followed the instruction and have successfully installed xampp onto the computer and currently installed joomla but got the Display Errors show as "on". I have already changed the php.ini display_errors = off and put a copy into the root,admin/install as well and it still shows "on" What can I do to fix this?

thanks.


Top
 Profile  
 
PostPosted: Fri Oct 17, 2008 12:26 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Nov 15, 2006 12:17 am
Posts: 73
Location: USA - Ohio
I believe with xampp your going to want to either use the portal http://localhost/xampp or place the php.ini in the folder "\xampp\php"


Top
 Profile  
 
PostPosted: Fri Oct 17, 2008 12:29 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 12:38 am
Posts: 13140
Location: Sydney - Australia
1&1 (and others) are a disgrace for still leaving register globals on serverwide. Disabling via a php.ini directive is pretty pointless with regard to server security, see: http://community.joomla.org/team-blogs/ ... -time.html

also: http://community.joomla.org/team-blogs/ ... en-up.html


... oh and I bet they still run php4...

*sigh*

_________________
Brad Baker - Follow me on Twitter @xyzulu @rochenhost
http://www.rochen.com - Joomla! Hosting, the correct way.
http://www.joomlatutorials.com <-- Joomla Help
..somewhere in this hospital the anguished oink of a pig man cries out for help..


Top
 Profile  
 
PostPosted: Fri Oct 17, 2008 5:47 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Sep 24, 2008 8:58 am
Posts: 66
Location: Kathamndu, Nepal
babieblue wrote:
Hi. I've followed the instruction and have successfully installed xampp onto the computer and currently installed joomla but got the Display Errors show as "on". I have already changed the php.ini display_errors = off and put a copy into the root,admin/install as well and it still shows "on" What can I do to fix this?

thanks.


Hi, in XAMPP, php.ini is found in xampp\apache\bin. You sud edit that file.

_________________
Krish
http://www.krishnasunuwar.com.np


Top
 Profile  
 
PostPosted: Fri Oct 17, 2008 6:12 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Oct 16, 2008 8:19 pm
Posts: 2
I still couldn't get the display errors to be off when I re-run the joomla installation scripts.

First Attempt:
I edited the php.ini script in /xampp/php and make copy to /htdocs/joomla, /joomla/admin, /joomla/install. It didn't work.

Second Attempt:
I edited the php.ini script in /xampp/apache/bin and make copy to /htdocs/joomla, /joomla/admin, /joomla/install. It didn't work.

What else can I do to get the display errors to be "off"?

Thanks a lot :)


Top
 Profile  
 
PostPosted: Sat Dec 13, 2008 8:01 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Oct 21, 2008 7:52 pm
Posts: 9
Thanks for that .htaccess file, I'm using 1and1 also. I'll give it a try.


Top
 Profile  
 
PostPosted: Sun Mar 15, 2009 10:04 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Mar 12, 2009 4:24 am
Posts: 2
Hi all, could you please advise why the PHP core configuration shown "display_errors Off" when I used phpinfo() to check, but it still inform Display Errors ON when I install Joomla?


Top
 Profile  
 
PostPosted: Tue Mar 17, 2009 10:54 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Mar 17, 2009 10:07 pm
Posts: 1
Hello, I was trying to locate the "Display Errors is ON" but I could not locate it in my php.ini file.

Can you anyone assist?

Here is my php.ini file:

register_globals = off
allow_url_fopen = off

expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

[Zend]
zend_extension=/usr/local/zo/ZendExtensionManager.so
zend_extension=/usr/local/zo/4_3/ZendOptimizer.so


Top
 Profile  
 
PostPosted: Thu May 21, 2009 12:38 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed May 20, 2009 2:52 pm
Posts: 3
humvee wrote:
Code:
php_flag display_errors "0"

to the .htaccess file that you add to the server above.
Andy

That did it. Thanks Andy.

_________________
Electrodar Advanced Electronics


Top
 Profile  
 
PostPosted: Mon Aug 10, 2009 8:12 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Jul 08, 2009 4:45 pm
Posts: 41
humvee wrote:
...To do this navigate to your PHP directory and locate the php.ini file.
Andy


humvee,

Where do I find this file?

victoryrock


Top
 Profile  
 
PostPosted: Wed Sep 02, 2009 9:02 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Sep 02, 2009 8:39 pm
Posts: 4
victoryrock wrote:
Where do I find this file?


I found mine in "\XAMPP\xampp\php" folder.

Thanks for the above info. It got solved in my case, too.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 35 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 36 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group