Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
CHP
New Member
New Member



Joined: Aug 31, 2003
Posts: 7

PostPosted: Sun Aug 31, 2003 8:44 am Reply with quote

I get the following error in the block window when I try to use that very nifty Real time stat.
The reason behind the error may be the very very simple one that it is not compatible with Nuke 6.7 which I use. If so, sorry. But if anybody has made it run under 6.7, please help me get rid of this:

Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /home/heyde/public_html/modules/realtime-stats/index.php on line 46

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /home/heyde/public_html/modules/realtime-stats/index.php on line 46

Warning: MySQL: A link to the server could not be established in /home/heyde/public_html/modules/realtime-stats/index.php on line 46

Warning: Cannot add header information - headers already sent by (output started at /home/heyde/public_html/modules/realtime-stats/index.php:46) in /home/heyde/public_html/modules/realtime-stats/index.php on line 48
Registered
Teacher(Site-Admin)



Last Forum Post
Anonymous
2003-08-30 16:30:31


(60 sec. refresh)
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Aug 31, 2003 11:24 am Reply with quote

Something else is happening because it is release independent. That is a connection error not a script error, per se. the headers message means you need to activate output buffering. If you host it you need to adjust your php.ini setting for output_buffering to

output_buffering = On

If someone else hosts it then you need to add this line to your .htaccess file and put the .htaccess file in the root web directory

PHP_FLAG output_buffering On
 
View user's profile Send private message
CHP







PostPosted: Sun Aug 31, 2003 11:35 am Reply with quote

Thanks - I'd be so sad if it just wasn't 6.7 compatible.

Now, I only got all this php-nuke, phpMyAdmin, etc. sorted the other day, so just to make sure I got it right:
My employer is running the servers that I have been given a space on for my website. All I did was install php-nuke.
So, I have to talk to my local IT people about the output_buffering, right?
 
Raven







PostPosted: Sun Aug 31, 2003 11:39 am Reply with quote

Not necessarily. They need to turn output_buffering on, but you can override it with a .htaccess file. Use a text editor and create an empty file and name it .htaccess . If you just use notepad or wordpad windows will insist on adding a .txt to it. Don't woory about that right now. Add this line to the .htaccess file
PHP_FLAG output_buffering On

Then ftp that to the same directory that your nuke config.php file is located. Then, rename it on your server to .htaccess. That should take care of the headers message.
 
CHP







PostPosted: Sun Aug 31, 2003 11:53 am Reply with quote

Oops!
Did that - and now I have an 'internal server error' and can't access anything at my site.
Any ideas - before the IT people track me down?
 
Raven







PostPosted: Sun Aug 31, 2003 11:55 am Reply with quote

Laughing They don't allow you to override. Just delete your .htaccess file.
 
CHP







PostPosted: Sun Aug 31, 2003 1:14 pm Reply with quote

I am afraid it's disappeared in my directory. It disappeared the moment I changed its name after I ULed via FTP. Hmmm. Isn't that odd, or is it my FTP settings?
Ah well, at least I'll have something to keep me busy tomorrow at work! Confused
 
Raven







PostPosted: Sun Aug 31, 2003 1:34 pm Reply with quote

Your ftp client doesn't display it by default. Can you either telnet of ssh in? If so, it is there. yYou can then delete it.
 
CHP







PostPosted: Sun Aug 31, 2003 1:49 pm Reply with quote

Maybe.
Never tried that. I'll have a go - and be back with news.
 
CHP







PostPosted: Mon Sep 01, 2003 10:56 am Reply with quote

Okay, a day passed by.
I could not access the file, nothing worked. So the IT people had a laugh and deleted it, and the site was back on.
They say - until further notice - I will just have to live with that error. they don't have the time to look into otherwise okay servers, ini files, etc.
d***!
 
Raven







PostPosted: Mon Sep 01, 2003 11:06 am Reply with quote

Well, w/o output_buffering on in the php.ini file, Nuke will not function correctly. It's a 2 second change and restart the web server.
 
CHP







PostPosted: Mon Sep 01, 2003 1:53 pm Reply with quote

I think they are not so much concerned with the time it'll take to make a change, but security. Will output buffering ON affect anything else on a server?
 
Raven







PostPosted: Mon Sep 01, 2003 2:21 pm Reply with quote

All it does is allow you to assemble your browser output prior to sending it to the browser. It enables you to send headers out of order. No security issue at all. It's a processing issue.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©