Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help
Author Message
gimp8gimp
New Member
New Member



Joined: Mar 31, 2006
Posts: 12

PostPosted: Sun Oct 15, 2006 3:23 am Reply with quote

HI All,

My website is very slow and i dont know why could someone please help or point me in the right direction www.mtgeurope.com

thanks for any help
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sun Oct 15, 2006 4:07 am Reply with quote

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..
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Sun Oct 15, 2006 6:55 am Reply with quote

Try disabling that scrolling shout box and run it and see what happens. 9.28 seconds for page generation time is astronomical.
 
View user's profile Send private message Visit poster's website
hitwalker







PostPosted: Sun Oct 15, 2006 7:02 am Reply with quote

i doubt if this has anything to do with scrolling block...
his server response is slow...
 
gimp8gimp







PostPosted: Sun Oct 15, 2006 7:15 am Reply with quote

thanks for the feedback just disabled the shout box seem a bit quicker i will see how it goes.

Cheers Gimp
 
hitwalker







PostPosted: Sun Oct 15, 2006 7:22 am Reply with quote

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







PostPosted: Sun Oct 15, 2006 7:33 am Reply with quote

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







PostPosted: Sun Oct 15, 2006 7:46 am Reply with quote

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







PostPosted: Sun Oct 15, 2006 7:52 am Reply with quote

what could cause the index to be so big?
 
hitwalker







PostPosted: Sun Oct 15, 2006 8:02 am Reply with quote

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

PostPosted: Sun Oct 15, 2006 9:11 am Reply with quote

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.
 
View user's profile Send private message Send e-mail
hitwalker







PostPosted: Sun Oct 15, 2006 9:21 am Reply with quote

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







PostPosted: Sun Oct 15, 2006 11:28 am Reply with quote

just removed the the story with the huge images, Embarassed i keep me fingers crossed
 
Guardian2003







PostPosted: Sun Oct 15, 2006 11:40 am Reply with quote

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







PostPosted: Sun Oct 15, 2006 11:48 am Reply with quote

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







PostPosted: Sun Oct 15, 2006 12:27 pm Reply with quote

I would remove vwar unless you want your site hacked m8
 
fkelly







PostPosted: Sun Oct 15, 2006 4:00 pm Reply with quote

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

PostPosted: Sun Oct 15, 2006 6:31 pm Reply with quote

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!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
gimp8gimp







PostPosted: Mon Oct 16, 2006 9:50 am Reply with quote

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 [ Only registered users can see links on this board! Get registered or login! ]
how do i go about doing above, please be gentle as i a bit of a newb

Gimp
 
gregexp







PostPosted: Mon Oct 16, 2006 4:17 pm Reply with quote

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!=Cool {
//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







PostPosted: Mon Oct 16, 2006 4:37 pm Reply with quote

i give it a go
 
gimp8gimp







PostPosted: Wed Oct 18, 2006 10:48 am Reply with quote

i get a blank page page when adding the additonal code to the config.php
 
jaded
Theme Guru



Joined: Nov 01, 2003
Posts: 1006

PostPosted: Wed Oct 18, 2006 12:49 pm Reply with quote

i get a very fast load time each visit that I tried. 0.45 seconds. Is this still an issue or is it fixed?

_________________
Themes BB Skins [ Only registered users can see links on this board! Get registered or login! ]
Graphic Tees [ Only registered users can see links on this board! Get registered or login! ]
Paranormal Tees [ Only registered users can see links on this board! Get registered or login! ]
Ghost Stories & More [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
gregexp







PostPosted: Wed Oct 18, 2006 6:01 pm Reply with quote

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







PostPosted: Thu Oct 19, 2006 2:18 am Reply with quote

myabe it the the timezone? as i live in the uk it quick late at night for a while but not during the day
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

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 ©