MyBB Community Forums

Full Version: Registration Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Every time a person trys to register in my forum they get this

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2 bytes) in /www/hostistry.com/p/g/n/pgnet/htdocs/inc/functions.php on line 2635

It happens right after clicking accept to the forums terms.
put at the top of script ini_set("memory_limit","18M");
Next: wait for myBB specialists answer Smile
Maybe is other way in myBB to resolve this
Do I put this ini_set("memory_limit","18M"); ontop of the function php script?
yes:

<?php
/**
 * MyBB 1.2
 * Copyright  2006 MyBB Group, All Rights Reserved
 *
 * Website: http://www.mybboard.net
 * License: http://www.mybboard.net/eula.html
 *
 * $Id: functions.php 3177 2007-06-29 07:51:12Z chris $
 */

/**
 * Outputs a page directly to the browser, parsing anything which needs to be parsed.
 *
 * @param string The contents of the page.
 */
ini_set("memory_limit","18M");
function output_page($contents)
{
. . .
Ok Well no dice
Near Wrote:Ok Well no dice

I hope that "dice" == "everything's good" - in my english dictionary i haven't slang and "dice" == ~cut Big Grin
lol Sorry no it didn`t work
it's the same error description?
maybe you need change memory limit to bigger - i know this is not too good solution, but...
How would I do that?
Try register to your forum and tell me what you see after "I Agree" click

This error is only, when your scripts try use more memory than you have declared in php.ini
I guess that you don't have access to this file, so when you put this code "ini_set("memory_limit","18M");"
you "spike" to your server that you need more memory. You need change 18M to 20,30..
I have no idea why "functions.php" exceed memory limit - but this is a fact Sad
Pages: 1 2