Symfony Exception

InvalidParameterException RuntimeError

HTTP 500 Internal Server Error

An exception has been thrown during the rendering of a template ("Parameter "firstname" for route "frontend_offerIndividualProfile" must match "[A-Za-z.0-9- ]+" ("Marc%20C" given) to generate a corresponding URL.").

Exceptions 2

Twig\Error\ RuntimeError

Show exception properties
Twig\Error\RuntimeError {#724
  -lineno: 296
  -name: "Company/companyprofile.html.twig"
  -rawMessage: "An exception has been thrown during the rendering of a template ("Parameter "firstname" for route "frontend_offerIndividualProfile" must match "[A-Za-z.0-9- ]+" ("Marc%20C" given) to generate a corresponding URL.")."
  -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.                 <option value="{{ path('frontend_companyname_people', {'companyname':company_name}) }}" {% if profile is defined and profile == 'People' %} selected="selected" {% endif %}>People</option>
  2.                 <option value="{{ path('frontend_investorinterestpublicorg', {'compnamess':company_name}) }}" {% if profile is defined and profile == 'Investment Interests' %} selected="selected" {% endif %}>Investment Interests </option>
  3.                 <option value="{{ path('investor_interest_public_or', {'compnamess':company_name}) }}" {% if profile is defined and profile == 'Offered Investments' %} selected="selected" {% endif %}>Offered Investment</option>
  4.                 <option value="{{ path('frontend_companyname_services', {'companyname':company_name}) }}" {% if profile is defined and profile == 'Services' %} selected="selected" {% endif %}>Services</option>
  5.             {% else %}
  6.                 <option value="{{ path('frontend_offerIndividualProfile', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}" {% if profile is defined and profile == 'Profile' %} selected="selected" {% endif %}>Profile</option>  
  7.                 <option value="{{ path('frontend_publicnetwork', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}" {% if profile is defined and profile == 'Network' %} selected="selected" {% endif %}>Network</option>
  8.                 <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>
  9.                 <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>
  10.                 <option value="{{ path('frontend_offerIndividualProfileServices', {'firstname':firstname, 'dot':'.', 'lastname':url_last_name}) }}" {% if profile is defined and profile == 'Services' %} selected="selected" {% endif %}>Services</option>
  11.             {% endif %}
  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/InvestmentController.php (line 28071)
  1.             }
  2.             if(empty($userdetails_result)){
  3.              $user_details['tagline'] = "";
  4.             } 
  5.             if($user_idss=="") { $profile_view="public"; } else { $profile_view="own"; }
  6.             return $this->render('Company/companyprofile.html.twig',['defaultCompany' => $defaultCompany,'usernames' => $usernamee,'country_of_domicile' => $countrydom,'userarticletag' =>$userarticletag,'companyarticletag' => $companyarticletag,'usereventtag' =>$usereventtag,'companyeventtag' => $companyeventtag,'userjobtag' =>$userjobtag,'companyjobtag' => $companyjobtag,'location' => $locations,'empdeclinedstatus' => $empdeclinedstatus,'empconfirmedstatus' =>$empconfirmedstatus,'profile_view' => $profile_view,'user_id' => $user_id,'userjobtag' =>$userjobtag,'companyjobtag' => $companyjobtag,'usereventtag' =>$usereventtag,'companyeventtag' => $companyeventtag,'description' => $companyname.' People page coming soon''id' => $breadcrumbData['id'],'allcompanyuserAssoc' => $breadcrumbData['allcompanyuserAssoc'],"loggedInUserId" => $user_idss,'company_name' => $companyname,'profile' => 'Profile','comp_results' => $breadcrumbData['comp_results'],'user_details' =>$userdetails_result[0],'section_name' => $section_name,'url_last_name' => $url_last_name'last_name' => $url_last_name,'firstname' =>$firstname]);
  7.         }
  8.         else {
  9.         $companyarticletag "yes";
  10.         }  
  11.          $confirm_header "Do you want to unfollow?";
in vendor/symfony/http-kernel/HttpKernel.php -> companynamearticles (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. };

Symfony\Component\Routing\Exception\ InvalidParameterException

Parameter "firstname" for route "frontend_offerIndividualProfile" must match "[A-Za-z.0-9- ]+" ("Marc%20C" given) to generate a corresponding URL.

  1.                 if (!$optional || $important || !\array_key_exists($varName$defaults) || (null !== $mergedParams[$varName] && (string) $mergedParams[$varName] !== (string) $defaults[$varName])) {
  2.                     // check requirement (while ignoring look-around patterns)
  3.                     if (null !== $this->strictRequirements && !preg_match('#^'.preg_replace('/\(\?(?:=|<=|!|<!)((?:[^()\\\\]+|\\\\.|\((?1)\))*)\)/'''$token[2]).'$#i'.(empty($token[4]) ? '' 'u'), $mergedParams[$token[3]] ?? '')) {
  4.                         if ($this->strictRequirements) {
  5.                             throw new InvalidParameterException(strtr($message, ['{parameter}' => $varName'{route}' => $name'{expected}' => $token[2], '{given}' => $mergedParams[$varName]]));
  6.                         }
  7.                         $this->logger?->error($message, ['parameter' => $varName'route' => $name'expected' => $token[2], 'given' => $mergedParams[$varName]]);
  8.                         return '';
  1.             } elseif (!isset($parameters['_locale'])) {
  2.                 $parameters['_locale'] = $defaults['_locale'];
  3.             }
  4.         }
  5.         return $this->doGenerate($variables$defaults$requirements$tokens$parameters$name$referenceType$hostTokens$requiredSchemes);
  6.     }
  7. }
in vendor/symfony/routing/Router.php -> generate (line 221)
  1.         $this->configCacheFactory $configCacheFactory;
  2.     }
  3.     public function generate(string $name, array $parameters = [], int $referenceType self::ABSOLUTE_PATH): string
  4.     {
  5.         return $this->getGenerator()->generate($name$parameters$referenceType);
  6.     }
  7.     public function match(string $pathinfo): array
  8.     {
  9.         return $this->getMatcher()->match($pathinfo);
  1.         ];
  2.     }
  3.     public function getPath(string $name, array $parameters = [], bool $relative false): string
  4.     {
  5.         return $this->generator->generate($name$parameters$relative UrlGeneratorInterface::RELATIVE_PATH UrlGeneratorInterface::ABSOLUTE_PATH);
  6.     }
  7.     public function getUrl(string $name, array $parameters = [], bool $schemeRelative false): string
  8.     {
  9.         return $this->generator->generate($name$parameters$schemeRelative UrlGeneratorInterface::NETWORK_PATH UrlGeneratorInterface::ABSOLUTE_URL);
  1.             echo ">Services</option>
  2.             ";
  3.         } else {
  4.             // line 296
  5.             echo "                <option value=\"";
  6.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_offerIndividualProfile", ["firstname" => (isset($context["firstname"]) || array_key_exists("firstname"$context) ? $context["firstname"] : (function () { throw new RuntimeError('Variable "firstname" does not exist.'296$this->source); })()), "dot" => ".""lastname" => (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.'296$this->source); })())]), "html"nulltrue);
  7.             echo "\" ";
  8.             if ((array_key_exists("profile"$context) && ((isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'296$this->source); })()) == "Profile"))) {
  9.                 echo " selected=\"selected\" ";
  10.             }
  11.             echo ">Profile</option>  
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/InvestmentController.php (line 28071)
  1.             }
  2.             if(empty($userdetails_result)){
  3.              $user_details['tagline'] = "";
  4.             } 
  5.             if($user_idss=="") { $profile_view="public"; } else { $profile_view="own"; }
  6.             return $this->render('Company/companyprofile.html.twig',['defaultCompany' => $defaultCompany,'usernames' => $usernamee,'country_of_domicile' => $countrydom,'userarticletag' =>$userarticletag,'companyarticletag' => $companyarticletag,'usereventtag' =>$usereventtag,'companyeventtag' => $companyeventtag,'userjobtag' =>$userjobtag,'companyjobtag' => $companyjobtag,'location' => $locations,'empdeclinedstatus' => $empdeclinedstatus,'empconfirmedstatus' =>$empconfirmedstatus,'profile_view' => $profile_view,'user_id' => $user_id,'userjobtag' =>$userjobtag,'companyjobtag' => $companyjobtag,'usereventtag' =>$usereventtag,'companyeventtag' => $companyeventtag,'description' => $companyname.' People page coming soon''id' => $breadcrumbData['id'],'allcompanyuserAssoc' => $breadcrumbData['allcompanyuserAssoc'],"loggedInUserId" => $user_idss,'company_name' => $companyname,'profile' => 'Profile','comp_results' => $breadcrumbData['comp_results'],'user_details' =>$userdetails_result[0],'section_name' => $section_name,'url_last_name' => $url_last_name'last_name' => $url_last_name,'firstname' =>$firstname]);
  7.         }
  8.         else {
  9.         $companyarticletag "yes";
  10.         }  
  11.          $confirm_header "Do you want to unfollow?";
in vendor/symfony/http-kernel/HttpKernel.php -> companynamearticles (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 ("Parameter "firstname" for route "frontend_offerIndividualProfile" must match "[A-Za-z.0-9- ]+" ("Marc%20C" given) to generate a corresponding URL.").

  at templates/Company/companyprofile.html.twig:296
  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/InvestmentController.php:28071)
  at App\Controller\InvestmentController->companynamearticles()
     (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] InvalidParameterException
Symfony\Component\Routing\Exception\InvalidParameterException:
Parameter "firstname" for route "frontend_offerIndividualProfile" must match "[A-Za-z.0-9- ]+" ("Marc%20C" given) to generate a corresponding URL.

  at vendor/symfony/routing/Generator/UrlGenerator.php:182
  at Symfony\Component\Routing\Generator\UrlGenerator->doGenerate()
     (vendor/symfony/routing/Generator/CompiledUrlGenerator.php:67)
  at Symfony\Component\Routing\Generator\CompiledUrlGenerator->generate()
     (vendor/symfony/routing/Router.php:221)
  at Symfony\Component\Routing\Router->generate()
     (vendor/symfony/twig-bridge/Extension/RoutingExtension.php:45)
  at Symfony\Bridge\Twig\Extension\RoutingExtension->getPath()
     (var/cache/dev/twig/09/09b2303c126a35887186f07015c7d17d.php:1003)
  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/InvestmentController.php:28071)
  at App\Controller\InvestmentController->companynamearticles()
     (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)