Блог, ошибка 500 Есть решение

Использовал блог в качестве новостного приложения для магазина. Сегодня обнаружил, что новости не открываются, ошибка 500.

Это только у меня такое ?

4 ответа

  • 1
    Максим 3 мая 2018 16:38 #

    Установил приложение "Логи"

    Отметил галочкой чекбокс - "Включить логирование ошибок PHP"

    Появился файл php.log

    Что дальше делать ?

    • +2

      Покажите содержимое файла, если вам оно непонятно.

    • +2

      Отметил галочкой чекбокс - "Включить логирование ошибок PHP"

      Вы открывали после этого страницу с ошибкой 500? Надо открыть, если ещё не открывали, — чтобы сообщение о критичной ошибке добавилось в лог-файл.

      • +1
        Максим Максим 4 мая 2018 13:48 #

        Появился файл error.log


        #6 wa-system/vendors/smarty3/sysplugins/smarty_internal_template.php(286): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL, false, false, true)

        #7 wa-cache/apps/blog/templates/compiled/blog_ru_RU/7f/bf/69/7fbf697b64b2de510d66ee86f2d6923e97ea38e3.file.index.html.php(405): Smarty_Internal_Template->getSubTemplate('/var/www/truweb...', NULL, 'blog_ru_RU', NULL, NULL, Array, 0)
        #8 wa-system/vendors/smarty3/sysplugins/smarty_internal_templatebase.php(180): content_5aeb0f012508d2_29336456(Object(Smarty_Internal_Template))
        #9 wa-system/vendors/smarty3/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('file:index.html', NULL, NULL, NULL, true)
        #10 wa-system/view/waSmarty3View.class.php(127): Smarty_Internal_TemplateBase->display('file:index.html', NULL)
        #11 wa-system/layout/waLayout.class.php(150): waSmarty3View->display('file:index.html')
        #12 wa-system/controller/waViewController.class.php(104): waLayout->display()
        #13 wa-system/controller/waViewController.class.php(47): waViewController->display()
        #14 wa-system/controller/waFrontController.class.php(229): waViewController->run(NULL)
        #15 wa-system/controller/waFrontController.class.php(164): waFrontController->runController(Object(waDefaultViewController), NULL)
        #16 wa-apps/blog/lib/classes/blogFrontController.class.php(79): waFrontController->execute(NULL, 'frontend', 'error')
        #17 wa-system/controller/waFrontController.class.php(58): blogFrontController->execute(NULL, 'frontend', 'post')
        #18 wa-system/waSystem.class.php(740): waFrontController->dispatch()
        #19 wa-system/waSystem.class.php(487): waSystem->dispatchFrontend('novosti/sumochn...')
        #20 index.php(7): waSystem->dispatch()
        #21 {main}

        2018-05-04 13:46:38 37.57.128.37
        Uncaught exception waException:
        Plugin kmlaststockgoods @ blog not found (500)
        ## wa-system/waSystem.class.php(1363)
        #0 wa-apps/shop/plugins/kmlaststockgoods/lib/shopKmlaststockgoodsPlugin.class.php(13): waSystem->getPlugin('kmlaststockgood...')
        #1 wa-cache/apps/blog/templates/compiled/blog_ru_RU/46/68/aa/4668aa2fb12d5cc3550a3c8e7fdc71593b2b4a99.file.sidebar.html.php(669): shopKmlaststockgoodsPlugin::get()
        #2 wa-system/vendors/smarty3/sysplugins/smarty_internal_templatebase.php(180): content_5aeb0f03120c05_79949988(Object(Smarty_Internal_Template))
        #3 wa-system/vendors/smarty3/sysplugins/smarty_internal_template.php(286): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL, false, false, true)
        #4 wa-cache/apps/blog/templates/compiled/blog_ru_RU/43/94/3e/43943ec2e8dabf841543ff619fb36aeb568ff18e.file.content.html.php(42): Smarty_Internal_Template->getSubTemplate('/var/www/truweb...', NULL, 'blog_ru_RU', NULL, NULL, Array, 0)
        #5 wa-system/vendors/smarty3/sysplugins/smarty_internal_templatebase.php(180): content_5aeb0f0286e170_59874188(Object(Smarty_Internal_Template))
        #6 wa-system/vendors/smarty3/sysplugins/smarty_internal_template.php(286): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL, false, false, true)
        #7 wa-cache/apps/blog/templates/compiled/blog_ru_RU/7f/bf/69/7fbf697b64b2de510d66ee86f2d6923e97ea38e3.file.index.html.php(405): Smarty_Internal_Template->getSubTemplate('/var/www/truweb...', NULL, 'blog_ru_RU', NULL, NULL, Array, 0)
        #8 wa-system/vendors/smarty3/sysplugins/smarty_internal_templatebase.php(180): content_5aeb0f012508d2_29336456(Object(Smarty_Internal_Template))
        #9 wa-system/vendors/smarty3/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('file:index.html', NULL, NULL, NULL, true)
        #10 wa-system/view/waSmarty3View.class.php(127): Smarty_Internal_TemplateBase->display('file:index.html', NULL)
        #11 wa-system/layout/waLayout.class.php(150): waSmarty3View->display('file:index.html')
        #12 wa-system/controller/waViewController.class.php(104): waLayout->display()
        #13 wa-system/controller/waViewController.class.php(47): waViewController->display()
        #14 wa-system/controller/waFrontController.class.php(229): waViewController->run(NULL)
        #15 wa-system/controller/waFrontController.class.php(164): waFrontController->runController(Object(waDefaultViewController), NULL)
        #16 wa-apps/blog/lib/classes/blogFrontController.class.php(79): waFrontController->execute(NULL, 'frontend', 'error')
        #17 wa-system/controller/waFrontController.class.php(58): blogFrontController->execute(NULL, 'frontend', '')
        #18 wa-system/waSystem.class.php(740): waFrontController->dispatch()
        #19 wa-system/waSystem.class.php(487): waSystem->dispatchFrontend('novosti/')
        #20 index.php(7): waSystem->dispatch()
        #21 {main}
        • +1
          Максим Максим 4 мая 2018 13:49 #

          а это php.log

          [03-May-2018 13:33:03 UTC] PHP Notice:  Undefined index:  in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/e2/3f/ed/e23fed8adc2c02d2be39788ab9a4653a74850635.file.catalog.html.php on line 403
          [03-May-2018 13:33:03 UTC] PHP Notice: Undefined index: in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/e2/3f/ed/e23fed8adc2c02d2be39788ab9a4653a74850635.file.catalog.html.php on line 403
          [03-May-2018 13:33:05 UTC] PHP Notice: Undefined index: in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/e2/3f/ed/e23fed8adc2c02d2be39788ab9a4653a74850635.file.catalog.html.php on line 403
          [03-May-2018 13:33:05 UTC] PHP Notice: Undefined index: in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/e2/3f/ed/e23fed8adc2c02d2be39788ab9a4653a74850635.file.catalog.html.php on line 403
          [03-May-2018 13:35:52 UTC] PHP Notice: Undefined index: items_total_discount in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/4c/50/71/4c5071413f7594b7bfeed9ba04e5ae1c02223ede.file.OrderEdit.html.php on line 714
          [03-May-2018 13:35:52 UTC] PHP Notice: Undefined index: discount in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/4c/50/71/4c5071413f7594b7bfeed9ba04e5ae1c02223ede.file.OrderEdit.html.php on line 716
          [03-May-2018 13:35:52 UTC] PHP Notice: Undefined index: items_total_discount in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/4c/50/71/4c5071413f7594b7bfeed9ba04e5ae1c02223ede.file.OrderEdit.html.php on line 716
          [03-May-2018 13:37:31 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
          [03-May-2018 13:37:31 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
          [03-May-2018 13:37:54 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
          [03-May-2018 13:37:54 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
          [03-May-2018 13:38:14 UTC] PHP Notice: Undefined index: in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/e2/3f/ed/e23fed8adc2c02d2be39788ab9a4653a74850635.file.catalog.html.php on line 403
          [03-May-2018 13:38:14 UTC] PHP Notice: Undefined index: in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/e2/3f/ed/e23fed8adc2c02d2be39788ab9a4653a74850635.file.catalog.html.php on line 403
          [03-May-2018 14:04:25 UTC] PHP Notice: Undefined index: reviews_total_count in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/ac/a7/14/aca71480d357271dd87804348c0a53408cdbb1a3.file.reviews.html.php on line 115
          [03-May-2018 14:04:25 UTC] PHP Notice: Trying to get property of non-object in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/ac/a7/14/aca71480d357271dd87804348c0a53408cdbb1a3.file.reviews.html.php on line 115
          [03-May-2018 14:06:56 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
          [03-May-2018 14:06:56 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
          [03-May-2018 14:07:41 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
          [03-May-2018 14:07:41 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
          [04-May-2018 10:47:31 UTC] PHP Notice: Undefined index: reviews_total_count in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/ac/a7/14/aca71480d357271dd87804348c0a53408cdbb1a3.file.reviews.html.php on line 115
          [04-May-2018 10:47:31 UTC] PHP Notice: Trying to get property of non-object in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/ac/a7/14/aca71480d357271dd87804348c0a53408cdbb1a3.file.reviews.html.php on line 115


  • 1
    Максим 4 мая 2018 10:32 #

    [03-May-2018 13:33:03 UTC] PHP Notice: Undefined index: in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/e2/3f/ed/e23fed8adc2c02d2be39788ab9a4653a74850635.file.catalog.html.php on line 403

    [03-May-2018 13:33:03 UTC] PHP Notice:  Undefined index:  in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/e2/3f/ed/e23fed8adc2c02d2be39788ab9a4653a74850635.file.catalog.html.php on line 403
    [03-May-2018 13:33:05 UTC] PHP Notice: Undefined index: in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/e2/3f/ed/e23fed8adc2c02d2be39788ab9a4653a74850635.file.catalog.html.php on line 403
    [03-May-2018 13:33:05 UTC] PHP Notice: Undefined index: in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/e2/3f/ed/e23fed8adc2c02d2be39788ab9a4653a74850635.file.catalog.html.php on line 403
    [03-May-2018 13:35:52 UTC] PHP Notice: Undefined index: items_total_discount in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/4c/50/71/4c5071413f7594b7bfeed9ba04e5ae1c02223ede.file.OrderEdit.html.php on line 714
    [03-May-2018 13:35:52 UTC] PHP Notice: Undefined index: discount in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/4c/50/71/4c5071413f7594b7bfeed9ba04e5ae1c02223ede.file.OrderEdit.html.php on line 716
    [03-May-2018 13:35:52 UTC] PHP Notice: Undefined index: items_total_discount in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/4c/50/71/4c5071413f7594b7bfeed9ba04e5ae1c02223ede.file.OrderEdit.html.php on line 716
    [03-May-2018 13:37:31 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
    [03-May-2018 13:37:31 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
    [03-May-2018 13:37:54 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
    [03-May-2018 13:37:54 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
    [03-May-2018 13:38:14 UTC] PHP Notice: Undefined index: in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/e2/3f/ed/e23fed8adc2c02d2be39788ab9a4653a74850635.file.catalog.html.php on line 403
    [03-May-2018 13:38:14 UTC] PHP Notice: Undefined index: in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/e2/3f/ed/e23fed8adc2c02d2be39788ab9a4653a74850635.file.catalog.html.php on line 403
    [03-May-2018 14:04:25 UTC] PHP Notice: Undefined index: reviews_total_count in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/ac/a7/14/aca71480d357271dd87804348c0a53408cdbb1a3.file.reviews.html.php on line 115
    [03-May-2018 14:04:25 UTC] PHP Notice: Trying to get property of non-object in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/shop/templates/compiled/shop_ru_RU/ac/a7/14/aca71480d357271dd87804348c0a53408cdbb1a3.file.reviews.html.php on line 115
    [03-May-2018 14:06:56 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
    [03-May-2018 14:06:56 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
    [03-May-2018 14:07:41 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
    [03-May-2018 14:07:41 UTC] PHP Notice: Uninitialized string offset: 0 in /var/www/truweb/data/www/1furnitura.ga/wa-cache/apps/blog/templates/compiled/blog_ru_RU/2c/76/d7/2c76d71b9e739624f375dcec3aae0094f03a9296.file.post.html.php on line 431
  • 2
    Максим 25 мая 2018 12:00 # Решение

    Баг "сидел" в одном из плагинов, в приложении "Блог" плагин был отключен и все заработало.

Добавить ответ

Чтобы добавить комментарий, зарегистрируйтесь или войдите