running Linux 2.6.24.4_0 Appliance distro with Sugar v5.0.0.b and ireports v3.0.0.b
Problem: scheduling the genration of a report as a PDF via email.
Works manually OK (ie: can Run Report).
Many articles on all this, regarding dd/mm/yyyy 24hr date formats, crontab setup, and the problem in <sugarcrm location>/cache/modules/Relationships/relationships.cache.php regarding the missing or misspelt item called: "schedules_created_by" versus "schedules_created_by_rel"
I've narrowed all that down to two remaining issues:
a) If I run the client browser sugarCRM as user: admin and go to menu: ADMIN and SCHEDULER, I end up with the following error appearing in the <sugarcrm location>sugarcrm.log:
FATAL SugarCRM - error fetching relationship from cache schedulers_created_by
http://www.sugarcrm.com/forums/showthread.php?t=20051 covers this issue as does:
http://www.sugarcrm.com/wiki/index.p...hip_from_cache
but as soon as ADMIN => SCHEDULER menu is touched, the problem returns.
OK - so let's assume that remains a background issue.....
b) If we perform the steps suggested for (a), we still have this error:
<sugarcrm location>sugarcrm.log
shows: FATAL SugarCRM - MySQL error 1242: Subquery returns more than 1 row.
The cron procedure sends an email with the following clues/errors, which I am having trouble diagnosing:
email SUBJECT:
Cron <apache@abssugar> cd /usr/share/sugarcrm; php5 -f cron.php 2>&1
email CONTECT:
PHP Warning: mysql_query(): Unable to save result set in /usr/share/sugarcrm/include/database/MysqlManager.php on line 151
Query Failed:select user_id, (select id FROM tracker t2 WHERE t2.user_id = t1.user_id AND visible = 1 ORDER BY id DESC LIMIT 14,1) minid FROM tracker t1 GROUP by user_id::MySQL error 1242: Subquery returns more than 1 row
NOTE: in relation to issue (a) the resultant email that arrives from cron, has two additional lines at the start of the email:
PHP Notice: Undefined offset: 6 in /usr/share/sugarcrm/include/TimeDate.php on line 308
PHP Notice: Undefined offset: 6 in /usr/share/sugarcrm/include/TimeDate.php on line 314
My thinking so far:
I've been looking into (b) with the TimeDate.php matter, and been playing with date and time formats as admin.
I've also been looking into (a) using ireports to generate a report based on the 'tracker' table to try and see what possible data content could be messing up the Sql Query that is failing.
I'm considering doing the upgrade to v5.2.0c - but that may open up a new set of issues. I've been able to add modules, write reports and do most other matters I desire in this 5.0.0b version, and at this stage are reluctant to do the upgrade just becuase of the above 2 issues.
I find no other information about error 1242 on google, other forums or this forum - and would appreciate anybody else's ideas on this.
Gaz


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks