I ported a EE site from my local machine to a development server. I have everything setup and the control panel is working fine. The front end is broken and I traced down the cause to the failure of one database query. I can replicate the matter with a simple template as follow:
template:
{exp:weblog:entries dynamic="off" weblog="static_pages"}
{title}
{/exp:weblog:entries}MySql code that failed:
SELECT t.entry_id FROM exp_weblog_titles AS t LEFT JOIN exp_weblogs ON t.weblog_id = exp_weblogs.weblog_id LEFT JOIN exp_members AS m ON m.member_id = t.author_id WHERE t.entry_id !='' AND t.site_id IN ('1') AND t.entry_date < 1216282941 AND (t.expiration_date = 0 || t.expiration_date > 1216282941) AND exp_weblogs.is_user_blog = 'n' AND t.weblog_id = '4' AND t.status = 'open' ORDER BY t.sticky desc, t.entry_date desc LIMIT 0, 100My local machine with MySQL 5.1.23rc returns me all entries but the development server with MySQL 5.0.45 returns null. I use phpMyAdmin and observe the same behavior. There are some talk about LEFT JOIN issue with MySQL 5.0.45 but is confirmed not a bug.
Does this ring any bell to anyone?