PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
gimp8gimp
New Member
New Member


Joined: Mar 31, 2006
Posts: 12

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

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 to the forums!


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 Back to top

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
Moderator


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

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

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
Sells PC To Pay For Divorce


Joined:
Posts: 5661

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

i doubt if this has anything to do with scrolling block...
his server response is slow...
View user's profile Send private message
gimp8gimp
New Member
New Member


Joined: Mar 31, 2006
Posts: 12

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

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

Cheers Gimp
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

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

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...
View user's profile Send private message
gimp8gimp
New Member
New Member


Joined: Mar 31, 2006
Posts: 12

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

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....
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

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

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.
View user's profile Send private message
gimp8gimp
New Member
New Member


Joined: Mar 31, 2006
Posts: 12

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

what could cause the index to be so big?
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

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

well i dont know,your page isnt that big...
i suggest you contact your host and ask them to help you..
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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 Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

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

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...
View user's profile Send private message
gimp8gimp
New Member
New Member


Joined: Mar 31, 2006
Posts: 12

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

just removed the the story with the huge images, Embarassed i keep me fingers crossed
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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.
View user's profile Send private message Send e-mail Visit poster's website
gimp8gimp
New Member
New Member


Joined: Mar 31, 2006
Posts: 12

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

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:
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

I would remove vwar unless you want your site hacked m8
View user's profile Send private message Send e-mail Visit poster's website
fkelly
Moderator


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

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

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.
View user's profile Send private message Visit poster's website
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 Back to top

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


Joined: Mar 31, 2006
Posts: 12

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

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 to the forums!

how do i go about doing above, please be gentle as i a bit of a newb

Gimp
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

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

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


Joined: Mar 31, 2006
Posts: 12

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

i give it a go
View user's profile Send private message
gimp8gimp
New Member
New Member


Joined: Mar 31, 2006
Posts: 12

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

i get a blank page page when adding the additonal code to the config.php
View user's profile Send private message
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

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

i get a very fast load time each visit that I tried. 0.45 seconds. Is this still an issue or is it fixed?
View user's profile Send private message Visit poster's website
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

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

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


Joined: Mar 31, 2006
Posts: 12

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

myabe it the the timezone? as i live in the uk it quick late at night for a while but not during the day
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum