Symfony Exception

ErrorException RuntimeError

HTTP 500 Internal Server Error

An exception has been thrown during the rendering of a template ("Warning: Undefined variable $ussphotoarr").

Exceptions 2

Twig\Error\ RuntimeError

Show exception properties
Twig\Error\RuntimeError {#745
  -lineno: 351
  -name: "Company/companyprofile.html.twig"
  -rawMessage: "An exception has been thrown during the rendering of a template ("Warning: Undefined variable $ussphotoarr")."
  -sourcePath: "/usr/www/users/smartm/templates/Company/companyprofile.html.twig"
  -sourceCode: """
    {% extends "baserfp.html.twig" %}\n
    {% block head %}\n
    <title>\n
    {% set url_last_name22 = "" %}\n
        {% if comp_results[0] is defined %}\n
            {% if (profile == 'Profile' and usereventtag=='' and userjobtag=='' and companyeventtag=='' and companyjobtag=='') %}\n
                {{comp_results[0]['company_name']}}\n
            {% elseif (profile == 'Profile' and usereventtag=='' and userjobtag=='' and companyeventtag=='' and companyjobtag=='yes') %}\n
                Open Jobs at&nbsp;{{comp_results[0]['company_name']}}\n
            {% elseif (profile == 'Profile' and usereventtag=='' and userjobtag=='' and companyeventtag=='yes' and companyjobtag=='') %}\n
                Upcoming Events of&nbsp;{{comp_results[0]['company_name']}}\n
            {% elseif profile=="People" %}\n
                    {{comp_results[0]['company_name']}} - Team \n
            {% else %}\n
                        {% if profile=="Offered Investments" %}\n
                        Offered Investments of&nbsp;{{comp_results[0]['company_name']}}\n
                        {% elseif profile=="Investment Interests" %}\n
                        Investment Interests of&nbsp;{{comp_results[0]['company_name']}}\n
                         {% elseif profile=='Services' %}\n
                        Offered Investment Services of&nbsp;{{comp_results[0]['company_name']}}\n
                        {% elseif profile=='Articles' %}\n
                        {{comp_results[0]['company_name']}}&nbsp;Articles\n
                         {% else %}\n
                        {{comp_results[0]['company_name']}} -&nbsp;{{profile}}\n
                        {% endif %}\n
            {% endif %}\n
        {% else %}\n
            {% if url_last_name is defined and "." in url_last_name %} \n
                {% set url_last_name2 = url_last_name|split('.') %}\n
            {% set url_last_name22 = url_last_name2[0] %}\n
            {% elseif url_last_name is defined %} \n
                 {% set url_last_name22 = url_last_name %}\n
            {% endif %}\n
            {% if usereventtag is defined and userjobtag is defined and companyeventtag is defined and companyjobtag is defined and (usereventtag=='yes' and userjobtag=='' and companyeventtag=='' and companyjobtag=='') %}\n
            Events organized by&nbsp;{{firstname}}&nbsp;{{url_last_name22}}\n
            {% elseif usereventtag is defined and userjobtag is defined and companyeventtag is defined and companyjobtag is defined and (usereventtag=='' and userjobtag=='yes' and companyeventtag=='' and companyjobtag=='') %}\n
            Jobs offered by&nbsp;{{firstname}}&nbsp;{{url_last_name22}}\n
            {% else %}\n
                {% if profile=="Offered Investments" %}\n
                        Offered Investments of&nbsp;{{firstname}}&nbsp;{{url_last_name22}}\n
                        {% elseif profile=="Investment Interests" %}\n
                        Investment Interests of&nbsp;{{firstname}}&nbsp;{{url_last_name22}}\n
                         {% elseif profile=='Services' %}\n
                        Offered Investment Services of&nbsp;{{firstname}}&nbsp;{{url_last_name22}}\n
                         {% else %}\n
                        {{firstname}}&nbsp;{{url_last_name22}}\n
                {% endif %}\n
            {% endif %}\n
        {% endif %} \n
        | Smart Money Match\n
    </title>\n
        \n
            {% if comp_results[0] is defined %}\n
                <link rel="canonical" href="https://www.smartmoneymatch.com/{{comp_results[0]['company_name']}}" />\n
                {% set orgnameurl2 = '' %}\n
                 {% set orgnameurl2 = orgnameurl2~comp_results[0]['company_name'] %}\n
                {% if (profile == 'Profile' and usereventtag=='' and userjobtag=='' and companyeventtag=='' and companyjobtag=='') %}\n
                 <meta name="description" content="Find all the details about{{' '}}{{comp_results[0]['company_name']}} with investments, events, services, and articles.">\n
    \t\t\t\t {# <link rel="canonical" href="{{ path('frontend_companyprofilepage', {'companyname':comp_results[0]['company_name']}) }}" />#}\n
            {% elseif (profile == 'Profile' and usereventtag=='' and userjobtag=='' and companyeventtag=='' and companyjobtag=='yes') %}\n
                 {% set orgnameurl2 = orgnameurl2~'/jobs' %}\n
                <meta name="description" content="Find all investment management jobs offered by{{' '}}{{comp_results[0]['company_name']}}. Smart Money Match helps you find investment industry jobs from around the world.">\n
               {# <link rel="canonical" href="{{ path('jobs_by_companyarea', {'company': comp_results[0]['company_name']|replace({' ': '-'})}) }}" />#}\n
            {% elseif (profile == 'Profile' and usereventtag=='' and userjobtag=='' and companyeventtag=='yes' and companyjobtag=='') %}\n
                {% set orgnameurl2 = orgnameurl2~'/events' %}\n
                <meta name="description" content="Find upcoming investor events from{{' '}}{{comp_results[0]['company_name']}} on Smart Money Match. Here, you will get all investment events globally. Visit the website for more details.">\n
                {#  <link rel="canonical" href="{{ path('event_by_location', {'location': comp_results[0]['company_name']|replace({' ': '-'})}) }}" />#}\n
            {% elseif profile=="People" %}\n
                {% set orgnameurl2 = orgnameurl2~'/people' %}\n
                    <meta name="description" content="See the professionals working for{{' '}}{{comp_results[0]['company_name']}}">\n
                  {#    <link rel="canonical" href="{{ path('frontend_companyprofilepage', {'companyname':comp_results[0]['company_name']}) }}" />#}\n
                    {% else %}\n
                        {% if profile=="Offered Investments" %}\n
                             {% set orgnameurl2 = orgnameurl2~'/investments' %}\n
                        <meta name="description" content="Search all investments offered by{{' '}}{{comp_results[0]['company_name']}} on Smart Money Match. Here you can browse for the right ones for you. Check out the website today!">\n
                        {# <link rel="canonical" href="{{ path('frontend_companyprofilepage', {'companyname':comp_results[0]['company_name']}) }}" />#}\n
                        {% elseif profile=="Investment Interests" %}\n
                            {% set orgnameurl2 = orgnameurl2~'/investor' %}\n
                        <meta name="description" content="Search the investment interests of{{' '}}{{comp_results[0]['company_name']}} on Smart Money Match. You can connect onthe website directly!">\n
                        {#<link rel="canonical" href="{{ path('frontend_companyprofilepage', {'companyname':comp_results[0]['company_name']}) }}" />#}\n
                         {% elseif profile=='Services' %}\n
                             {% set orgnameurl2 = orgnameurl2~'/services' %}\n
                        <meta name="description" content="See the professionals working for{{' '}}{{comp_results[0]['company_name']}}">\n
                       {#  <link rel="canonical" href="{{ path('frontend_companyprofilepage', {'companyname':comp_results[0]['company_name']}) }}" />#}\n
                        {% elseif profile=='Articles' %}\n
                            {% set orgnameurl2 = orgnameurl2~'/articles' %}\n
                        <meta name="description" content="Find the published articles of{{' '}}{{comp_results[0]['company_name']}}. Check out the profile and also the offered investments, events, services, investment interests and connect with its key decision-makers. ">\n
                        {#<link rel="canonical" href="{{ path('frontend_companyprofilepage', {'companyname':comp_results[0]['company_name']}) }}" />#}\n
                        {% endif %}\n
                 {% endif %}\n
                 {% set orglogourl = '' %}\n
                 {% if comp_results[0]['organization_logo']!="" %}\n
                \n
                 {% set orglogourl = orglogourl~comp_results[0]['organization_logo'] %}\n
                 {% endif %}\n
                 {% set orgnameurl = '' %}\n
                 {% set orgnameurl = 'https://www.smartmoneymatch.com/' %}\n
                 {% set orgnameurl = orgnameurl~comp_results[0]['company_name'] %}\n
                 {% set invoffering = '' %} {% set offeoffering = '' %} {% set servoffering = '' %}\n
                 {% if comp_results[0]['investing']=="1" %}\n
                     {% set invoffering = orgnameurl~'/investor' %}\n
                     {% endif %}\n
                     {% if comp_results[0]['offering_investments']=="1" %}\n
                         {% set offeoffering = orgnameurl~'/investments' %}\n
                     {% endif %}\n
                     {% if comp_results[0]['service_provider']=="1" %}\n
                         {% set servoffering = orgnameurl~'/services' %}\n
                     {% endif %}\n
    \t\t\t\t {% if location[0] is defined %}\n
                 <script type="application/ld+json">\n
                                {\n
                  "@context": "https://schema.org",\n
                  "@type": "Organization",\n
                  "additionalType": "{{comp_results[0]['organization_type']}}",\n
                  "address": {\n
                    "@type": "PostalAddress",\n
                    "addressLocality": "{{location[0]['city']}}",\n
                    "addressRegion": "{{location[0]['country']}}",\n
                    "postalCode": "{{location[0]['zip_code']}}",\n
                    "streetAddress": "{{location[0]['city']}}"\n
                  },\n
                  "faxNumber": "{{location[0]['fax']}}",\n
                  "image": "https://www.smartmoneymatch.com/var/uploads/files/{{orglogourl}}",\n
                  "knowsLanguage": "{{location[0]['language']}}",\n
                  "description": "{{comp_results[0]['cdesc']}}",\n
                  "legalName": "{{comp_results[0]['company_name']}}",\n
    \t      "name": "{{comp_results[0]['company_name']}}",\n
                  "telephone": "{{location[0]['phone']}}",\n
                  "url": "https://www.smartmoneymatch.com/{{orgnameurl2}}",\n
                  "sameAs":"{{comp_results[0]['website_url']}}",\n
                  "numberOfEmployees": "{{comp_results[0]['organization_size']}}",\n
                  "contactPoint": "{{comp_results[0]['contactus']}}",\n
                  "hasOfferCatalog" : [\n
                    { "@id": "{{invoffering}}" },\n
                    { "@id": "{{offeoffering}}" },\n
                    { "@id": "{{servoffering}}" }\n
                    ]\n
                }\n
        </script>\n
    \t{% endif %}\n
              {% else %}  {% set dposs = '' %}\n
    \t\t\t\t  {% set dcompp = '' %}\n
    \t\t\t  {% if defaultCompany[0] is defined %}\n
    \t\t\t\t  {% set dposs = defaultCompany[0]['position'] %}\n
    \t\t\t\t  {% set dcompp = defaultCompany[0]['company_name'] %}\n
    \t\t\t\t  {% endif %}\n
                  {% if "." in url_last_name %} \n
                {% set url_last_name2 = url_last_name|split('.') %}\n
            {% set url_last_name22 = url_last_name2[0] %}\n
            {% else %} \n
                 {% set url_last_name22 = url_last_name %}\n
            {% endif %} \n
            {% set saluation = '' %}{% set urlw = firstname~'.'~url_last_name22 %}\n
             <link rel="canonical" href="https://www.smartmoneymatch.com/{{urlw}}" />\n
            {% if location[0]['saluation'] is defined and location[0]['saluation']=="ms" %}\n
                {% set saluation = 'Female' %}\n
                {% elseif location[0]['saluation'] is defined %} {% set saluation = 'Male' %}\n
                    {% endif %}\n
                   {% if (usereventtag=='yes' and userjobtag=='' and companyeventtag=='' and companyjobtag=='') %}\n
                       {% set urlw = urlw~'/'~'events' %}\n
            <meta name="description" content="Find upcoming investor events produced by{{' '}}{{firstname}}{{' '}}{{url_last_name22}} on Smart Money Match. Here, you will get all investment events globally. Visit the website for more details.">\n
            {% elseif (usereventtag=='' and userjobtag=='yes' and companyeventtag=='' and companyjobtag=='') %}\n
                {% set urlw = urlw~'/'~'jobs' %}\n
            <meta name="description" content="Find all investment management jobs offered by{{' '}}{{firstname}}{{' '}}{{url_last_name22}}. Smart Money Match helps you find investment industry jobs from around the world.">\n
            {% else %}\n
                  {% if profile=="Offered Investments" %}\n
                      {% set urlw = urlw~'/'~'investments' %}\n
                      <meta name="description" content="Search all investments offered by{{' '}}{{firstname}}{{' '}}{{url_last_name22}} on Smart Money Match. Here you can browse for the right ones for you. Check out the website today!">\n
                      {% elseif profile=="Investment Interests" %}\n
                          {% set urlw = urlw~'/'~'investor' %}\n
                      <meta name="description" content="Search the investment interests of{{' '}}{{firstname}}{{' '}}{{url_last_name22}} on Smart Money Match. You can connect onthe website directly!">\n
                      {% elseif profile=="Services" %}\n
                          {% set urlw = urlw~'/'~'services' %}\n
                      <meta name="description" content="Search all investments offered by{{' '}}{{firstname}}{{' '}}{{url_last_name22}} on Smart Money Match. Here you can browse for the right ones for you. Check out the website today!">\n
                      {% else %}\n
                       <meta name="description" content="Find the professional profile of{{' '}}{{firstname}}{{' '}}{{url_last_name22}} with the articles, network, and contact options.">\n
                       \n
                      {% endif %}\n
                    {% endif %}\n
    \t\t\t\t\t{% if location[0] is defined %}\t\n
               <script type="application/ld+json">\n
                                {\n
                  "@context": "https://schema.org",\n
                  "@type": "Person",\n
                  "address": {\n
                    "@type": "PostalAddress",\n
                    "addressLocality": "{{location[0]['city']}}",\n
                    "addressRegion": "{{country_of_domicile}}",\n
                    "postalCode": "{{location[0]['zipcode']}}",\n
                    "streetAddress": "{{location[0]['street_address']}}",\n
    \t\t"ContactType": "{{location[0]['contact_number']}}"\n
                  },\n
                   "itemReviewed": {\n
                    "@type": "Article",\n
                    "name": "{{firstname}}",\n
                     "image": "https://www.smartmoneymatch.com/var/uploads/files/{{location[0]['photo']}}",\n
                     "url": "https://www.smartmoneymatch.com/{{firstname}}.{{url_last_name22}}",\n
                     "author": {\n
                     "@type": "Person",\n
                     "name": "{{firstname}}",\n
                     "url": "https://www.smartmoneymatch.com/{{firstname}}.{{url_last_name22}}"\n
                      },\n
                     "headline": "{{location[0]['tagline']}}"\n
                  },       \n
                  "email": "mailto:{{usernames}}",\n
                  "faxNumber": "{{location[0]['fax']}}",\n
                  "image": "{{location[0]['photo']}}",\n
                  "knowsLanguage": "{{location[0]['language_known']}}",\n
                  "description": "{{location[0]['tagline']}}",\n
                  "jobTitle": "{{dposs}}",\n
                  "name": "{{firstname}}",\n
                  "givenName": "{{firstname}}",\n
                  "familyName": "{{url_last_name22}}",\n
                  "gender": "{{saluation}}",\n
                  "worksFor": "{{dcompp}}",\n
                  "telephone": "{{location[0]['contact_number']}}",\n
                  "url": "http://www.smartmoneymatch.com/{{urlw}}"\n
                }\n
        </script> {% endif %}\n
            {% endif %}\n
    \n
    {{parent()}}\n
    \t\t{% endblock %}\n
    {% block body %}\n
        <!DOCTYPE html>\n
        \n
    {% set currhosts = app.request.getSchemeAndHttpHost() %}\n
           \n
     \n
     {% if loggedInUserId != 0 and loggedInUserId!="" %}     \n
        {% if user_comp_associate is defined %}\n
            {% if user_comp_associate != 0 %} \n
                \n
    \t\t\t{{ render(controller('App\\Controller\\HomeController::breadAction', {'title': profile,'profile':'0','company_id':companyid,'user_comp_associate': user_comp_associate,'url_last_name' : last_name,'section_name' : section_name})) }}\n
            {% else %}   \n
                \n
    \t\t\t{{ render(controller('App\\Controller\\HomeController::breadAction', {'title': profile,'profile':'1','company_id':companyid,'allcompanyuserAssoc': allcompanyuserAssoc,'url_last_name' : last_name,'section_name' : section_name})) }}\n
            {% endif %}\n
        {% elseif profile_view == "own" %}  \n
            \n
    \t\t{{ render(controller('App\\Controller\\HomeController::breadAction', {'title': profile,'profile':'0','user_id': user_id,'url_last_name' : last_name,'section_name' : section_name})) }}\n
        {% else %}  \n
            \n
    \t\t\t\t{{ render(controller('App\\Controller\\HomeController::breadAction', {'title': profile,'profile':'1','user_id': user_id,'allcompanyuserAssoc': allcompanyuserAssoc,'url_last_name' : last_name,'section_name' : section_name})) }}\n
        {% endif %}\n
    {% endif %} \n
    <!--breadcrumb-main Closed-->\n
    <div class="white-bg">\n
      <div class="container">\n
          {# employee confirmation message start #}  \n
          <div class="clearfix"></div>\n
          {% include 'Default/errormessage.html.twig'%}\n
          {% if(empconfirmedstatus is defined or empdeclinedstatus is defined) %}\n
          {% if empconfirmedstatus=='1' %}\n
                 <div class="alert alert-success mtop20" role="alert">  \n
                                                       <span style="font-color:black">Your request for the approval of an employee has been approved.</span>\n
                                        </div>\n
                {% elseif empdeclinedstatus=='1' %}\n
                    <div class="alert alert-success mtop20" role="alert">  \n
                                                       <span style="font-color:black">Your request for the approval of an employee has been declined.</span>\n
                                        </div>\n
            {% endif %}\n
            {% endif %}\n
            <div style="display:none" class="blockedmsg alert alert-success mtop20" role="alert">  \n
                                                       <span style="font-color:black">The user is successfully reported. Thanks!</span>\n
                                        </div>\n
          {% if companyid is defined %} \n
              {% if companyid!="" %} \n
              {% if(comp_results[0]['company_name'] is defined)%}              \t\n
                {% set comp_name = comp_results[0]['company_name'] %}\n
              {%else%}\n
                {% set comp_name = '' %}\n
              {% endif %} \n
    \t\t   {{ render(controller('App\\Controller\\CompanyController::profileHeaderAction', {'companyname': comp_name,'user_comp_associate': user_comp_associate,'profile' : profile})) }}\n
               {% else %}  \n
    \t\t  {{ render(controller('App\\Controller\\OfferinvestmentController::profileHeaderIndividualAction', {'userId': user_id,'profileType':profile_view,'url_last_name' : url_last_name,'profile' : profile})) }}\n
               {% endif %}\n
          {% else %}\n
    \t\t  {{ render(controller('App\\Controller\\OfferinvestmentController::profileHeaderIndividualAction', {'userId': user_id,'profileType':profile_view,'url_last_name' : url_last_name,'profile' : profile})) }}\n
          {% endif %}\n
          \n
          {% set sidebars = '' %}\n
           {% if companyjobtag!="" or userjobtag!="" or usereventtag!="" or companyeventtag!="" or companyarticletag!="" or userarticletag!="" %}\n
           {% set sidebars = 'no' %}\n
               {% endif %}\n
            <!--Navigarion tab section mobile view start-->\n
        <div class="col-xs-12 visible-xs mbottom20">\n
            <select class="selectpicker" id="profileMainMenus"> \n
                {% if profile_view is not defined or profile_view=='' %}\n
                    <option value="{{ path('frontend_companyprofilepage', {'companyname':company_name}) }}" {% if profile is defined and profile == 'Profile' %} selected="selected" {% endif %}>Profile</option>\n
                    <option value="{{ path('frontend_companyname_people', {'companyname':company_name}) }}" {% if profile is defined and profile == 'People' %} selected="selected" {% endif %}>People</option>\n
                    <option value="{{ path('frontend_investorinterestpublicorg', {'compnamess':company_name}) }}" {% if profile is defined and profile == 'Investment Interests' %} selected="selected" {% endif %}>Investment Interests </option>\n
                    <option value="{{ path('investor_interest_public_or', {'compnamess':company_name}) }}" {% if profile is defined and profile == 'Offered Investments' %} selected="selected" {% endif %}>Offered Investment</option>\n
                    <option value="{{ path('frontend_companyname_services', {'companyname':company_name}) }}" {% if profile is defined and profile == 'Services' %} selected="selected" {% endif %}>Services</option>\n
                {% else %}\n
                    <option value="{{ path('frontend_offerIndividualProfile', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}" {% if profile is defined and profile == 'Profile' %} selected="selected" {% endif %}>Profile</option>  \n
                    <option value="{{ path('frontend_publicnetwork', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}" {% if profile is defined and profile == 'Network' %} selected="selected" {% endif %}>Network</option>\n
                    <option value="{{ path('frontend_investorinterestpublicindividual', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}" {% if profile is defined and profile == 'Investment Interests' %} selected="selected" {% endif %}>Investment Interests </option>\n
                    <option value="{{ path('frontend_offerIndividualProfileInvestments', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}" {% if profile is defined and profile == 'Offered Investments' %} selected="selected" {% endif %}>Offered Investment</option>\n
                    <option value="{{ path('frontend_offerIndividualProfileServices', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}" {% if profile is defined and profile == 'Services' %} selected="selected" {% endif %}>Services</option>\n
                {% endif %}\n
            </select>\n
        </div>\n
        <!--Navigarion tab section mobile view start-->\n
        <!--Navigarion tab section desktop/iPad view start-->\n
        <div class="hidden-xs tab-2">\n
          <ul class="content-menu"> \n
                {% if profile_view is not defined or profile_view=='' %}\n
                    <li {% if profile is defined and profile == 'Profile' %} class="active" {% endif %}><a href="{{ path('frontend_companyprofilepage', {'companyname':company_name}) }}">Profile</a></li>\n
                {% else %}\n
                    <li {% if profile is defined and profile == 'Profile' %} class="active" {% endif %}><a href="{{ path('frontend_offerIndividualProfile', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}">Profile</a></li>\n
                {% endif %}\n
            {% if profile_view is not defined or profile_view=='' %}\n
               {% if userjobtag=='yes' or usereventtag=='yes' or userarticletag=='yes' %}\n
                 <li {% if profile is defined and profile == 'Network' %} class="active" {% endif %}><a href="{{ path('frontend_publicnetwork', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}">Network</a></li>\n
                 {% else %}\n
                <li {% if profile is defined and profile == 'People' %} class="active" {% endif %}><a href="{{ path('frontend_companyname_people', {'companyname':company_name}) }}">People</a></li>\n
                {% endif %}\n
            {% else %}\n
                <li {% if profile is defined and profile == 'Network' %} class="active" {% endif %}><a href="{{ path('frontend_publicnetwork', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}">Network</a></li>\n
            {% endif %}\n
            {% if profile_view is not defined or profile_view=='' %}\n
            <li {% if profile is defined and profile == 'Investment Interests' %} class="active" {% endif %}><a href="{{ path('frontend_investorinterestpublicorg', {'compnamess':company_name}) }}">Investment Interests</a></li>\n
            {% else %}\n
                <li {% if profile is defined and profile == 'Investment Interests' %} class="active" {% endif %}><a href="{{ path('frontend_investorinterestpublicindividual', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}">Investment Interests</a></li>\n
            {% endif %}\n
            {% if profile_view is not defined or profile_view=='' %}\n
            <li {% if profile is defined and profile == 'Offered Investments' %} class="active" {% endif %}><a href="{{ path('investor_interest_public_or', {'compnamess':company_name}) }}">Offered Investments </a></li>\n
            {% else %} \n
                <li {% if profile is defined and profile == 'Offered Investments' %} class="active" {% endif %}><a href="{{ path('frontend_offerIndividualProfileInvestments', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}">Offered Investments</a></li>\n
            {% endif %}\n
                {% if profile_view is not defined or profile_view=='' %}\n
                        <li {% if profile is defined and profile == 'Services' %} class="active" {% endif %}><a href="{{ path('frontend_companyname_services', {'companyname':company_name}) }}">Services</a>{#<a href="{{ path('frontend_servicecompanyprofile', {'companyname':company_name}) }}" style="padding-left:0px" class="text-green overview-icon editserviceicon"><i class="fa fa-pencil" aria-hidden="true"></i></a>#}</li>\n
            {% else %}\n
                <li {% if profile is defined and profile == 'Services' %} class="active" {% endif %}><a href="{{ path('frontend_offerIndividualProfileServices', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}">Services</a>{#<a href="{{ path('frontend_serviceprofile') }}" style="padding-left:0px" class="text-green overview-icon editserviceicon"><i class="fa fa-pencil" aria-hidden="true"></i></a>#}</li>\n
            {% endif %}\n
          </ul>\n
        </div>\n
        <!--Navigarion tab section desktop/iPad view end-->\n
      </div>\n
    </div>\n
    <!--white-bg Closed-->\n
    <!--Content part start-->\n
    <div class="container">\n
         {% if tabType is not defined %}\n
           {% set tabType = '' %}    \n
           {%endif%}\n
        {% if(company_details.description is defined)%} \n
    {{ render(controller('App\\Controller\\CompanyController::profileTabsAction', {'companyarticletag':companyarticletag,'userarticletag':'','loggedInUserId':loggedInUserId,'company_name': company_name , 'company_details': company_details, 'profile' : profile, 'tabType' : tabType,'sidebars':sidebars})) }}  \n
        {% elseif((user_details.tagline is defined) or (user_details is not empty)) %} \n
    \t\t{{ render(controller('App\\Controller\\CompanyController::profileTabsAction', {'companyarticletag':'','userarticletag':userarticletag,'loggedInUserId':loggedInUserId,'company_name': company_name , 'user_details': user_details, 'profile' : profile,'url_last_name' : url_last_name, 'tabType' : tabType,'sidebars':sidebars})) }}\n
          {% endif %}\n
              {% if companyjobtag!="" %}\n
    \t\t\t    {{ render(controller('App\\Controller\\JobController::searchbytagAction', {'inherit': 1,'company':company_name})) }} \n
                {% elseif userjobtag!="" %}\n
    \t\t\t {{ render(controller('App\\Controller\\JobController::searchbytagAction', {'inherit': 1,'company':company_name})) }} \n
                 {% elseif usereventtag!="" %}\n
    \t\t\t {{ render(controller('App\\Controller\\EventController::searchbytagAction', {'inherit': 1,'company':company_name})) }} \n
                  {% elseif companyeventtag!="" %}\n
                  {{ render(controller('App\\Controller\\EventController::searchbytagAction', {'inherit': 1,'company':company_name})) }} \t\t\t\t   \n
                  {% endif %}\n
                  <span class="companyjobtag" style="display:none">{{companyjobtag}}</span>\n
                  <span class="userjobtag" style="display:none">{{userjobtag}}</span>\n
                  <span class="usereventtag" style="display:none">{{usereventtag}}</span>\n
                  <span class="companyeventtag" style="display:none">{{companyeventtag}}</span>\n
                  <span class="userarticletag" style="display:none">{{userarticletag}}</span>\n
                  <span class="companyarticletag" style="display:none">{{companyarticletag}}</span>\n
    </div>\n
    <script delay="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-57e8aaf6210514a2"></script>    \n
    <script>\n
    $("#profileMainMenus").change(function(){\n
        window.location.href = $(this).val();\n
    });    \n
    $('#profileshare').click(function () { \n
    {% if profile_view is defined %}\n
            var type = "profile";\n
            {%else%}\n
                var type = "company";\n
                {% endif %}\n
    {# #}var profilecompany = $('#profilecompany').val();\n
    $.ajax({\n
                url: "{{ path('profilecompanyshare')}}",\n
                data: {"shareid": "{{id}}", "companyid": profilecompany, "type": type},\n
                type: 'post',\n
                success: function (result)\n
                {\n
                    if (result == 'done') {\n
                        \n
                        alert(type+" has been added in your profile list.");\n
                    }\n
                    if (result == 'already') {\n
                        alert("This "+type+" is already in your profile list.");\n
                    }\n
                }\n
    });\n
         });\n
    </script>\n
    {% if comp_results[0] is defined %}                                \n
    <script>\n
    $(function(){ \n
        var companyjobtag = $(".companyjobtag").text();\n
        var companyeventtag = $(".companyeventtag").text();\n
        var companyarticletag = $(".companyarticletag").text();\n
        if(companyjobtag!=""){\n
            $(".activities .fa-briefcase").css("color","#008394");\n
            $(".activities .fa-calendar-o").css("color","");\n
            $(".activities .fa-repeat").css("color","");\n
            $(".activities .fa-file-text-o").css("color","");\n
        }\n
        else if(companyeventtag!=""){\n
           $(".activities .fa-calendar-o").css("color","#008394");\n
           $(".activities .fa-briefcase").css("color","");\n
           $(".activities .fa-repeat").css("color","");\n
           $(".activities .fa-file-text-o").css("color","");\n
        }\n
        else if(companyarticletag!=""){\n
           $(".activities .fa-file-text-o").css("color","#008394");\n
           $(".activities .fa-calendar-o").css("color","");\n
           $(".activities .fa-briefcase").css("color","");\n
           $(".activities .fa-repeat").css("color","");\n
        }\n
    \tif(companyarticletag==""){\n
        $('.selectpicker').selectpicker();\n
    \t}\n
        if($("#switch-profile").is(":visible")){\n
        $(".editserviceicon").show();\n
        }\n
        else {\n
            $(".editserviceicon").hide();\n
        }\n
        $("#switch-profile").on('change', function(){ \n
           var profileselected = $(this).val();  \n
           $("#something-in-mind").show();\n
           if(profileselected == "public"){\n
               $("#something-in-mind").hide();\n
               $(".overview-icon").hide();\n
               $(".editserviceicon").hide();\n
           }\n
           else {\n
               $(".overview-icon").show();\n
               $(".editserviceicon").show();\n
           }\n
           $.ajax\n
            ({\n
                url: "{{ path('frontend_switchCompanyProfile')}}",\n
                data: {"profileview": profileselected,"company_profile_switch": 1,"companyname":"{{comp_results[0]['company_name']}}","user_comp_associate":"{{user_comp_associate}}"},\n
                type: 'post',\n
                beforeSend: function ()\n
                {\n
                },\n
                success: function (result)\n
                {\n
    \n
                    $("#switch_profile").html(result);\n
                }\n
            });\n
        });\n
    $('.follow_unfollow').on('click', '#follow', function() {\n
     $.post('{{ path('frontend_follow_company_user')}}', {"companyId":"{{companyid}}","user_id":"{{loggedInUserId}}","flag":"follow"},\n
                function(data){\n
                    if(data.result == "ok"){\n
                        var newHtml = '<a class="text-grey" id="unfollow" href="javascript:void(0);"><i class="fa fa-check text-green"></i> Following</a>';\n
                      $(".follow_unfollow").html(newHtml);\n
                      $("#follower_count").show().html(data.count+" followers");\n
                      \n
                      var newHtml2 = '<a class="text-grey" id="unfollow" href="javascript:void(0);"><i class="fa fa-check text-green"></i> </a>';\n
                      $(".follow_unfollow2").html(newHtml2);\n
                      $(".followtextt").text('Following');\n
                      }\n
                }, 'json');\n
    \n
    });\n
    $('.follow_unfollow2').on('click', '#follow', function() {\n
     $.post('{{ path('frontend_follow_company_user')}}', {"companyId":"{{companyid}}","user_id":"{{loggedInUserId}}","flag":"follow"},\n
                function(data){\n
                    if(data.result == "ok"){\n
                        \n
                        var newHtml2 = '<a class="text-grey" id="unfollow" href="javascript:void(0);"><i class="fa fa-check text-green"></i> Following</a>';\n
                      $(".follow_unfollow").html(newHtml2);\n
                      $("#follower_count").show().html(data.count+" followers");\n
                      \n
                        var newHtml = '<a class="text-grey" id="unfollow" href="javascript:void(0);"><i class="fa fa-check text-green"></i> </a>';\n
                      $(".follow_unfollow2").html(newHtml);\n
                      $("#follower_count").show().html(data.count+" followers");\n
                      $(".followtextt").text('Following');\n
                      //window.location.reload();\n
                      }\n
                }, 'json');\n
    \n
    });\n
    $('.follow_unfollow').on('click', '#unfollow', function() {\n
                      $(this).attr("href","#");\n
                      $(this).attr("data-toggle","modal");\n
                      $(this).attr("data-target","#confirm_modal");\n
                      });  \n
                      \n
                      $('.follow_unfollow2').on('click', '#unfollow', function() {\n
                      $(this).attr("href","#");\n
                      $(this).attr("data-toggle","modal");\n
                      $(this).attr("data-target","#confirm_modal");\n
                      });  \n
    //var r = confirm("Do you want to unfollow?");\n
    $('#confirm_modal').on('click', '#confirmbtn', function() {\n
        $.post('{{ path('frontend_unfollow_company_user')}}', {"companyId":"{{companyid}}","user_id":"{{loggedInUserId}}","flag":"unfollow"},\n
                function(data){\n
                    if(data.result == "ok"){\n
                          $("#confirm_modal").modal("hide"); \n
                          var newHtml = '<a class="text-grey" id="follow" href="javascript:void(0);"><i class="fa fa-plus text-green"></i> Follow</a>';\n
                          $(".follow_unfollow").html(newHtml); \n
                          $("#follower_count").html(data.count+" followers");\n
                          var newHtml2 = '<a class="text-grey" id="follow" href="javascript:void(0);"><i class="fa fa-plus text-green"></i></a>';\n
                          $(".follow_unfollow2").html(newHtml2); \n
                          $(".followtextt").text('Follow');\n
                          \n
                          \n
                      }\n
                }, 'json');\n
        });\n
    }); \n
    </script>\n
    {% elseif profile_view is defined %}\n
        <script>\n
    $(function(){ \n
        var userjobtag = $(".userjobtag").text();\n
        var usereventtag = $(".usereventtag").text();\n
        var userarticletag = $(".userarticletag").text();\n
        if(userjobtag!=""){\n
            $(".activities .fa-briefcase").css("color","#008394");\n
            $(".activities .fa-calendar-o").css("color","");\n
            $(".activities .fa-repeat").css("color","");\n
            $(".activities .fa-file-text-o").css("color","");\n
        }\n
        else if(usereventtag!=""){\n
           $(".activities .fa-calendar-o").css("color","#008394");\n
           $(".activities .fa-briefcase").css("color","");\n
           $(".activities .fa-repeat").css("color","");\n
           $(".activities .fa-file-text-o").css("color","");\n
        }\n
        else if(userarticletag!=""){\n
           $(".activities .fa-file-text-o").css("color","#008394");\n
           $(".activities .fa-calendar-o").css("color","");\n
           $(".activities .fa-briefcase").css("color","");\n
           $(".activities .fa-repeat").css("color","");\n
        }\n
    \tif(userarticletag==""){\n
        $('.selectpicker').selectpicker();\n
    \t}\n
        $("#switch-profile").on('change', function(){\n
           var profileselected = $(this).val();  \n
           $("#something-in-mind").show();\n
           $("#public_profile").hide();\n
           \n
           if(profileselected == "public"){\n
               $("#something-in-mind").hide();\n
               $("#public_profile").show();\n
               $("#own_profile").hide();\n
           }\n
            $.ajax\n
            ({\n
                url: "{{ path('frontend_switchIndividualProfile')}}",\n
                data: {"profileview": profileselected,"user_id": "{{user_id}}","profileType": "{{profile_view}}","url_last_name": "{{url_last_name}}"},\n
                type: 'post',\n
                beforeSend: function ()\n
                {\n
                },\n
                success: function (result)\n
                {\n
                    $("#switch_profile").html(result);\n
                }\n
            }); \n
        });\n
    });\n
    </script>\n
    {% endif %}\n
    <script>\n
        $(this).attr("data-toggle","modal");\n
        $(this).attr("data-target","#loginmodal");\n
        </script>\n
    {% endblock %}\n
    """
}
  1.        {% set tabType = '' %}    
  2.        {%endif%}
  3.     {% if(company_details.description is defined)%} 
  4. {{ render(controller('App\\Controller\\CompanyController::profileTabsAction', {'companyarticletag':companyarticletag,'userarticletag':'','loggedInUserId':loggedInUserId,'company_name': company_name , 'company_details': company_details, 'profile' : profile, 'tabType' : tabType,'sidebars':sidebars})) }}  
  5.     {% elseif((user_details.tagline is defined) or (user_details is not empty)) %} 
  6.         {{ render(controller('App\\Controller\\CompanyController::profileTabsAction', {'companyarticletag':'','userarticletag':userarticletag,'loggedInUserId':loggedInUserId,'company_name': company_name , 'user_details': user_details, 'profile' : profile,'url_last_name' : url_last_name, 'tabType' : tabType,'sidebars':sidebars})) }}
  7.       {% endif %}
  8.           {% if companyjobtag!="" %}
  9.                 {{ render(controller('App\\Controller\\JobController::searchbytagAction', {'inherit': 1,'company':company_name})) }} 
  10.             {% elseif userjobtag!="" %}
  11.              {{ render(controller('App\\Controller\\JobController::searchbytagAction', {'inherit': 1,'company':company_name})) }} 
  1.      ";
  2.         // line 365
  3.         $this->displayBlock('header'$context$blocks);
  4.         // line 548
  5.         echo "        ";
  6.         $this->displayBlock('body'$context$blocks);
  7.         echo 
  8. <!-- wrapper content --> 
  9. ";
  10.         // line 550
  11.         $this->displayBlock('footer'$context$blocks);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Company/companyprofile.html.twig"));
  3.         $this->parent $this->loadTemplate("baserfp.html.twig""Company/companyprofile.html.twig"1);
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  7.         
  8.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
