Results 1 to 5 of 5

Thread: PHP Fatal error: Uncaught exception

  1. #1
    New user
    Join Date
    10-14-13.
    Posts
    3

    Default PHP Fatal error: Uncaught exception

    Hi there,

    Im experiencing some problems. There appears to be something wrong in both backend and frontend. The problems occur completely random so I can't really put my finger on it. A part of the error.log can be found below. Thanks in advance!

    PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: Incorrect key file for table '/tmp/#sql_230d_0.MYI'; try to repair it (SELECT *, @pid:=pid FROM tl_page WHERE id='35' UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid)' thrown in /public/sites/www.##DOMAIN##.nl/system/modules/core/library/Contao/Database/Statement.php on line 317
    #0 /public/sites/www.##DOMAIN##.nl/system/modules/core/library/Contao/Database/Statement.php(261): Contao\Database\Statement->query()
    #1 /public/sites/www.##DOMAIN##.nl/system/modules/core/models/PageModel.php(408): Contao\Database\Statement->execute('35')
    #2 /public/sites/www.##DOMAIN##.nl/system/modules/social_images/classes/SocialImages.php(51): Contao\PageModel::findParentsById('35')
    #3 /public/sites/www.##DOMAIN##.nl/system/modules/core/pages/PageRegular.php(126): SocialImages\SocialImages->addSocialImages(Object(Contao\PageModel), Object(Contao\LayoutModel), Object(Contao\PageRegular))
    #4 /public/sites/www.##DOMAIN##.nl/index.php(250): Contao\PageRegular->generate(Object(Contao\PageModel))
    #5 /public/sites/www.##DOMAIN##.nl/index.php(411): Index->run()
    #6 {main}


    Or...

    PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: Incorrect key file for table '/tmp/#sql_230d_0.MYI'; try to repair it (SELECT *, @pid:=pid FROM tl_page WHERE id='1' UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid UNION SELECT *, @pid:=pid FROM tl_page WHERE id=@pid)' thrown in /public/sites/www.##DOMAIN##.nl/system/modules/core/library/Contao/Database/Statement.php on line 317
    #0 /public/sites/www.##DOMAIN##.nl/system/modules/core/library/Contao/Database/Statement.php(261): Contao\Database\Statement->query()
    #1 /public/sites/www.##DOMAIN##.nl/system/modules/core/models/PageModel.php(408): Contao\Database\Statement->execute('1')
    #2 /public/sites/www.##DOMAIN##.nl/system/modules/core/library/Contao/Controller.php(601): Contao\PageModel::findParentsById('1')
    #3 /public/sites/www.##DOMAIN##.nl/index.php(159): Contao\Controller::getPageDetails(Object(Contao\Mo del\Collection))
    #4 /public/sites/www.##DOMAIN##.nl/index.php(411): Index->run()
    #5 {main}

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default

    Have you already tried to perform some repair jobs on the database?
    Contao Community Moderator
    → Support options

  3. #3
    New user
    Join Date
    10-14-13.
    Posts
    3

    Default

    Quote Originally Posted by xchs View Post
    Have you already tried to perform some repair jobs on the database?
    Thanks for your reply. I just repaired the database...let;s wait and see

  4. #4
    New user
    Join Date
    10-14-13.
    Posts
    3

    Default Tanks!

    Quote Originally Posted by xchs View Post
    Have you already tried to perform some repair jobs on the database?
    Your solutions seems to work! Thanks alot!

    I tried something like this before, but only on the tables that had an 'overhead'...

    Again, thanks...!

  5. #5
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default

    Nice to hear that. You're welcome.
    Contao Community Moderator
    → Support options

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •