TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,165
  • Total Topics: 21,346
  • Online today: 678
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 147
  • Total: 148
  • lurkalot

Stack Overflow and Memory Error Messages - can't fix

Started by oneway, July 05, 2006, 10:31:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

oneway

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

Thanks.

G6Cad

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

oneway

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).

IchBin

The only way you can write to the php.ini file is if your host will do it, unless your the host of course. :)

oneway

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..

IchBin

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.

oneway

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!

oneway

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.

IchBin

I don't see why 16 megs would be a big deal. But good luck with that. :)

oneway

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*

This website is proudly hosted on Crocweb Cloud Website Hosting.