Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Getting rid of blank tab

  1. #1
    crazybeardedman is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    14

    Default Getting rid of blank tab

    O.k., I have run out of ideas. If this has actually been answered elsewhere, just point me in the right direction.

    I upgraded from 4.5.1g to 5b. Everything went great (well, some minor things I will have to address in another post).

    However, apparently someone had tried to install sugartime in the 4 installation and then uninstall. The uninstall was only partially successful, and left a blank tab along with all the other tabs at the top of the page. If you click on the tab, an error results:

    "Warning: require_once(modules/sugartime/Forms.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/sugar/themes/WhiteSands/header.php on line 417"


    I want to get rid of the tab. However, the bigger mystery is where sugar is getting the idea that sugartime is even there. I have done a grep on every single file in the sugar directory as well as searched every field in the database and there is absolutely no "sugartime" to be found. EXCEPT, in the cache/jsLanguage directory. There is a sugartime directory there with the en_us.js file. If I delete this directory it gets recreated. So "sugartime" is around somewhere. But where? Has the sugarcrm team resorted to witchcraft as part of the development process? I don't think so, but any hints would be great!


    Yours,
    Brian


    p.s., Running on Ubuntu with Apache2 and PHP 5.2.3 installed.

  2. #2
    crazybeardedman is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    14

    Default Re: Getting rid of blank tab

    I went back and installed a version of 4.51g and installed the relevant modules. I installed sugartime to see if I could get the tab to disappear when I uninstalled it. Turns out that sugartime just doesn't want to uninstall correctly. The tab stays and I get a bunch of errors generated by require.

    First, if I try to view the uninstall log I get this:

    Warning: fopen(custom/modules/Contacts/Ext/Layoutdefs//layoutdefs.ext.php) [function.fopen]: failed to open stream: Permission denied in /var/www/sugar/ModuleInstall/ModuleInstaller.php on line 939

    Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/sugar/ModuleInstall/ModuleInstaller.php on line 940

    Warning: fclose(): supplied argument is not a valid stream resource in /var/www/sugar/ModuleInstall/ModuleInstaller.php on line 941

    Module Uninstall Successful


    Then if I click on the sugar time tab (that never went away, I get:


    Warning: include(modules/sugartime/language/en_us.lang.php) [function.include]: failed to open stream: No such file or directory in /var/www/sugar/include/utils.php on line 851

    Warning: include() [function.include]: Failed opening 'modules/sugartime/language/en_us.lang.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/sugar/include/utils.php on line 851

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/sugar/include/utils.php:851) in /var/www/sugar/include/utils.php on line 2083

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/sugar/include/utils.php:851) in /var/www/sugar/index.php on line 607

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/sugar/include/utils.php:851) in /var/www/sugar/index.php on line 612

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/sugar/include/utils.php:851) in /var/www/sugar/index.php on line 617

    Warning: require_once(modules/sugartime/Forms.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/sugar/themes/SugarClassic/header.php on line 383

    Fatal error: require_once() [function.require]: Failed opening required 'modules/sugartime/Forms.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/sugar/themes/SugarClassic/header.php on line 383


    Brian

  3. #3
    crazybeardedman is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    14

    Default Re: Getting rid of blank tab

    One further note: In the v4 installation I could just hide the tab. That would work. But in the v5 installation, the tab is empty and therefore doesn't show it in the Configure Tab screen.

  4. #4
    djg
    djg is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    42

    Lightbulb Re: Getting rid of blank tab

    Look carefully in the configure tabs list, and you may see some whitespace in the active tabs list. Try dragging it to the inactive list. This worked for me when I encountered the "blank tab".

    hope this helps,

    d.

  5. #5
    crazybeardedman is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    14

    Default Re: Getting rid of blank tab

    Hey DJG,

    Thanks for the suggestion. As strange as it may seem, there is no blank in the Configure Tabs screen. I even drag another tab over from the Hide Tabs column and save so that I now have TAB TAB BLANK TAB at the top of the screen. But no blank in between the tabs on the Configure Tabs screen. Strange, eh?


    What I don't get is how I can search for sugartime and not find anything, but if I mouse over the blank tab I see a link:

    [hostname]/sugar/index.php?module=sugartime&action=index

    How is that "sugartime" getting there? Its not in the db. I did a search in all tables and in all fields. And except for the language file that keeps getting recreated, its not in any file in the sugar directory.

    I wish I understood the module making process better from a programmatic point of view. I wish I had the time!

    b--

  6. #6
    crazybeardedman is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    14

    Default Re: Getting rid of blank tab

    Am I to assume that no one knows how to solve this?

    Either that, or no one else ever has this problem.


    Hello....?

  7. #7
    chad.hutchins is offline Sugar Community Member
    Join Date
    May 2007
    Location
    Texas
    Posts
    141

    Default Re: Getting rid of blank tab

    We are having the same problem. Everything you have described above is what is happening to our SugarCRM instance.

    Any other thoughts on this? from anyone?

  8. #8
    anna is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    USA
    Posts
    81

    Default Re: Getting rid of blank tab

    I am not familiar with version 5, but I had sth similar going on in 4.5:

    Go to config table in your DB. Look for category=MySettings, name=tab. Grab the contents, base64decode them and see if there is reference to the missing module. I think I just ended up deleting this entry (or just the contents??) completely and it was recreated again - but I don't remember exactly, so proceed with caution

  9. #9
    stevenjohn is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    53

    Default Re: Getting rid of blank tab

    Hi there,

    I'm dealing with the blank tab problem - I believe it came from when I first started developing our system and at one point i stupidly did some manual deleting of module files...

    Checking the html code for the tab I can see:

    <a class="otherTabLink" href="index.php?module=BOARD_BoardConfig&action=in dex"></A></td>

    So I searched the dbase for any refs to 'BoardConfig' and 'BOARD_BoardConfig', also I grep'd for the pattern too. I found a few references and have deleted them all, have cleared the caches.

    BUT the tab is still there.

    And really strange is that if I look in the code i can see this link to 'BOARD_BoardConfig' which now cant be grep'd from files or found in the dbase...!??

    Anyone got any ideas where its coming from or how to kill this blank tab??

    Thanks, Steve

  10. #10
    anna is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    USA
    Posts
    81

    Default Re: Getting rid of blank tab

    Note that some things are stored base64encoded in the DB - so you will not be able to find them with a regular search. See my post above ...
    Check if there is a reference to this module after you decode the contents.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Removing Activities Tab at the Top
    By rps1984 in forum Help
    Replies: 12
    Last Post: 2008-04-10, 10:24 AM
  2. Replies: 14
    Last Post: 2007-05-29, 11:09 PM
  3. Blank Tab Fix for Module Builder 4.5.1 - Found!
    By emillion in forum Developer Help
    Replies: 2
    Last Post: 2007-03-28, 12:02 PM
  4. Replies: 2
    Last Post: 2007-02-03, 12:05 AM
  5. Checkboxes under Home Tab
    By Adamcin in forum Help
    Replies: 0
    Last Post: 2005-11-16, 12:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •