We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

cron run errors | Forum

tammy harris
tammy harris Nov 4 '15
i get this error on cron runs
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 32 bytes) in /home/xxxxxx/public_html/ow_core/entity.php on line 69
tammy harris
tammy harris Nov 4 '15
same with line 71
tammy harris
tammy harris Nov 4 '15
line 62 - 71

 public function generateFieldsHash()

    {

        $this->_fieldsHash = array();

        $vars = get_object_vars($this);


        foreach ( $vars as $varName => $varValue )

        {

            if ( $varName != 'id' && !strstr($varName, '_fieldsHash') )

            {

                $this->_fieldsHash[$varName] = crc32($varValue)

tammy harris
tammy harris Nov 5 '15
yes ross i have search and read just about all of them but no answer as to the problem
except increase php memory 
but look at how much it is use it already heaps more then should be allowed 
tammy harris
tammy harris Nov 5 '15
can you tell me what public function generateFieldsHash is 
it may give me idea on where or maybe why plugin to look at
ross Team
ross Nov 5 '15
it is not heaps more, you need to allocate 32 bytes more

read daisy's reply: http://www.oxwall.org/forum/topic/39945?page=1#post-156920

tammy harris
tammy harris Nov 5 '15
no 32 not enough does not matter how high i set php memory to it always asks for more even at 2 gb it wants more
tammy harris
tammy harris Nov 5 '15
Elizabeth, the errors you are talking about occur because the site resources consumption exceeds the server limits.

The first error "Fatal error: Allowed memory size of....." means that your site consumes more php_memory (the amount of memory which is dedicated for the php scripts execution) than allowed. As far as we can see from the screenshots your site consumes more that 256 Mb - that's too much. To find out the reason of such amount of memory consumption, you should answer the following questions:

What type of hosting plan do you use (shared or dedicated)?
What is the server characteristic?
How many users do you have?
How many users are online simultaneously?
How many plugins do you have installed on the site?
tammy harris
tammy harris Nov 5 '15
yes that is why im getting Fatal error: Allowed memory size of 1073741824 bytes exhausted

i need to find out what public function generateFieldsHash is to even know where to start looking 

ross Team
ross Nov 5 '15
in this case you need to upgrade your server as it's capacity can't handle the load, I believe you have a lot of plugins  and some of them can be very memory consuming, let alone the amount of users you have and their activity on the website
tammy harris
tammy harris Nov 5 '15
yes i know this and i have a dedicated server 6 cup 6 gb ram 
and to be able to find where to look i need to know what public function generateFieldsHash is
tammy harris
tammy harris Nov 5 '15
it sounds like something to do with urls 
or is it to do with # tags or photos 
tammy harris
tammy harris Nov 5 '15
its set to use 1 gb php memory now now and still going over 
it may have something to do with this but i not know what it does 
http://www.oxwall.org/forum/topic/41787
ross Team
ross Nov 5 '15
this 

:

public function generateFieldsHash()

    {

        $this->_fieldsHash = array();

        $vars = get_object_vars($this);


        foreach ( $vars as $varName => $varValue )

        {

            if ( $varName != 'id' && !strstr($varName, '_fieldsHash') )

            {

                $this->_fieldsHash[$varName] = crc32($varValue)



it generates hash for dto fields in order to keep field indexes different, this is used for internal optimization. 


as to the topic link you gave BASE_Cron::resetCronFlag


this config is related to the corresponding method which checks just one thing: it does not let another cron task to run while another cron task is running 

tammy harris
tammy harris Nov 5 '15
cool thanks ross double awesome 
now what in hell is a dto field lol


BASE_Cron::resetCronFlag
ok so seams i have couple plugins trying to run cron at same time 
 that also maybe why the php memory is huge on cron run  

ross Team
ross Nov 5 '15
it is an object which can only store some data and then this data can be taken from there, like a carrier, it lets to reduce the amount of request to the server which decrease the load on the server
tammy harris
tammy harris Nov 5 '15
cool thanks so i now know how and what il do some digging and hammer hitting to try work it out


tammy harris
tammy harris Nov 6 '15
i have deactivate all 3rd party plugins and still every hour i get cron error use to much php 
and memory 
fro 2 minutes past to 6 minutes past errors everywhere
The Forum post is edited by tammy harris Nov 6 '15
tammy harris
tammy harris Nov 6 '15
il try every plugin next hour and see 
Pages: 1 2 »