<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>After login error &amp;quot;Cannot declare class SessionStorage because the name is already in use&amp;quot;</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/7580/after-login-error-cannot-declare-class-sessionstorage-because-the-name-is-already-in-use</link><description>Hi team, 
 I just installed an existing SugarCRM version 12.0.4 instance on my local and I got this error after login. 
 Any solution regarding this error?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: After login error "Cannot declare class SessionStorage because the name is already in use"</title><link>https://sugarclub.sugarcrm.com/thread/31712?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 03:44:55 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:a86b4c78-351a-4aa7-82d4-df2ca05bf226</guid><dc:creator>Wan Amirudin</dc:creator><description>&lt;p&gt;I have tried to clear the&amp;nbsp;&lt;span&gt;cache folder, remove all custom/modules/*/Ext and custom/application/Ext and change file permission but it seems error still there.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have also tried to check for class duplication by running&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;grep -r &amp;#39;class SessionStorage&amp;#39;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and this what I get&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;src/Session/SessionStorage.php:class SessionStorage extends TrackableArray implements SessionStorageInterface&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;seems like there is no duplication.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After login error "Cannot declare class SessionStorage because the name is already in use"</title><link>https://sugarclub.sugarcrm.com/thread/31711?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 02:07:33 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:b1ebab78-eb0f-423b-83ca-36e6221fa2c4</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;Did you do a &lt;a href="https://support.sugarcrm.com/knowledge_base/platform_management/required_file_system_permissions_on_linux/"&gt;change file permissions&lt;/a&gt; and a QRR after your upgrade?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I do them every time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If&amp;nbsp;&lt;a href="/members/alexandremoulin8448"&gt;Alexandre Moulin&lt;/a&gt;&amp;nbsp;&amp;#39;s suggestion is not enough try this:&lt;/p&gt;
&lt;p&gt;Go to your sugar root directory and do a grep for that class:&lt;/p&gt;
&lt;p class="p1"&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;grep -r &amp;#39;class SessionStorage&amp;#39;&lt;/pre&gt;&lt;/p&gt;
&lt;p class="p1"&gt;See what you get back.&lt;/p&gt;
&lt;p class="p1"&gt;I get:&lt;/p&gt;
&lt;p class="p1"&gt;&lt;pre class="ui-code" data-mode="text"&gt;src/Session/SessionStorage.php:class SessionStorage extends TrackableArray implements SessionStorageInterface&lt;/pre&gt;&lt;/p&gt;
&lt;p class="p1"&gt;and a bunch of files in upgrades/backup/... but those don&amp;#39;t matter, they are the same file from older versions.&lt;/p&gt;
&lt;p class="p1"&gt;if you get more than one declaration of the class then you&amp;#39;ve found your problem.&lt;/p&gt;
&lt;p class="p1"&gt;--&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span&gt;I&amp;#39;ve never had to empty custom/modules/*/Ext and&amp;nbsp;&lt;/span&gt;&lt;span&gt;custom/application/Ext unless I have a syntax error in one of the custom/Extension/.../Ext/... files (the QRR will not fix it)&amp;nbsp; then I just remove (or fix the syntax error) in the culprit to get me through the QRR which will rebuild it....&amp;nbsp;&lt;span class="emoticon" data-url="https://sugarclub.sugarcrm.com/cfs-file/__key/system/emoji/1f914.svg" title="Thinking"&gt;&amp;#x1f914;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span&gt;FrancescaS&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After login error "Cannot declare class SessionStorage because the name is already in use"</title><link>https://sugarclub.sugarcrm.com/thread/31703?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 09:31:51 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:6a441ec6-7c7b-49bd-a238-721cbfdb3bfd</guid><dc:creator>Alexandre Moulin</dc:creator><description>&lt;p&gt;empty cache folder and remove all custom/modules/*/Ext and custom/application/Ext and check file rights it shall fix it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>