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 {{comp_results[0]['company_name']}}\n {% elseif (profile == 'Profile' and usereventtag=='' and userjobtag=='' and companyeventtag=='yes' and companyjobtag=='') %}\n Upcoming Events of {{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 {{comp_results[0]['company_name']}}\n {% elseif profile=="Investment Interests" %}\n Investment Interests of {{comp_results[0]['company_name']}}\n {% elseif profile=='Services' %}\n Offered Investment Services of {{comp_results[0]['company_name']}}\n {% elseif profile=='Articles' %}\n {{comp_results[0]['company_name']}} Articles\n {% else %}\n {{comp_results[0]['company_name']}} - {{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 {{firstname}} {{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 {{firstname}} {{url_last_name22}}\n {% else %}\n {% if profile=="Offered Investments" %}\n Offered Investments of {{firstname}} {{url_last_name22}}\n {% elseif profile=="Investment Interests" %}\n Investment Interests of {{firstname}} {{url_last_name22}}\n {% elseif profile=='Services' %}\n Offered Investment Services of {{firstname}} {{url_last_name22}}\n {% else %}\n {{firstname}} {{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 """ }
{% set tabType = '' %}
{%endif%}
{% if(company_details.description is defined)%}
{{ 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})) }}
{% elseif((user_details.tagline is defined) or (user_details is not empty)) %}
{{ 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})) }}
{% endif %}
{% if companyjobtag!="" %}
{{ render(controller('App\\Controller\\JobController::searchbytagAction', {'inherit': 1,'company':company_name})) }}
{% elseif userjobtag!="" %}
{{ render(controller('App\\Controller\\JobController::searchbytagAction', {'inherit': 1,'company':company_name})) }}
";
// line 365
$this->displayBlock('header', $context, $blocks);
// line 548
echo " ";
$this->displayBlock('body', $context, $blocks);
echo "
<!-- wrapper content -->
";
// line 550
$this->displayBlock('footer', $context, $blocks);
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Company/companyprofile.html.twig"));
$this->parent = $this->loadTemplate("baserfp.html.twig", "Company/companyprofile.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
$this->template = $template;
}
public function render(array $context = []): string
{
return $this->template->render($context);
}
public function display(array $context = [])
{
// using func_get_args() allows to not expose the blocks argument
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = []): string
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
if ($v instanceof FormInterface) {
$parameters[$k] = $v->createView();
}
}
return $this->container->get('twig')->render($view, $parameters);
}
/**
* Renders a view.
*
* If an invalid form is found in the list of parameters, a 422 status code is returned.
* Forms found in parameters are auto-cast to form views.
*/
protected function render(string $view, array $parameters = [], ?Response $response = null): Response
{
$content = $this->renderView($view, $parameters);
$response ??= new Response();
if (200 === $response->getStatusCode()) {
foreach ($parameters as $v) {
if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
return $this->redirect($this->generateUrl('frontend_investors'));*/
return new RedirectResponse($this->generateUrl('frontend_investors'), '301');
}
$breadcrumbData = $this->getUserData($firstname, $lastname);
if(null === $users){
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]);
}else{
// Now fetch all the companies user is associated with
$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");
$statement->bindValue('loggedinUser', $users->getId());
$statement2 = $statement->execute();
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
$response = null;
try {
return $response = $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
) {
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
if (Kernel::VERSION_ID >= 60400) {
$response->send(false);
if (\function_exists('fastcgi_finish_request') && !$this->debug) {
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
umask(0000);
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
}
}
$rfpsavedidarr2[] = $rfp_reply_val2['rfp_id'];
endforeach;
}
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);
}
// Function to populate invidual service profile information service tab
// Author: pradeep dangwal
protected function servicePersonalIndividual($name,$connection,$users) {
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]);
}elseif($profile == "Investment Interests"){
$entitym = $this->entityManager;
$pagin = $this->paginator;
if(strpos($request_uri_arr[1],".")!==false){
$share_info = $this->interestPersonalIndividual($request_uri_arr[1],$connection,$users,$entitym,$pagin);
}
else if(isset($request_uri_arr[2]) && strpos($request_uri_arr[2],".")!==false){
// changes for localhost /smartmoneymatchnew4
$share_info = $this->interestPersonalIndividual($request_uri_arr[2],$connection,$users,$entitym,$pagin);
}
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
$response = null;
try {
return $response = $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
if (!IpUtils::checkIp('127.0.0.1', $trustedProxies)) {
Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
}
try {
return $kernel->handle($request, $type, $catch);
} finally {
// restore global state
Request::setTrustedProxies($trustedProxies, $trustedHeaderSet);
}
}
$subRequest->attributes->add($reference->attributes);
}
$level = ob_get_level();
try {
return SubRequestHandler::handle($this->kernel, $subRequest, HttpKernelInterface::SUB_REQUEST, false);
} catch (\Exception $e) {
// we dispatch the exception event to trigger the logging
// the response that comes back is ignored
if (isset($options['ignore_errors']) && $options['ignore_errors'] && $this->dispatcher) {
$event = new ExceptionEvent($this->kernel, $request, HttpKernelInterface::SUB_REQUEST, $e);
if (!$request = $this->requestStack->getCurrentRequest()) {
throw new \LogicException('Rendering a fragment can only be done when handling a Request.');
}
return $this->deliver($this->renderers[$renderer]->render($uri, $request, $options));
}
/**
* Delivers the Response as a string.
*
if (!isset($this->initialized[$renderer]) && $this->container->has($renderer)) {
$this->addRenderer($this->container->get($renderer));
$this->initialized[$renderer] = true;
}
return parent::render($uri, $renderer, $options);
}
}
public function renderFragment(string|ControllerReference $uri, array $options = []): string
{
$strategy = $options['strategy'] ?? 'inline';
unset($options['strategy']);
return $this->handler->render($uri, $strategy, $options);
}
/**
* Renders a fragment.
*
} elseif ((twig_get_attribute($this->env, $this->source, // line 350
($context["user_details"] ?? null), "tagline", [], "any", true, true, false, 350) || !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); })())))) {
echo "
\t\t";
// line 351
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); })())]));
echo "
";
}
// line 353
echo " ";
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
";
// line 365
$this->displayBlock('header', $context, $blocks);
// line 548
echo " ";
$this->displayBlock('body', $context, $blocks);
echo "
<!-- wrapper content -->
";
// line 550
$this->displayBlock('footer', $context, $blocks);
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Company/companyprofile.html.twig"));
$this->parent = $this->loadTemplate("baserfp.html.twig", "Company/companyprofile.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
$this->template = $template;
}
public function render(array $context = []): string
{
return $this->template->render($context);
}
public function display(array $context = [])
{
// using func_get_args() allows to not expose the blocks argument
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = []): string
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
if ($v instanceof FormInterface) {
$parameters[$k] = $v->createView();
}
}
return $this->container->get('twig')->render($view, $parameters);
}
/**
* Renders a view.
*
* If an invalid form is found in the list of parameters, a 422 status code is returned.
* Forms found in parameters are auto-cast to form views.
*/
protected function render(string $view, array $parameters = [], ?Response $response = null): Response
{
$content = $this->renderView($view, $parameters);
$response ??= new Response();
if (200 === $response->getStatusCode()) {
foreach ($parameters as $v) {
if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
return $this->redirect($this->generateUrl('frontend_investors'));*/
return new RedirectResponse($this->generateUrl('frontend_investors'), '301');
}
$breadcrumbData = $this->getUserData($firstname, $lastname);
if(null === $users){
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]);
}else{
// Now fetch all the companies user is associated with
$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");
$statement->bindValue('loggedinUser', $users->getId());
$statement2 = $statement->execute();
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
$response = null;
try {
return $response = $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
) {
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
if (Kernel::VERSION_ID >= 60400) {
$response->send(false);
if (\function_exists('fastcgi_finish_request') && !$this->debug) {
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
umask(0000);
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
[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) |