{"id":20383,"date":"2024-02-16T15:58:33","date_gmt":"2024-02-16T14:58:33","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-portal\/knowledge-base\/faq\/what-to-do-if-you-cant-connect-only-on-firefox-and-chrome\/"},"modified":"2024-02-16T15:58:33","modified_gmt":"2024-02-16T14:58:33","slug":"what-to-do-if-you-cant-connect-only-on-firefox-and-chrome","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-portal\/knowledge-base\/faq\/what-to-do-if-you-cant-connect-only-on-firefox-and-chrome\/","title":{"rendered":"What to do if you can&#8217;t connect only on firefox and chrome"},"content":{"rendered":"<div id=\"main-content\" class=\"wiki-content group\">\n<h3 id=\"Proc\u00e9dure\u00e0appliquersilaconnexionestimpossibleuniquementsurfirefoxetchrome-\"><strong><br \/>\n<\/strong><\/h3>\n<h3 id=\"Proc\u00e9dure\u00e0appliquersilaconnexionestimpossibleuniquementsurfirefoxetchrome-Sympt\u00f4mesconnus:\"><strong>Known symptoms:<\/strong><\/h3>\n<ul>\n<li>After an update, the client cannot connect to browsers (Firefox and Chrome), it is redirected directly to the login page.<\/li>\n<li>However, it is possible to connect via IE or EDGE.<\/li>\n<\/ul>\n<p>To resolve this issue, please follow these steps:<\/p>\n<h3 id=\"Proc\u00e9dure\u00e0appliquersilaconnexionestimpossibleuniquementsurfirefoxetchrome-Premi\u00e8re\u00e9tape\"><strong>Step One<\/strong><\/h3>\n<p>Navigate to the sfWebController.class.php file under the following directory: <em>openbeeportallibvendorsymfony1.5libcontroller<\/em><\/p>\n<h3 id=\"Proc\u00e9dure\u00e0appliquersilaconnexionestimpossibleuniquementsurfirefoxetchrome-Deuxi\u00e8me\u00e9tape\"><strong>Step Two<br \/>\n<\/strong><\/h3>\n<ul style=\"list-style-type: square;\">\n<li>Open the file with Notepad++<\/li>\n<li>Go to Redirect() function<\/li>\n<li>Change the code below on line 199:<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"confluence-embedded-image\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/03\/273355894.png\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/03\/273355894.png\"><\/p>\n<p>with the following code:&nbsp;<\/p>\n<pre><span style=\"color: rgb(0,0,128);\">if<\/span><span>((<\/span><span style=\"color: rgb(102,0,0);\">$statusCode <\/span><span>&gt;= <\/span><span style=\"color: rgb(0,0,255);\">300 <\/span><span>&amp;&amp; <\/span><span style=\"color: rgb(102,0,0);\">$statusCode <\/span><span>&lt; <\/span><span style=\"color: rgb(0,0,255);\">400<\/span><span>)){\n<\/span><span>&nbsp;<\/span><span style=\"color: rgb(128,128,128);\">\/\/ OBP-7063 ajouter les cookies dans la navigateur avec php natif\n<\/span><span style=\"color: rgb(128,128,128);\">&nbsp;<\/span><span style=\"color: rgb(0,0,128);\">foreach <\/span><span>(<\/span><span style=\"color: rgb(102,0,0);\">$response<\/span><span>-&gt;getCookies() <\/span><span style=\"color: rgb(0,0,128);\">as <\/span><span style=\"color: rgb(102,0,0);\">$cookie<\/span><span>){\n<\/span><span>&nbsp;<\/span><span>setcookie<\/span><span>(<\/span><span style=\"color: rgb(102,0,0);\">$cookie<\/span><span>[<\/span><span style=\"color: rgb(0,128,0);\">'name'<\/span><span>], <\/span><span style=\"color: rgb(102,0,0);\">$cookie<\/span><span>[<\/span><span style=\"color: rgb(0,128,0);\">'value'<\/span><span>], <\/span><span style=\"color: rgb(102,0,0);\">$cookie<\/span><span>[<\/span><span style=\"color: rgb(0,128,0);\">'expire'<\/span><span>]);\n<\/span><span> }\n<\/span><span>&nbsp;<\/span><span>header<\/span><span>(<\/span><span style=\"color: rgb(0,128,0);\">'Location: '<\/span><span>.<\/span><span style=\"color: rgb(102,0,0);\">$url<\/span><span>);\n<\/span><span>&nbsp;<\/span><span style=\"color: rgb(0,0,128);\">exit<\/span><span>();\n<\/span><span>}\n<\/span><span style=\"color: rgb(128,128,128);\">\/\/ The Location header should only be used for status codes 201 and 3..\n<\/span><span style=\"color: rgb(128,128,128);\">\/\/ For other code, only the refresh meta tag is used\n<\/span><span style=\"color: rgb(0,0,128);\">if <\/span><span>(<\/span><span style=\"color: rgb(102,0,0);\">$statusCode <\/span><span>== <\/span><span style=\"color: rgb(0,0,255);\">201<\/span><span>)\n<\/span><span>{\n<\/span><span>&nbsp;<\/span><span style=\"color: rgb(102,0,0);\">$response<\/span><span>-&gt;setHttpHeader(<\/span><span style=\"color: rgb(0,128,0);\">'Location'<\/span><span>, <\/span><span style=\"color: rgb(102,0,0);\">$url<\/span><span>);\n<\/span><span>}<\/span><\/pre>\n<p>Then<strong> Save <\/strong>your changes to the file.<\/p>\n<h3 id=\"Proc\u00e9dure\u00e0appliquersilaconnexionestimpossibleuniquementsurfirefoxetchrome-Troisi\u00e8me\u00e9tape\"><strong>Step Three<\/strong><strong>&nbsp;<\/strong><\/h3>\n<p>Check that you have&nbsp;<u><strong>CLEAR CACHE&nbsp;<\/strong><\/u><\/p>\n<p>Refresh the Portal page in the browser and log in.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Known symptoms: After an update, the client cannot connect to browsers (Firefox and Chrome), it is redirected directly to the login page. However, it is possible to connect via IE or EDGE. To resolve this issue, please follow these steps: Step One Navigate to the sfWebController.class.php file under the following directory: openbeeportallibvendorsymfony1.5libcontroller Step Two Open [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":20164,"menu_order":15,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-20383","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/comments?post=20383"}],"version-history":[{"count":0,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20383\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20164"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=20383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}