in vendor/twig/twig/src/Template.php -> display (line 379)
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.         $this->template $template;
  2.     }
  3.     public function render(array $context = []): string
  4.     {
  5.         return $this->template->render($context);
  6.     }
  7.     public function display(array $context = [])
  8.     {
  9.         // using func_get_args() allows to not expose the blocks argument
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = []): string
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.             if ($v instanceof FormInterface) {
  2.                 $parameters[$k] = $v->createView();
  3.             }
  4.         }
  5.         return $this->container->get('twig')->render($view$parameters);
  6.     }
  7.     /**
  8.      * Renders a view.
  9.      *
  1.      * If an invalid form is found in the list of parameters, a 422 status code is returned.
  2.      * Forms found in parameters are auto-cast to form views.
  3.      */
  4.     protected function render(string $view, array $parameters = [], ?Response $response null): Response
  5.     {
  6.         $content $this->renderView($view$parameters);
  7.         $response ??= new Response();
  8.         if (200 === $response->getStatusCode()) {
  9.             foreach ($parameters as $v) {
  10.                 if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
AbstractController->render() in src/Controller/OfferinvestmentController.php (line 4563)
  1.                       return $this->redirect($this->generateUrl('frontend_investors'));*/
  2.                       return new RedirectResponse($this->generateUrl('frontend_investors'), '301');
  3.         }
  4.         $breadcrumbData $this->getUserData($firstname$lastname);
  5.         if(null === $users){
  6.         return $this->render('Company/companyprofile.html.twig', ['defaultCompany' => $defaultCompany,'userarticletag' =>$userarticletag,'location' => $locations,'usereventtag' =>$usereventtag,'companyarticletag'=>$companyarticletag,'companyeventtag' => $companyeventtag,'userjobtag' =>$userjobtag,'companyjobtag' => $companyjobtag,'description' => ' Investment Interests page coming soon''country_of_domicile' => $breadcrumbData['country_of_domicile'], 'qualified_check' => $breadcrumbData['qualified_check'], 'contacts_results' => $breadcrumbData['contacts_results'], 'role_results' => $breadcrumbData['role_results'], 'lang_results' => $breadcrumbData['lang_results'], 'bconn_count_results' => $breadcrumbData['bconn_count_results'], 'countryname' => $breadcrumbData['countryname'], 'user_id' => $breadcrumbData['user_id'], 'firstname' => $breadcrumbData['firstname'], 'last_name' => $breadcrumbData['lastname'],'asset_class_results' => $breadcrumbData['asset_class_results'], 'country' => $breadcrumbData['country'], 'currency' => $breadcrumbData['currency'], 'usernames' => $breadcrumbData['usernames'], 'addedtonetwork' => $breadcrumbData['addedtonetwork'],'company_name' => $breadcrumbData['company_name'],  "url_last_name" => $breadcrumbData['url_last_name'],"user_details" => $breadcrumbData['user_details'],"loggedInUserId" => $breadcrumbData['loggedInUserId'],'id' => $breadcrumbData['id'],'profile' => "Investment Interests",'profile_view' => $breadcrumbData['profile_view'],'section_name' => $section_name]);
  7.         }else{
  8.          // Now fetch all the companies user is associated with
  9.             $statement $connection->prepare("SELECT distinct c.id,c.organization_logo FROM company c left join company_roles cr on c.id=cr.company_id where cr.user_id= :loggedinUser limit 0,3");
  10.             $statement->bindValue('loggedinUser'$users->getId());
  11.             $statement2 $statement->execute();
in vendor/symfony/http-kernel/HttpKernel.php -> offerIndividualProfileInvestmentPortfolio (line 181)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/usr/www/users/smartm/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. umask(0000);
  3. use App\Kernel;
  4. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  5. return function (array $context) {
  6.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  7. };

ErrorException

Warning: Undefined variable $ussphotoarr

  1.                     }
  2.                 }
  3.                 $rfpsavedidarr2[] = $rfp_reply_val2['rfp_id'];
  4.             endforeach; 
  5.         }
  6.         return array('veh_exist'=>$veh_exist,'vehicles_array' => $vehicles_array'selected_vehicles' => $selected_vehicles,'reg_exist'=>$reg_exist,'region_array' => $region_array'selected_regions' => $selected_regions,'focus_exist'=>$focus_exist,'focus_array' => $focus_array'selected_focus' => $selected_focus,'proc_exist'=>$proc_exist,'process_array' => $process_array'selected_process' => $selected_process,'liq_exist'=>$liq_exist,'liquid_array' => $liquid_array'selected_liquidities' => $selected_liquidities,'ussphotoarr' => $ussphotoarr,'rfp_question_results' => $rfp_question_results,'rfp_ques_exist_results' => $rfp_ques_exist_results,'user_id' => $user_id'firstname' => $firstname'lastname' => $lastname'profileview' => $profileview'role_results' => $role_results'countryname' => $countryname'bconn_count_results' => count($bconn_results), 'profileview' => $profileview"id" => $id'bconn_results' => $bconn_results'inv_results' => $inv_results'inv_results2' => $inv_results2'asset_results' => $asset_results'countrynamestr' => $countrynamestr'legaldomicilestr' => $legaldomicilestr'qualifystr' => $qualifystr'nonqualifystr' => $nonqualifystr'inception_format2' => $inception_format2'pagination' => $pagination'rfp_reply_results' => $rfp_reply_results'rfp_answer_results' => $rfp_answer_results'rfp_id_with_proposal' => $rfp_id_with_proposal'rfp_com_results' => $rfp_com_results'rfp_user_results' => $rfp_user_results'rfp_status_results' => $rfp_status_results'rfp_idss_with_proposal' => $rfp_idss_with_proposal'firstnamearr' => $firstnamearr'lastnamearr' => $lastnamearr,'firstnameidarr' => $firstnameidarr'inv_region2_arr' => $inv_region2_arr'statuscount' => $statuscount'prev' => $prev'next' => $next'marketvalue' => $marketvalue'person_image' => $person_image'languageknown' => $languageknown);
  7.     }
  8.     
  9.     // Function to populate invidual service profile information service tab 
  10.     // Author: pradeep dangwal
  11.     protected function servicePersonalIndividual($name,$connection,$users) {
ParentController->interestPersonalIndividual() in src/Controller/CompanyController.php (line 16444)
  1.                    return $this->render('Company/innertemplates/people.html.twig', ['baseurls'=>$basepurl,'company_name' => $company_name,'request_uri_pass'=>$request_uri,"verticalindus"=>$verticalindus,'boldChar' => $boldChar,'peopleidinmynet_res' => $peopleidinmynet_res,'loggedInUserId' => $userid,'peoplecompid' => $peoplecompid,'compadminid' => $compadminid,'peoplepos' => $peoplepos,'peoplecompanyrole_res' =>$peoplecompanyrole_res,'ownpeopletag' => $ownpeopletag,'description' => $company_name]);             
  2.         }elseif($profile == "Investment Interests"){  
  3.                $entitym $this->entityManager;
  4.                $pagin $this->paginator;
  5.                 if(strpos($request_uri_arr[1],".")!==false){  
  6.                     $share_info $this->interestPersonalIndividual($request_uri_arr[1],$connection,$users,$entitym,$pagin);
  7.                 }
  8.                 else if(isset($request_uri_arr[2]) && strpos($request_uri_arr[2],".")!==false){
  9.                   // changes for localhost /smartmoneymatchnew4                    
  10.                     $share_info $this->interestPersonalIndividual($request_uri_arr[2],$connection,$users,$entitym,$pagin);
  11.                 }
in vendor/symfony/http-kernel/HttpKernel.php -> profileTabsAction (line 181)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.             $subRequest->attributes->add($reference->attributes);
  2.         }
  3.         $level ob_get_level();
  4.         try {
  5.             return SubRequestHandler::handle($this->kernel$subRequestHttpKernelInterface::SUB_REQUESTfalse);
  6.         } catch (\Exception $e) {
  7.             // we dispatch the exception event to trigger the logging
  8.             // the response that comes back is ignored
  9.             if (isset($options['ignore_errors']) && $options['ignore_errors'] && $this->dispatcher) {
  10.                 $event = new ExceptionEvent($this->kernel$requestHttpKernelInterface::SUB_REQUEST$e);
  1.         if (!$request $this->requestStack->getCurrentRequest()) {
  2.             throw new \LogicException('Rendering a fragment can only be done when handling a Request.');
  3.         }
  4.         return $this->deliver($this->renderers[$renderer]->render($uri$request$options));
  5.     }
  6.     /**
  7.      * Delivers the Response as a string.
  8.      *
  1.         if (!isset($this->initialized[$renderer]) && $this->container->has($renderer)) {
  2.             $this->addRenderer($this->container->get($renderer));
  3.             $this->initialized[$renderer] = true;
  4.         }
  5.         return parent::render($uri$renderer$options);
  6.     }
  7. }
  1.     public function renderFragment(string|ControllerReference $uri, array $options = []): string
  2.     {
  3.         $strategy $options['strategy'] ?? 'inline';
  4.         unset($options['strategy']);
  5.         return $this->handler->render($uri$strategy$options);
  6.     }
  7.     /**
  8.      * Renders a fragment.
  9.      *
  1.         } elseif ((twig_get_attribute($this->env$this->source,         // line 350
  2. ($context["user_details"] ?? null), "tagline", [], "any"truetruefalse350) ||  !twig_test_empty((isset($context["user_details"]) || array_key_exists("user_details"$context) ? $context["user_details"] : (function () { throw new RuntimeError('Variable "user_details" does not exist.'350$this->source); })())))) {
  3.             echo 
  4. \t\t";
  5.             // line 351
  6.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\CompanyController::profileTabsAction", ["companyarticletag" => """userarticletag" => (isset($context["userarticletag"]) || array_key_exists("userarticletag"$context) ? $context["userarticletag"] : (function () { throw new RuntimeError('Variable "userarticletag" does not exist.'351$this->source); })()), "loggedInUserId" => (isset($context["loggedInUserId"]) || array_key_exists("loggedInUserId"$context) ? $context["loggedInUserId"] : (function () { throw new RuntimeError('Variable "loggedInUserId" does not exist.'351$this->source); })()), "company_name" => (isset($context["company_name"]) || array_key_exists("company_name"$context) ? $context["company_name"] : (function () { throw new RuntimeError('Variable "company_name" does not exist.'351$this->source); })()), "user_details" => (isset($context["user_details"]) || array_key_exists("user_details"$context) ? $context["user_details"] : (function () { throw new RuntimeError('Variable "user_details" does not exist.'351$this->source); })()), "profile" => (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'351$this->source); })()), "url_last_name" => (isset($context["url_last_name"]) || array_key_exists("url_last_name"$context) ? $context["url_last_name"] : (function () { throw new RuntimeError('Variable "url_last_name" does not exist.'351$this->source); })()), "tabType" => (isset($context["tabType"]) || array_key_exists("tabType"$context) ? $context["tabType"] : (function () { throw new RuntimeError('Variable "tabType" does not exist.'351$this->source); })()), "sidebars" => (isset($context["sidebars"]) || array_key_exists("sidebars"$context) ? $context["sidebars"] : (function () { throw new RuntimeError('Variable "sidebars" does not exist.'351$this->source); })())]));
  7.             echo "
  8.       ";
  9.         }
  10.         // line 353
  11.         echo "          ";
in vendor/twig/twig/src/Template.php -> block_body (line 171)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.      ";
  2.         // line 365
  3.         $this->displayBlock('header'$context$blocks);
  4.         // line 548
  5.         echo "        ";
  6.         $this->displayBlock('body'$context$blocks);
  7.         echo 
  8. <!-- wrapper content --> 
  9. ";
  10.         // line 550
  11.         $this->displayBlock('footer'$context$blocks);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Company/companyprofile.html.twig"));
  3.         $this->parent $this->loadTemplate("baserfp.html.twig""Company/companyprofile.html.twig"1);
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  7.         
  8.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
in vendor/twig/twig/src/Template.php -> display (line 379)
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.         $this->template $template;
  2.     }
  3.     public function render(array $context = []): string
  4.     {
  5.         return $this->template->render($context);
  6.     }
  7.     public function display(array $context = [])
  8.     {
  9.         // using func_get_args() allows to not expose the blocks argument
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = []): string
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.             if ($v instanceof FormInterface) {
  2.                 $parameters[$k] = $v->createView();
  3.             }
  4.         }
  5.         return $this->container->get('twig')->render($view$parameters);
  6.     }
  7.     /**
  8.      * Renders a view.
  9.      *
  1.      * If an invalid form is found in the list of parameters, a 422 status code is returned.
  2.      * Forms found in parameters are auto-cast to form views.
  3.      */
  4.     protected function render(string $view, array $parameters = [], ?Response $response null): Response
  5.     {
  6.         $content $this->renderView($view$parameters);
  7.         $response ??= new Response();
  8.         if (200 === $response->getStatusCode()) {
  9.             foreach ($parameters as $v) {
  10.                 if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
AbstractController->render() in src/Controller/OfferinvestmentController.php (line 4563)
  1.                       return $this->redirect($this->generateUrl('frontend_investors'));*/
  2.                       return new RedirectResponse($this->generateUrl('frontend_investors'), '301');
  3.         }
  4.         $breadcrumbData $this->getUserData($firstname$lastname);
  5.         if(null === $users){
  6.         return $this->render('Company/companyprofile.html.twig', ['defaultCompany' => $defaultCompany,'userarticletag' =>$userarticletag,'location' => $locations,'usereventtag' =>$usereventtag,'companyarticletag'=>$companyarticletag,'companyeventtag' => $companyeventtag,'userjobtag' =>$userjobtag,'companyjobtag' => $companyjobtag,'description' => ' Investment Interests page coming soon''country_of_domicile' => $breadcrumbData['country_of_domicile'], 'qualified_check' => $breadcrumbData['qualified_check'], 'contacts_results' => $breadcrumbData['contacts_results'], 'role_results' => $breadcrumbData['role_results'], 'lang_results' => $breadcrumbData['lang_results'], 'bconn_count_results' => $breadcrumbData['bconn_count_results'], 'countryname' => $breadcrumbData['countryname'], 'user_id' => $breadcrumbData['user_id'], 'firstname' => $breadcrumbData['firstname'], 'last_name' => $breadcrumbData['lastname'],'asset_class_results' => $breadcrumbData['asset_class_results'], 'country' => $breadcrumbData['country'], 'currency' => $breadcrumbData['currency'], 'usernames' => $breadcrumbData['usernames'], 'addedtonetwork' => $breadcrumbData['addedtonetwork'],'company_name' => $breadcrumbData['company_name'],  "url_last_name" => $breadcrumbData['url_last_name'],"user_details" => $breadcrumbData['user_details'],"loggedInUserId" => $breadcrumbData['loggedInUserId'],'id' => $breadcrumbData['id'],'profile' => "Investment Interests",'profile_view' => $breadcrumbData['profile_view'],'section_name' => $section_name]);
  7.         }else{
  8.          // Now fetch all the companies user is associated with
  9.             $statement $connection->prepare("SELECT distinct c.id,c.organization_logo FROM company c left join company_roles cr on c.id=cr.company_id where cr.user_id= :loggedinUser limit 0,3");
  10.             $statement->bindValue('loggedinUser'$users->getId());
  11.             $statement2 $statement->execute();
in vendor/symfony/http-kernel/HttpKernel.php -> offerIndividualProfileInvestmentPortfolio (line 181)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/usr/www/users/smartm/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. umask(0000);
  3. use App\Kernel;
  4. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  5. return function (array $context) {
  6.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  7. };

Stack Traces 2

[2/2] RuntimeError
Twig\Error\RuntimeError:
An exception has been thrown during the rendering of a template ("Warning: Undefined variable $ussphotoarr").

  at templates/Company/companyprofile.html.twig:351
  at Twig\Template->displayBlock()
     (var/cache/dev/twig/2b/2bff03775e9f219a288cb1eaa38a7230.php:180)
  at __TwigTemplate_e9b20df47f7b9744e081c6ef864bccf0->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (var/cache/dev/twig/09/09b2303c126a35887186f07015c7d17d.php:49)
  at __TwigTemplate_6b321ded97c02eab63acaa31a1fd830a->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:379)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:38)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:280)
  at Twig\Environment->render()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:243)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:254)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
     (src/Controller/OfferinvestmentController.php:4563)
  at App\Controller\OfferinvestmentController->offerIndividualProfileInvestmentPortfolio()
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/usr/www/users/smartm/vendor/autoload_runtime.php')
     (public/index.php:5)                
[1/2] ErrorException
ErrorException:
Warning: Undefined variable $ussphotoarr

  at src/Controller/ParentController.php:9452
  at App\Controller\ParentController->interestPersonalIndividual()
     (src/Controller/CompanyController.php:16444)
  at App\Controller\CompanyController->profileTabsAction()
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
     (vendor/symfony/http-kernel/Fragment/InlineFragmentRenderer.php:78)
  at Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer->render()
     (vendor/symfony/http-kernel/Fragment/FragmentHandler.php:83)
  at Symfony\Component\HttpKernel\Fragment\FragmentHandler->render()
     (vendor/symfony/http-kernel/DependencyInjection/LazyLoadingFragmentHandler.php:47)
  at Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler->render()
     (vendor/symfony/twig-bridge/Extension/HttpKernelRuntime.php:44)
  at Symfony\Bridge\Twig\Extension\HttpKernelRuntime->renderFragment()
     (var/cache/dev/twig/09/09b2303c126a35887186f07015c7d17d.php:1217)
  at __TwigTemplate_6b321ded97c02eab63acaa31a1fd830a->block_body()
     (vendor/twig/twig/src/Template.php:171)
  at Twig\Template->displayBlock()
     (var/cache/dev/twig/2b/2bff03775e9f219a288cb1eaa38a7230.php:180)
  at __TwigTemplate_e9b20df47f7b9744e081c6ef864bccf0->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (var/cache/dev/twig/09/09b2303c126a35887186f07015c7d17d.php:49)
  at __TwigTemplate_6b321ded97c02eab63acaa31a1fd830a->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:379)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:38)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:280)
  at Twig\Environment->render()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:243)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:254)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
     (src/Controller/OfferinvestmentController.php:4563)
  at App\Controller\OfferinvestmentController->offerIndividualProfileInvestmentPortfolio()
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/usr/www/users/smartm/vendor/autoload_runtime.php')
     (public/index.php:5)