Author |
Message |
gimp8gimp
New Member


Joined: Mar 31, 2006
Posts: 12
|
Posted:
Sun Oct 15, 2006 3:23 am |
|
HI All,
My website is very slow and i dont know why could someone please help or point me in the right direction Only registered users can see links on this board! Get registered or login!
thanks for any help |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Sun Oct 15, 2006 4:07 am |
|
i couldnt find anything....
your index is about 50 kb so that cant be it...
your also not including outside stuff ,so only thing left is your server..
ask your host about this.. |
|
|
|
 |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Sun Oct 15, 2006 6:55 am |
|
Try disabling that scrolling shout box and run it and see what happens. 9.28 seconds for page generation time is astronomical. |
|
|
|
 |
hitwalker

|
Posted:
Sun Oct 15, 2006 7:02 am |
|
i doubt if this has anything to do with scrolling block...
his server response is slow... |
|
|
|
 |
gimp8gimp

|
Posted:
Sun Oct 15, 2006 7:15 am |
|
thanks for the feedback just disabled the shout box seem a bit quicker i will see how it goes.
Cheers Gimp |
|
|
|
 |
hitwalker

|
Posted:
Sun Oct 15, 2006 7:22 am |
|
indeed it is....
ive never seen this before....
not in this way i mean,that a shoutbox can pull the loading time down this way... |
|
|
|
 |
gimp8gimp

|
Posted:
Sun Oct 15, 2006 7:33 am |
|
it was quick for all of 10 mins now back to being slow, this also happened when i disabled the forum block yesterday thinking that was the problem.... |
|
|
|
 |
hitwalker

|
Posted:
Sun Oct 15, 2006 7:46 am |
|
yes your right..
its the same as it was....
a scrolling shoutbox block can make some difference but not like yours...
unless its junk..
and whats realy weird..
if i use a page optimalisation check on your site it shows the following :
URL: http://www.mtgeurope.com
Title: The size of this web page (1491039 bytes) has exceeded the maximum size of 1000000 bytes.
that would mean that somehow your index would be 1,4mb. |
|
|
|
 |
gimp8gimp

|
Posted:
Sun Oct 15, 2006 7:52 am |
|
what could cause the index to be so big? |
|
|
|
 |
hitwalker

|
Posted:
Sun Oct 15, 2006 8:02 am |
|
well i dont know,your page isnt that big...
i suggest you contact your host and ask them to help you.. |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Sun Oct 15, 2006 9:11 am |
|
The two images you have in your first news article (screen shots) are huge!!!
Temporarirly comment our the two image links by editing the news and see what happens. |
|
|
|
 |
hitwalker

|
Posted:
Sun Oct 15, 2006 9:21 am |
|
nice find guardian....
that got us fooled..
but i wonder if it needs to load full if the image is forced to show at 275 x 131.
i shouldnt have any problems with speed as im on broadband...so technically speaking 3 mb is nothing...
but yeah...these sizes is much to big... |
|
|
|
 |
gimp8gimp

|
Posted:
Sun Oct 15, 2006 11:28 am |
|
just removed the the story with the huge images, i keep me fingers crossed |
|
|
|
 |
Guardian2003

|
Posted:
Sun Oct 15, 2006 11:40 am |
|
The image has probably been resized before uploading but regardless of the image size, if the file size is 3Mb it will still try to load 3Mb to the browser - and thats going to take a while.
I have a reasonable fast fiber optic connection but it still took quite a while for the page to fully load.
I think in cases like this you might be better creating a thimb nail with a link to the full size image or if detail is not too important, optimise it as a gif image. |
|
|
|
 |
gimp8gimp

