Hello,
I recently imported the blogs, but there seems to be a issue with the blogs page. I am thinking it is related to the date format that i uploaded, but i might be wrong.
This is the error i am getting:
Database error in vBulletin 4.2.5:
Invalid SQL:
(
SELECT COUNT(*) AS total,
FROM_UNIXTIME(dateline - 3600, '%c-%e-%Y') AS period
FROM blog AS blog
WHERE state IN('visible', 'moderation', 'deleted') AND dateline >= 1514073600 AND dateline < 1515672964
GROUP BY period
) UNION (
SELECT COUNT(*) AS total,
FROM_UNIXTIME(dateline - 3600, '%c-%e-%Y') AS period
FROM blog AS blog
WHERE blog.userid IN () AND dateline >= 1514073600 AND dateline < 1517702400
GROUP BY period
);
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND dateline >= 1514073600 AND dateline < 1517702400
GROUP BY period
)' at line 12
Error Number : 1064
Request Date : Thursday, January 11th 2018 @ 01:16:04 PM
Error Date : Thursday, January 11th 2018 @ 01:16:04 PM
Script : http://localhost/motortopia/blog.php?do=bloglist
Referrer : http://localhost/motortopia/forum.php
Classname : vB_Database_MySQLi
MySQL Version : 10.1.29-MariaDB
And this is the php warning at the top of the page:
PHP Warning: mysqli_query(): (42000/1064): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND dateline >= 1514073600 AND dateline < 1517702400 GROUP BY period )' at line 12 in ..../includes/class_core.php on line 1386
Any help is highly appreciated.
Thank you!
I recently imported the blogs, but there seems to be a issue with the blogs page. I am thinking it is related to the date format that i uploaded, but i might be wrong.
This is the error i am getting:
Database error in vBulletin 4.2.5:
Invalid SQL:
(
SELECT COUNT(*) AS total,
FROM_UNIXTIME(dateline - 3600, '%c-%e-%Y') AS period
FROM blog AS blog
WHERE state IN('visible', 'moderation', 'deleted') AND dateline >= 1514073600 AND dateline < 1515672964
GROUP BY period
) UNION (
SELECT COUNT(*) AS total,
FROM_UNIXTIME(dateline - 3600, '%c-%e-%Y') AS period
FROM blog AS blog
WHERE blog.userid IN () AND dateline >= 1514073600 AND dateline < 1517702400
GROUP BY period
);
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND dateline >= 1514073600 AND dateline < 1517702400
GROUP BY period
)' at line 12
Error Number : 1064
Request Date : Thursday, January 11th 2018 @ 01:16:04 PM
Error Date : Thursday, January 11th 2018 @ 01:16:04 PM
Script : http://localhost/motortopia/blog.php?do=bloglist
Referrer : http://localhost/motortopia/forum.php
Classname : vB_Database_MySQLi
MySQL Version : 10.1.29-MariaDB
And this is the php warning at the top of the page:
PHP Warning: mysqli_query(): (42000/1064): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND dateline >= 1514073600 AND dateline < 1517702400 GROUP BY period )' at line 12 in ..../includes/class_core.php on line 1386
Any help is highly appreciated.
Thank you!
Comment