Hi everybody,
i get an heavy SQL error yesterday when a customer tried to renew his password. Now the complete site brings an server error 500
and i really do not know what to do.
Message:
ThirtyBeesDatabaseException: 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 ') GROUP BY c.`id_category` ORDER BY c.`level_depth` ASC , categ...' at line 10
Location:
classes/Category.php line 360
SELECT c.*, cl.*
FROM `tb_category` c
INNER JOIN tb_category_shop category_shop
ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1)
LEFT JOIN `tb_category_lang` cl ON c.`id_category` = cl.`id_category` AND cl.id_shop = 1
LEFT JOIN `tb_category_group` cg ON c.`id_category` = cg.`id_category`
RIGHT JOIN `tb_category` c2 ON c2.`id_category` = 3 AND c.`nleft` >= c2.`nleft` AND c.`nright`
Question
DRMasterChief
Hi everybody,
i get an heavy SQL error yesterday when a customer tried to renew his password. Now the complete site brings an server error 500
and i really do not know what to do.
I really look for @datakick for any help, please!
Please see this error message:
Message:
ThirtyBeesDatabaseException: 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 ') GROUP BY c.`id_category` ORDER BY c.`level_depth` ASC , categ...' at line 10
Location:
classes/Category.php line 360
SELECT c.*, cl.*
FROM `tb_category` c
INNER JOIN tb_category_shop category_shop
ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1)
LEFT JOIN `tb_category_lang` cl ON c.`id_category` = cl.`id_category` AND cl.id_shop = 1
LEFT JOIN `tb_category_group` cg ON c.`id_category` = cg.`id_category`
RIGHT JOIN `tb_category` c2 ON c2.`id_category` = 3 AND c.`nleft` >= c2.`nleft` AND c.`nright`
#0 classes/Category.php(360)
#1 classes/db/Db.php(235): ()
#2 classes/db/Db.php(441): DbCore->displayError(string(624): "\n\t\t\t\tSELECT c.*, cl.*\n\t\t\t\tFROM `tb_category` c\n\t\t\t\t INNER JOIN tb"...)
#3 classes/db/Db.php(1102): DbCore->query(string(624): "\n\t\t\t\tSELECT c.*, cl.*\n\t\t\t\tFROM `tb_category` c\n\t\t\t\t INNER JOIN tb"...)
#4 classes/Category.php(360): DbCore->getArray(string(624): "\n\t\t\t\tSELECT c.*, cl.*\n\t\t\t\tFROM `tb_category` c\n\t\t\t\t INNER JOIN tb"...)
#5 modules/blocktopmenu/blocktopmenu.php(603): CategoryCore::getNestedCategories(3, 1, false, array(0) [])
#6 modules/blocktopmenu/blocktopmenu.php(1004): Blocktopmenu->makeMenu()
#7 classes/Hook.php(833): Blocktopmenu->hookDisplayTop(array(3))
#8 classes/Hook.php(543): HookCore::coreCallHook(Blocktopmenu#1, "hookdisplayTop", array(3))
#9 classes/Hook.php(372): HookCore::execWithoutCache("displayTop", array(3), null, false, true, false, null)
#10 classes/Hook.php(242): HookCore::exec("displayTop", array(0) [], null)
#11 classes/controller/FrontController.php(332): HookCore::displayHook("displayTop")
#12 controllers/front/MyAccountController.php(71): FrontControllerCore->initContent()
#13 classes/controller/Controller.php(209): MyAccountControllerCore->initContent()
#14 classes/controller/FrontController.php(264): ControllerCore->run()
#15 classes/Dispatcher.php(851): FrontControllerCore->run()
#16 index.php(33): DispatcherCore->dispatch()
and the decoded error reporting has the following detail in
Edited by DRMasterChiefSource file: classes/Category.php :
12 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now