|
Posted:
Sun Oct 15, 2006 11:48 am |
|
still runs like a dog with no legs, spoke to the isp great help they were told me to contact the site db admin, Thats me btw:-( and just got this error for the first when clicking on a the vwar module
> Database Error: Link-ID == false, connect failed
-> MySQL Error: Too many connections
-> MySQL Error Number: 1040
-> Date: 15.10.2006 @ 19:35
-> Script: /modules/vwar/extra/lastactions.php
-> Referer: |
|
|
|
 |
Guardian2003

|
Posted:
Sun Oct 15, 2006 12:27 pm |
|
I would remove vwar unless you want your site hacked m8 |
|
|
|
 |
fkelly

|
Posted:
Sun Oct 15, 2006 4:00 pm |
|
Just one other quick thought that might or might not reveal something. If you can look at your access logs and your error logs there could be something going on in there that's strange. I don't know for sure obviously but assuming the logs are available to you it only would take a couple of minutes to look. I've seen missing files get highlighted that way ... not that that would explain your problem. If you can have the site up in one window and watch while you bring up the screen and then refresh the log in the other window and see what's happening it might point something out. |
|
|
|
 |
gregexp
The Mouse Is Extension Of Arm

Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol
|
Posted:
Sun Oct 15, 2006 6:31 pm |
|
Page Generation: 0.49 Seconds
Page Generation: 0.75 Seconds
Page Generation: 0.49 Seconds
My results are showing its load time is nice now, do you all see the same? |
_________________ For those who stand shall NEVER fall and those who fall shall RISE once more!! |
|
 |
 |
gimp8gimp

|
Posted:
Mon Oct 16, 2006 9:50 am |
|
last night it was reacting very quickly as well without changing anything weird huh? To try and debug i need to create a script as my isp doesn't provide access to Apache error logs on shared hosting http://faq.oneandone.co.uk/script_cookbook__databases/php/9.html
how do i go about doing above, please be gentle as i a bit of a newb
Gimp |
|
|
|
 |
gregexp

|
Posted:
Mon Oct 16, 2006 4:17 pm |
|
Well you could do this.
Open a text editor, paste this code:
error_reporting(0);
$old_error_handler = set_error_handler("userErrorHandler");
function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars)
{
$time=date("d M Y H:i:s");
// Get the error type from the error number
$errortype = array (1 => "Error",
2 => "Warning",
4 => "Parsing Error",
8 => "Notice",
16 => "Core Error",
32 => "Core Warning",
64 => "Compile Error",
128 => "Compile Warning",
256 => "User Error",
512 => "User Warning",
1024 => "User Notice");
$errlevel=$errortype[$errno];
//Write error to log file (CSV format)
$errfile=fopen("errors.csv","a");
fputs($errfile,"\"$time\",\"$filename:
$linenum\",\"($errlevel) $errmsg\"\r\n");
fclose($errfile);
if($errno!=2 && $errno!= {
//Terminate script if fatal errror
die("A fatal error has occured. Script execution has been aborted");
}
}
name the file, errorlog.php
Put that in the includes folder.
Then open config.php(its loaded on EVERY single page within a nuke site) and put this code in:
Right below the <?php
if(defined('FORUM_ADMIN')) {
define('INCLUDE_PATH', '../../../');
} elseif(defined('INSIDE_MOD')) {
define('INCLUDE_PATH', '../../');
} else {
define('INCLUDE_PATH', './');
}
if(file_exists(INCLUDE_PATH.'includes/errorlog.php')){
include('INCLUDE_PATH.'includes/errorlog.php');
} |
|
|
|
 |
gimp8gimp

|
Posted:
Mon Oct 16, 2006 4:37 pm |
|
|
|
 |
gimp8gimp

|
Posted:
Wed Oct 18, 2006 10:48 am |
|
i get a blank page page when adding the additonal code to the config.php |
|
|
|
 |
jaded
Theme Guru

Joined: Nov 01, 2003
Posts: 1006
|
Posted:
Wed Oct 18, 2006 12:49 pm |
|
|
|
 |
gregexp

|
Posted:
Wed Oct 18, 2006 6:01 pm |
|
Sorry for that, one small quote needed to be removed.
Try this :
if(defined('FORUM_ADMIN')) {
define('INCLUDE_PATH', '../../../');
} elseif(defined('INSIDE_MOD')) {
define('INCLUDE_PATH', '../../');
} else {
define('INCLUDE_PATH', './');
}
if(file_exists(INCLUDE_PATH.'includes/errorlog.php')){
include(INCLUDE_PATH.'includes/errorlog.php');
} |
|
|
|
 |
gimp8gimp

|
Posted:
Thu Oct 19, 2006 2:18 am |
|
myabe it the the timezone? as i live in the uk it quick late at night for a while but not during the day |
|
|
|
 |
|