Page 1 of 2

site not working

Posted: Fri May 27, 2016 7:23 am
by erosmembers
If I try to visit my site then I get following error:
Check path in CJPAGES and make sure you've setup crontab job

I have seen that the cronjob is not working any longer.
I get following error from cronjob:
<br />
<b>Fatal error</b>: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32251
bytes) in <b>/var/..../domain/www/scj/includes/libs/cj_functions.php</b> on
line <b>0</b><br />
err

Please could you give ma an advice, why this happens?
I did not change anything since some weeks.

Re: site not working

Posted: Fri May 27, 2016 8:27 am
by admin
Hm.. how many traders do you have ?

Re: site not working

Posted: Fri May 27, 2016 8:35 am
by erosmembers
It was set to create traders (option “add notrade as feed traders” is set.)
So this might be possible, that I have now a lot of traders in my system.

Re: site not working

Posted: Fri May 27, 2016 8:45 am
by erosmembers
You are so good :-)

If I try to list tades. then I get following error:
Fatal error: Out of memory (allocated 51904512) (tried to allocate 24 bytes) in /var/home/malinet/eros-members.com/www/scj/includes/db_modules/mysql.php on line 230

The traders table contains 1687 rows.
Can I empty this table?

Re: site not working

Posted: Fri May 27, 2016 9:17 am
by erosmembers
I empty this table, and now the site is working.

But if I list trades the I get following warning:
You have a lot of traders and low php memory limit. It does NOT affect trade, just a speed of this admin part and a little bit functionality of this page. You can add more memory in php.ini (memory limit)

Table traders contains 18 rows.

So is there any other memory poblem?

Re: site not working

Posted: Fri May 27, 2016 1:19 pm
by admin
Just 18 ? are you sure ?

Re: site not working

Posted: Fri May 27, 2016 3:55 pm
by erosmembers
Yes, now I have 134 trades.
But the cron stopped working.

Now I deleted some trades, and it is working...

But there must be something else, I think.
Do you have any idea?

Now I am getting following cron error:
<br />
<b>Fatal error</b>: Uncaught exception 'Exception' with message 'Mysql error:: 1062 (Duplicate
entry 'greatxhamster.com' for key 'PRIMARY') (db_link) in query insert into day (h)
values('greatxhamster.com'). (ca.eros-members.com) ' in
/var/home/domain/www/scj/includes/db_modules/mysql.php:62
Stack trace:
#0 /var/home/malinet/domain/www/scj/includes/db_modules/mysql.php(75): db_error('insert
into day...', 1062, 'Duplicate entry...', 'db_link')
#1 /var/home/domain/www/scj/bin/cron.php(0): db_query()
#2 /var/home/domain/www/scj/bin/cron.php(0): do_sql()
#3 {main}
thrown in <b>/var/home/domain/www/scj/includes/db_modules/mysql.php</b> on
line <b>62</b><br />
err

Re: site not working

Posted: Fri May 27, 2016 5:20 pm
by erosmembers
I am using following setting to count productivity from feeders:
“add notrade as feed traders” in Cj settings - Processed Data.

As you said in http://smartcj.com/wiki/doku.php?id=hin ... om_feeders

I changed this to no.

Re: site not working

Posted: Fri May 27, 2016 5:37 pm
by admin
So what doesn't work now ?

Re: site not working

Posted: Fri May 27, 2016 9:32 pm
by erosmembers
It seems that it is working after last change of “add notrade as feed traders”.

But this can only be a temporary solution.
Or am I wrong?

The warning on List Trades still exists:
You have a lot of traders and low php memory limit. It does NOT affect trade, just a speed of this admin part and a little bit functionality of this page. You can add more memory in php.ini (memory limit)