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: 0
  • Guests: 494
  • Total: 494

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.

IchBin

Yeah I understood what you're saying. Just the positive in me coming out. ;)

Keep us posted on this.

oneway

#11
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*

Veleno

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

IchBin

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.

eeek

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.

IchBin

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.

eeek

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.



oneway

#17
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:

Techdomain

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!

IchBin

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.