Today I'm suddenly getting an error, or rather two error messages:
Stack overflow at line: 426
Out of memory at line: 397
I get either one or the other of these on every new page, and it happens whether in Admin or not, guest or logged in (SMF11RC2, TP86Upgraded), computer rebooted, all the usual obvious checks. Everything else is running okay. It's just the forum that has the problem.
It's doesn't seem to affect the working of the board except for slowing down loading. The message comes after the page gets on screen. Every new page you go to loads, then you have to wait while it puts one or the other (Windows) messages up, which then has to be clicked off.
This happens in IE6 (on 2 different computers), whereas Firefox 1.5.0.4 doesn't do it at all.
Has anyone else struck this? Any ideas, cos I've done/checked everything I can think of, and don't know what to do... http://connect.twm.cc (http://connect.twm.cc)
Thanks.
That sounds more like a database issue than anything else?
I think i read something about that in some post made by TwinsX some time ago.
Do a search and maybe something will come up
Thankyou once again G6. I've spent some hours looking for a solution to this problem in SMF without success, then some time in TP. In TP in a post by Valeno on March 17 (Subject: Problems with index.php), after interactions with Crip and IchBin here is the solution he came up with:
QuoteHi guys ,
i founded the solution!!!
It wasn't a mime type problem, if so no one php file could be executed.
looking in the apache log files i founded a memory error! infact php has a 8mb memory limit for each script, so load.php , when smf is installed with portals, generates a out of memory error!!!
i put the limit to 16mb in php.ini , restarted web server and now all runs very well!!!
There are only two lines in my php.ini file:
register_globals = off
allow_url_fopen = off
I've no idea if Valeno's solution may fix my problem, but is it worth a try? (I would certainly need someone's help to write such a line in php.ini).
The only way you can write to the php.ini file is if your host will do it, unless your the host of course. :)
Hi IchBin. I actually have direct access to it as it's in what is effectively the 'root' of my hosting site (that's presuming there's not another one 'higher' up that may take precedence over it).
Anyway I do want to have a go at modifying it when someone can tell me what to put in it, cos this is a problem I sure gotta get solved..
Ok, so how can you edit the file? Are you logged in on a console? Or is this a windows server. In other words what can you open the file with to edit it? Its pretty simple to change. But you need to look for this line in your php.ini file.
memory_limit = 8M and change it to memory_limit = 16M
If you don't have that line just add it and see if that fixes it.
Okay, will do as soon as I've made my brekky. Then I'll explain about my hosting and tell you how I go, cos I sure need this sorted... Thanks, man!
Well, that has apparently made no difference. *quiet sob* :laugh:
For good or ill I'm hosted on GoDaddy, Linux, Apache (I think), and they've put a php.ini there in the 'root' (highest I have access to) with just the two entries, both set to 'off' as I've said.
I added the line and it's still doing the same thing. How extremely annoying! I'll write to them about this in case there's something else can be done. Other than that I seem to be in big trouble cos there's not a single entry I could find on SMF with a solution to this sort of problem, which quite a number of people have reported!
C'est la vie they reckon...
EDIT. Valeno has just kindly replied to my request to him about this problem. His answer is exactly the same as yours! So while it doesn't help, it will give me more 'ammunition' when I write to GoDaddy, which I shall do in the next half hour.
I don't see why 16 megs would be a big deal. But good luck with that. :)
Quote from: IchBinâââ,¬Å¾Ã,¢ on July 07, 2006, 04:11:42 AM
I don't see why 16 megs would be a big deal. But good luck with that. :)
What I meant was that GoDaddy are often not willing to help with problems they reckon are 'ours' not theirs! Can be annoying, but usually I either work my way around it, or persist with requests till I at least get some help!
In other words their first response is likely to be that they've put php.ini there for me, and it's my problem to sort out. (That is 'GoDaddy-negative', but I stick with them cos of 'GoDaddy-positives' that I like!)
So now I shall go and email them... *fingers crossed*
Yeah I understood what you're saying. Just the positive in me coming out. ;)
Keep us posted on this.
Bummer. GoDaddy say there's no other PHP.INI that may be over-riding my settings. They suggest the problem could be caused by frames - which I don't have anywhere on my site I don't believe, unless my frontpage articles are somehow in frames?? Bloc had lots of articles in 0.86 without problem. I only have about 12.
I even put the memory up to 24Mb in PHP.INI with no change.
So my website is now basically u/s. I dunno what else to do.
THIS IS SERIOUS!
Edit. Valeno says there should be a section in PHP.INI called 'Resource Limits'. Obviously with my just two lines I DON'T. Could you tell me what your PHP.INI says, cos maybe I can add some more lines in, i.e, maybe just putting in 'memory_limit = 16M' is not going to do the job. *somewhat depressed*
Hi !
Sorry for my english....
I think that the php.ini they putted in your folder , is a personal settings file. It is a configuration file that can be useb to tune some php user settings but not all. The original php.ini file is located in /etc/php.ini , if you can't edit that file , you will never rise the memory limit.
You can try to use the phpinfo(); function that reports actual php settings end in it you can see if your new settings about memory are keeped by server.
Bye ;)
Yes they are only allowing you to edit just those couple of variables oneway. As Veleno suggested, create a php file with this code in it to see the actual memory setting.
<?php
phpinfo();
?>
Access the page in your browser to see the actual php settings. Also, any time you make a change to the ini file apache has to be restarted I think. The actual php.ini file has WAY more than just those settings that you are given.
I think your way off course here.......but I could be wrong :)
Ive had a look at your page. Its an Internet Explorer error, nothing to do with php/server/hosting.
More like bad code somewhere. like a never ending loop. I start checking blocks youve added, remove/disable them one at a time to see what happens.
The only custom block is a clock one. The rest are embed in TinyPortal. If the clock is causing it I'd be suprised.... but you never know. It doesn't hurt to check though.
I had Gallery give me this memory error when I had mine set at 8M.
Maybe not a block then :)
It cant be php as its server side, you wouldnt get an IE popup, it must be run time - after its downloaded to the browser - points to java.
it works fine in firefox. A difference between the code for FF and IE is a size fix, its java ? theres a loop in it but unless theres some edit gone wrong I doubt its it.
Some mod thats been added and probably java, or java block, or java function that calls its self.
My day just started for me here in Aussie-land, and I'm most grateful for you guys looking at this rather drastic problem I somehow seem to have landed myself with. From searching Google I've seen how many people around the world have experienced problems like mine - and so few answers about it. Makes me all the more grateful for your help!
I have to say that it's rather shocked me that my forum can be clobbered so easily, and has me wondering if I should go ahead with it towards launch day... (after the countless hours of work I've done to get this far)
Okay, to me it surely does look like a major loop of some sort that IE 'allows' and FF somehow doesn't: the page arrives all fine, then we wait and wait and eventually the error message presents. Then all is well for that particular page.
GoDaddy assure me there is NO php.ini anywhere other than the one I have access to. Which kind of begs the question as to where/how they have php settings done?? So far they won't tell me what their php memory setting is. They did suggest I use ini_set() to change the memory value. From searching php instruction pages it looks like I need to put ini_set (memory_limit = 16M) in php.ini. Is that right?
So... I've already started working backwards one at a time with .php files that have been modified. *oh yeah great fun - not* The clock's been there quite awhile. So have the mods I have installed.
I'm racking my brains about java and will look closely for it like you say eeek. I'll also try and do your test, IchBin and Veleno (I'm not sure I totally understand it yet, but will try).
The problems started after I'd installed Filmloop (filmloop.com) and put it into an article - with considerable difficulty - but ultimately went to bed happy that I'd got it working. Next morning the memory things were there! I immediately 'knew' it was the Filmloop article so deleted it completely - but was amazed when the problem persisted.
Surely there can't be some 'residual' from when I had the article. Spose I could look in MySql again and see if I can see anything obvious (MySql is totally new to me as is PHP).
Sorry for the long post. I'll keep you posted. My deepest thanks to you guys! :up:
Hey - a fellow aussie! I am no expert on many things... but I do know my way around phpmyadmin and mysql, so if you need any help, give me a yell!
If that is the only php.ini file then ask them where are all these settings. This is just a chunk from my php.ini file on my linux server.
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
session.save_path = "/var/lib/php/session"
; Whether to use cookies.
session.use_cookies = 1
; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1
; Name of the session (used as cookie name).
session.name = PHPSESSID
; Initialize session on request startup.
session.auto_start = 0
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0
; The path for which the cookie is valid.
session.cookie_path = /
; The domain for which the cookie is valid.
session.cookie_domain =
; Handler used to serialize data. php is the standard serializer of PHP.
session.serialize_handler = php
; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.
session.gc_probability = 1
session.gc_divisor = 1000
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440
; NOTE: If you are using the subdirectory option for storing session files
; (see session.save_path above), then garbage collection does *not*
; happen automatically. You will need to do your own garbage
; collection through a shell script, cron entry, or some other method.
; For example, the following script would is the equivalent of
; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
; cd /path/to/sessions; find -cmin +24 | xargs rm
; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled. PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.
session.bug_compat_42 = 0
session.bug_compat_warn = 1
; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
session.referer_check =
; How many bytes to read from the file.
session.entropy_length = 0
; Specified here to create the session id.
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
session.cache_limiter = nocache
; Document expires after n minutes.
session.cache_expire = 180
; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
; to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
; in publically accessible computer.
; - User may access your site with the same session ID
; always using URL stored in browser's history or bookmarks.
session.use_trans_sid = 0
; Select a hash function
; 0: MD5 (128 bits)
; 1: SHA-1 (160 bits)
session.hash_function = 0
; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
;
; 4 bits: 0-9, a-f
; 5 bits: 0-9, a-v
; 6 bits: 0-9, a-z, A-Z, "-", ","
session.hash_bits_per_character = 5
; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs. If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On
; Maximum number of persistent links. -1 means no limit.
mssql.max_persistent = -1
; Maximum number of links (persistent+non persistent). -1 means no limit.
mssql.max_links = -1
; Minimum error severity to display.
mssql.min_error_severity = 10
; Minimum message severity to display.
mssql.min_message_severity = 10
; Compatability mode with old versions of PHP 3.0.
mssql.compatability_mode = Off
; Connect timeout
;mssql.connect_timeout = 5
; Query timeout
;mssql.timeout = 60
; Valid range 0 - 2147483647. Default = 4096.
;mssql.textlimit = 4096
; Valid range 0 - 2147483647. Default = 4096.
;mssql.textsize = 4096
; Limits the number of records in each batch. 0 = all records in one batch.
;mssql.batchsize = 0
; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On
; Use NT authentication when connecting to the server
mssql.secure_connection = Off
; Specify max number of processes. Default = 25
;mssql.max_procs = 25
[Assertion]
; Assert(expr); active by default.
;assert.active = On
; Issue a PHP warning for each failed assertion.
;assert.warning = On
; Don't bail out by default.
;assert.bail = Off
; User-function to be called if an assertion fails.
;assert.callback = 0
; Eval the expression with current error_reporting(). Set to true if you want
; error_reporting(0) around the eval().
;assert.quiet_eval = 0
[Ingres II]
; Allow or prevent persistent links.
ingres.allow_persistent = On
; Maximum number of persistent links. -1 means no limit.
ingres.max_persistent = -1
; Maximum number of links, including persistents. -1 means no limit.
ingres.max_links = -1
; Default database (format: [node_id::]dbname[/srv_class]).
ingres.default_database =
; Default user.
ingres.default_user =
; Default password.
ingres.default_password =
[Verisign Payflow Pro]
; Default Payflow Pro server.
pfpro.defaulthost = "test-payflow.verisign.com"
; Default port to connect to.
pfpro.defaultport = 443
; Default timeout in seconds.
pfpro.defaulttimeout = 30
; Default proxy IP address (if required).
;pfpro.proxyaddress =
; Default proxy port.
;pfpro.proxyport =
; Default proxy logon.
;pfpro.proxylogon =
; Default proxy password.
;pfpro.proxypassword =
[com]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
;com.typelib_file =
; allow Distributed-COM calls
;com.allow_dcom = true
; autoregister constants of a components typlib on com_load()
;com.autoregister_typelib = true
; register constants casesensitive
;com.autoregister_casesensitive = false
; show warnings on duplicate constat registrations
;com.autoregister_verbose = true
[mbstring]
; language for internal character representation.
;mbstring.language = Japanese
; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP
; http input encoding.
;mbstring.http_input = auto
; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = SJIS
; enable automatic encoding translation accoding to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
; portable libs/applications.
;mbstring.encoding_translation = Off
; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto
; substitute_character used when character cannot be converted
; one from another
;mbstring.substitute_character = none;
; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
;mbstring.func_overload = 0
[FrontBase]
;fbsql.allow_persistent = On
;fbsql.autocommit = On
;fbsql.default_database =
;fbsql.default_database_password =
;fbsql.default_host =
;fbsql.default_password =
;fbsql.default_user = "_SYSTEM"
;fbsql.generate_warnings = Off
;fbsql.max_connections = 128
;fbsql.max_links = 128
;fbsql.max_persistent = -1
;fbsql.max_results = 128
;fbsql.batchSize = 1000
[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
;exif.encode_unicode = ISO-8859-15
;exif.decode_unicode_motorola = UCS-2BE
;exif.decode_unicode_intel = UCS-2LE
;exif.encode_jis =
;exif.decode_jis_motorola = JIS
;exif.decode_jis_intel = JIS
[Tidy]
; The path to a default tidy configuration file to use when using tidy
;tidy.default_config = /usr/local/lib/php/default.tcfg
; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
tidy.clean_output = Off
[soap]
; Enables or disables WSDL caching feature.
soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
soap.wsdl_cache_dir="/tmp"
; (time to live) Sets the number of second while cached file will be used
; instead of original one.
soap.wsdl_cache_ttl=86400
[aspell]
php_pspell = On
; Local Variables:
; tab-width: 4
; End:
BTW, what version of PHP are you using? If you don't know it, you can find it out with the phpinfo file I told you to create.
Quote from: Techdomain on July 08, 2006, 04:48:32 AM
Hey - a fellow aussie! I am no expert on many things... but I do know my way around phpmyadmin and mysql, so if you need any help, give me a yell!
YEEELLLL! *joking* Should have done 'coo-ee' I reckon. 8)
Anyway, better say g'day mate! First Aussie I've struck in SMF/TP.
I joined your forum. Clever logo!
From a post above maybe you can confirm this for me:
Quote from: onewayThey did suggest I use ini_set() to change the memory value. From searching php instruction pages it looks like I need to put ini_set (memory_limit = 16M) in php.ini. Is that right?
Oh sorry, on re-reading maybe that's not quite in your areas. Not to worry I'll give her a burl soon and see what turns up.
Quote from: IchBinIf that is the only php.ini file then ask them where are all these settings. This is just a chunk from my php.ini file on my linux server.
Man alive, IchBin, that php.ini code is astonishing! GoDaddy NEVER answer any questions about their server settings and the like. They politely refuse and that is that. Example from their last reply: "Unfortunately we are unable to disclose the default memory liimit of our shared hosting servers." Where they will give help I find them good, but they sure don't give out info. about their setup and procedures.
Okay did your test file and you can see results here: http://connect.twm.cc/phpinfo.php (http://connect.twm.cc/phpinfo.php)
Yep - thats way out of my league! I can convert sql databases by hand to be backwards compatible... I know all the ins and outs of exporting and building the suckers... but I know nothing about php.ini!
Your php info looks just like a default php setup to me. mem limit is set at 8mb.
All my sites run happily on 8mb :) My live site runs on 8mb in safe mode, on my test server I tend to use as restricted stuff as I can because if something works on it, it should work anywhere. IchBins gallery problem I can understand as GD will be using all the memory it can get to work with pictures. What you have there, that I can see, should run fine on 8mb.
The php.ini they have on the server will be the proper one, you wont get access to it, and they aint going to change it for you, being as they wont admit its even there. Thats just and easy way to fob you off , because it IS there.
The php.ini you can see is the only things they are going to allow you to change.
A guess one will be Register Globals, the other - long arrays or magic quotes.
There is supposed to be a way to trick your way passed them adding settings to a .htaccess file but not something Ive done so cant help you there :)
I agree with eeek. While I think that this may fix your problem if you could get it switched to 16M, you shouldn't have to for the setup your using now. Something is going crazy.... If this is a test install I would suggest sratching it and starting fresh just to see if it helps.
Wow, that sounds amazing Techdomain. Thanks anyway.
Quote from: eeekThere is supposed to be a way to trick your way passed them adding settings to a .htaccess file but not something Ive done so cant help you there
I found that .htaccess thingy on a php help page. Tried it, but it didn't help unfortunately. I take your point about what they won't tell me. Silly me for believing them! :o
Quote from: IchBinâââ,¬Å¾Ã,¢
I agree with eeek. While I think that this may fix your problem if you could get it switched to 16M, you shouldn't have to for the setup your using now. Something is going crazy.... If this is a test install I would suggest sratching it and starting fresh just to see if it helps.
No it ISN'T a test install! I've worked full time on the forum/website for over a month now, and I was expecting to launch this weekend!!! :'( :knuppel2: :tickedoff:
I'm a 'positive' like you IchBin. My Beloved says I'm a persistent blighter! ;) So I guess I'll just continue working backwards with php files (changing the last modified file back to original till I get back to a config. that stops playing up.
Thanks for all the help. I'm so worn out from all this. Guess I'll see you
very kind blokes in a few months' time.... ???
I'm also taking out my dozen or so frontpage articles. Code of any complexity in them can behave quite badly, e.g., a form I created interacted with other parts of the page messing it up completely. It insisted on inserting the following spurious code within the form, the code ending up IN the 'Message' box!
</body></html></HTML>
I found NO way to stop this (the form was fine used alone), and am now setting up articles using the Custom Actions Mod, where the code you input doesn't interact with the rest of the page.
Maybe this will help my problems, I don't know, but I have had concerns about how article code bahaves.
IMPORTANT NOTE!
With kind help from others, this problem has FINALLY been identified, and shown pretty conclusively to be Javascript, i.e., I can stop it in IE6 but turning off scripting.
So now we know. :D
It's been a rather long and arduous task finding what the problem is. Unfortunately now there's more work for me as I set about trying to find just WHERE the JS problem is in my files.
I'll update when this happens and tell you what it is (but please don't hold your breath, cos I can't see this happening by 10am tomorrow!)
EDIT: someone please say hello or something here cos I seem to be doing all the posts and that makes me feel uncomfortable... (and lonely) :-\
You are not lonley ;)
We are all here and reading, this is quite imortant to know to, so please keep up the information on your findings :)
Im watching :)
Now this may be nothing to do with anything..Just browsing from me laptop with visual studio on it..went to your site and got the error with the option to debug :)
If I open the page in Visual Studio it tries to debug /Themes/default/script.js
and points to a function called -> window_oldAvatarOnload();
find it here
Quoteif (typeof(window_oldAvatarOnload) != "undefined" && window_oldAvatarOnload)
{
window_oldAvatarOnload();
window_oldAvatarOnload = null;
}
No idea what it means :o other than have you done anything to Avatars? or got any strange ones?
I should have known you'd be watching G6, thankyou. :) You're very faithful. (I don't feel lonely any more!) :up:
Quote from: eeek on July 11, 2006, 07:54:38 PM
Im watching :)
Now this may be nothing to do with anything..Just browsing from me laptop with visual studio on it..went to your site and got the error with the option to debug :)
If I open the page in Visual Studio it tries to debug /Themes/default/script.js
and points to a function called -> window_oldAvatarOnload();
find it here
Quoteif (typeof(window_oldAvatarOnload) != "undefined" && window_oldAvatarOnload)
{
window_oldAvatarOnload();
window_oldAvatarOnload = null;
}
No idea what it means :o other than have you done anything to Avatars? or got any strange ones?
Thanks eeek. (Ditto to above!)
No, I haven't been near script.js. Wouldn't be game! I don't have any strange Avatars. I have changed an Avatar. And I did enlarge the size of Avatars in a file somewhere, so I better have a look for this to see where I did it, and what - just in case script.js wasn't happy about that...
Quote from: eeekNow this may be nothing to do with anything..Just browsing from me laptop with visual studio on it..went to your site and got the error with the option to debug :)
If I open the page in Visual Studio it tries to debug /Themes/default/script.js
and points to a function called -> window_oldAvatarOnload();
find it here
Quoteif (typeof(window_oldAvatarOnload) != "undefined" && window_oldAvatarOnload)
{
window_oldAvatarOnload();
window_oldAvatarOnload = null;
}
No idea what it means :o other than have you done anything to Avatars? or got any strange ones?
Guys at SMF have commented on this debugging. I basically understand nothing of this, eeek, so I always bow to superior knowledge - from whatever source! Anyway, for what it's worth, here's what they said:
Quote: "I don't use Windows myself, but I think the 'option to debug' stuff popping up is a bi-product of installing the Visual Studio Developer Tools, nothing actually to do with your site's code as such."
Quote: "Correct. If you have Visual Studio installed, it adds itself as a system debugger. When something crashes, and you choose to debug, it will open up (or if you have multiple system debuggers, you'll get a list of which one to choose)."
QuoteI basically understand nothing of this,
That'll make 2 of us then :)
I know how it works with normal programming but I suspected it would be of no good. Just though it might be a pointer to something you had changed.
If you aint found it yet, I try comparing your files with known good ones. Id use UltraEdit (becasuse I have it) but there are other "file compare" apps. Other than that Im kinda out of suggestions.
Quote from: eeekIf you aint found it yet, I try comparing your files with known good ones. Id use UltraEdit (becasuse I have it) but there are other "file compare" apps. Other than that Im kinda out of suggestions.
Your suggestions, help, and just 'being here' have been wonderful, eeek, thankyou so much!
Goodness, I
had NOT thought of a file compare program (should have, but hadn't). What a fabbo idea. I am chasing this up as I'm speaking - well, writing! :D So you've made a suggestion that's gonna help so much, and get me going on that problem so much easier than I was expecting.
BTW I just love your username - it's a classic!
GOT IT!!
Rejoice with me, please! Almost a week and a half with a website down is pretty drastic.
I would not have got it without God's help nor without eeek writing as he did that Visual Studio had given him the need to debug this on my pages:
if (typeof(window_oldAvatarOnload) != "undefined" && window_oldAvatarOnload)
{
window_oldAvatarOnload();
window_oldAvatarOnload = null;
}
And he asked if I'd done anything with Avatars. That was the necessary clue! (Next time eeek I'll head straight for you, okay, and I will take notice of what Visual Studio says!!)
Tonight, near the top of my pages (SMF 1.1RC2 and TP 0.86) code concerning avatars suddenly caught my eye. Even more interesting was that it was within script coding.
So in TP pages near the top, straight after RSS and above leftbar upshrinking as you can see... were just a few lines of apparently innocuous Javascript (the first 6 below):
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_avatarMaxWidth = 86;
var smf_avatarMaxHeight = 86;
var window_oldAvatarOnload = window.onload;
window.onload = smf_avatarResize;
// ]]></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_leftbar = false;
function shrinkHeaderLeftbar(mode)
{
smf_setThemeOption("collapse_leftbar", mode ? 1 : 0);
document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
You'll note 'avatarMaxWidth = 86'. As I said to eeek I had increased the size that Avatars can be. If I hadn't changed this, there would have been no code in the pages to do it! - and no problem. However this still wouldn't normally have caused any problem. But under Forum, Attachments and Avatars, Avatar Settings, If the avatar is too large...
are setting options like 'Let the HTML resize it' (the default I think) AND THE PROBLEM ONE: 'Resize it with Javascript' which I happened to use thinking how good JS is at manipulating graphics!
That's what did it!!! It was JS as clever people had worked out. And above is the almost unbelievable line of circumstances that led to my website being quite unusable for all this time. As I'm a total novice with JS I can't say whether there's an error there or not but I presume there must be something. In any case big thanks to everyone and especially you eeek, and...
I HAVE MY WEBSITE/FORUM BACK! Yee-har!!! :) ;) :D ;D 8)
EDIT. I hope I'll be forgiven for 'shouting'. You should have heard me here when suddenly all my pages were working again! And G6, you can guide me about whether this should be mentioned to Bloc? (Just that I'd hate anyone else to go through what I just have. I've literally chased all round the world trying to find an answer - and just about decided Forums are too, too difficult to manage...)
WOOHOO!!! Congrats on finding that POS problem. I can only imagine how good it feels to have squashed that bug. Please, feel free to shout all you want!
Glad its fix, well done on tracking it down. ;D :up: :up:
Quote from: IchBinâââ,¬Å¾Ã,¢WOOHOO!!! Congrats on finding that POS problem. I can only imagine how good it feels to have squashed that bug. Please, feel free to shout all you want!
Wow IchBin, 'squashed that bug' is a great way to put it! ;D Yeah, I guess I did hey (with help). The 'never give up' approach works good though, as I know you know. What is POS? *being dense* All I can think of is Point of Sale??!!
Quote from: eeekGlad its fix, well done on tracking it down. Grin thumbsup! thumbsup!
Thanks eeek! I'm still feeling pretty chuffed that I'm not totally hopeless with this complicated stuff that sometimes blows my brain... :P
POS = piece of sh** :)
Like I said, being dense. Tch, tch, and here's me thinking I was going to learn some fandangulous new computer term!