Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-5145

Search 500 error when post type is deleted

    XporterXMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Should have
    • Resolution: Released
    • Affects Version/s: None
    • Fix Version/s: 2.32.2
    • Labels:
    • Story Points:
      2
    • Sprint:
      Sprint #137
    • Section:
      Search
    • P4 site:
      Handbook
    • Track:
      Development
    • P4 Test Environment:
      atlas
    • Repositories:
      planet4-master-theme

      Description

      Sentry Issue: PLANET4-QA

      ErrorException: Catchable Fatal Error: Object of class WP_Error could not be converted to string
        File "/wp-content/plugins/timber-library/cache/twig/32/325541af798d408d435b0def21d8f8749914270a9007937d5bd96737e6b36928.php", line 196, in __TwigTemplate_5c567831f7a30d5636be1d090000ca5e345fa2c551f7c98d91f5a14827cddf4a::doDisplay
          echo twig_escape_filter($this->env, $this->getAttribute($context["tag"], "link", []), "html", null, true);
        File "/wp-content/plugins/timber-library/vendor/twig/twig/src/Template.php", line 455, in Twig\Template::displayWithErrorHandling
          $this->doDisplay($context, $blocks);
        File "/wp-content/plugins/timber-library/vendor/twig/twig/src/Template.php", line 422, in Twig\Template::display
          $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
        File "/wp-content/plugins/timber-library/cache/twig/7a/7ae7ec6be69fbc115a469a656f5bfbd968914bb140c3c6aa8038266b1e2c24c4.php", line 933, in __TwigTemplate_04f13a3974d5a96c8610309b0906efb8a1c8b57c86f029c95fc19184261fd066::block_content
          $this->loadTemplate([0 => "tease-search.twig", 1 => (("tease-" . $this->getAttribute($context["post"], "post_type", [])) . ".twig"), 2 => "tease.twig"], "search.twig", 371)->display($context);
        File "/wp-content/plugins/timber-library/vendor/twig/twig/src/Template.php", line 216, in Twig\Template::displayBlock
          $template->$block($context, $blocks);
      ...
      (17 additional frame(s) were not displayed)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              pvincent Pieter Vincent
              Reporter:
              nroussos Nikos Roussos
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: