after upgrading from 1.4.5.7 to 1.4.5.8 error Archive:
Fatal error: MySQLi Error: ( SELECT DISTINCT `id`, `show`,`title`,`titlelink` FROM `[prefix]news` WHERE `show` = 1 AND (`date` >= "2013-12-01 00:00:00" AND `date` < "2014-01-01 00:00:00") ORDER BY ``date`` desc ) failed. MySQLi returned the error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'date`` desc' at line 1
how to fix? (where to find what file?)
thanks...
Comments
Fatal error: MySQLi Error: ( SELECT DISTINCT `id`, `show`,`title`,`titlelink` FROM `[prefix]news` WHERE `show` = 1 AND (`date` >= "2013-12-01 00:00:00" AND `date` < "2014-01-01 00:00:00") ORDER BY ``date`` desc ) failed. MySQLi returned the error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'date`` desc' at line 1 in ....
.../zp -core/functions-db-MySQLi.php on line 78
index.php
and
/Zp-core
admin site info: 1.4.5.8 [676d2dec8b] (Official build)
Is it enough? (PS. sorry for my simple English language)
I have a look.
With official zenpage theme, there is the same issue.
step to reproduce :
in search field, set an unknown value
then, the html flow is broken.
http://www.vincentbourganel.fr/news/zpArdoise-a-ZenPhoto-ZenPage-theme
but really, I don't know what are you playing with some core functions...
there is not always backward compatibility and I have to adapt my themes painfully.
I think there is a residual issue with the news archive.
step to reproduce with official themes (garland and zenpage) :
- go to archives
- in archive list, select a monthly news archive.
then, all news counter is wrong (it display the count for the monthly news archive)
in all other case (news page, search page,...) the news counter is right with all news value.
The guide is always our official themes and also our site's theme which is heavily customized and quite more complex than the official themes. We did not encounter any really serious update issues with that. (The last issue was the search issue but that was not a theme one).