Reducing memory consumption

I've searched forums and there are some topics about this, but I can't get a proper solution for me.

When clicked on Orca I get:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 21535 bytes) in /home/mysite/orca/inc/util.inc.php on line 236

Please don't tell me to change settings in php.ini ot somewhere on root server because I don't have access to it (hosting).

It must be a way to do this in available php's. Is there any loop that we could remove or smth like that?

Please help because now I had to remove all forum activity :(((

Quote · 3 Mar 2009

hum, i don't know about this, but all orca  work fine except yours.

Quote · 4 Mar 2009

This is the code where error appears (last text line is 236):

function validate_unicode (&$s)
{
if (function_exists('iconv'))
$s = iconv("UTF-8","UTF-8//IGNORE",$s);
}

Quote · 4 Mar 2009

It's not the code in the file, it's a memory error.  Your host is not alotting enough memory for you to run the program your attempting to run.  Request an adjustment to the memory settings of your php.ini file (your host will do this) and it will fix the error.

Quote · 5 Mar 2009

mydatery, I know this. But the hosting provider doesn't want to increase the memory size to more than 32MB. I've read somewhere that something can be done by removing or changing some loops in the code.

Quote · 5 Mar 2009

depending upon the php version being used and the settings the host at the servers root you may be able to add a line ot the .htaccess file to increase the limits, but I can't promise.  I don't use it as I don't have that issue to contend with, but if you look around and do a search for .htaccess increase memory upload limits you should be able to find it.  I know this has been discussed before and resolved.

 

If you can't bypass the host or get them to increase the memory limits for you then you'll have to decide if you want to live with this or obtain a new host that is more willing to work with you.  32 MB is nowhre near enough to run dolphin/orca let alone handle all the widgets once your site comes under a production load.

Quote · 6 Mar 2009

open notepad and paste this code below, name this file .htaccess and upload it to cgi_bin folder ;
php_value max_execution_time 2000000000
php_value max_input_time 20000
php_value memory_limit 128M

let see if it works :)

Quote · 6 Mar 2009

Thanks for helpin him out there esteem, like I said I don't have to deal with host limits so I wasn't sure what the exact resolution was.  Now let's hope his host doesn't override his .htaccess file and he can pull this off.

Quote · 6 Mar 2009

nope, unfortunately .htaccess doesn't work :(

Quote · 10 Mar 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.