Results 1 to 7 of 7

Thread: Rename Tabs causes fatal error

  1. #1
    mclemmens is offline Junior Member
    Join Date
    Dec 2007
    Posts
    3

    Default Rename Tabs causes fatal error

    When attempting to rename tabs (under Admin) I get an error that says

    Parse error: syntax error, unexpected $end in .......SugarCE-Full-5.0.0RC/custom/include/language/en_us.lang.php on line 1

    When I surf to custom/include/language/en_us.lang.php on line 1 the file is only

    <?php

    And that's it. 5 bytes of data. Naturally, this causes everything to crash. (The entire site goes down until that file is deleted. )

    I'm going to make a few assumptions about what I think is going on here. I think that the Rename Tabs function (part of the studio module) has a little wizard that's creating the en_us.lang.php file. It crashes halfway through and doesn't completely finish making the file because something goes wrong in the script and it chokes.

    I believe what's wrong has something to do with three tabs that are listed of modules that were built in the module builder but uninstalled. For some reason, they're still alive as far as the rename tabs utility is concerned. (A bug I suspect) I wonder if they're hunting for info on those custom labels and then they choke out.

    Any ideas?

    Thanks!

  2. #2
    franklin_sugar is offline Sugar Team Member
    Join Date
    Jun 2006
    Posts
    157

    Default Re: Rename Tabs causes fatal error

    Hi mclemmens,

    I couldn't reproduce this problem on both CE and Ent RC builds in Windows/MySQL environment. I tested the following two use cases.

    1) Rename a built-in tab
    2) Create and deploy a new module, rename the tab, uninstall the module

    Both cases worked for me without crashes.

    Can you share your environment? OS, database, and PHP version? Also, can you give the detailed steps to reproduce this problem?

    Thanks,
    Franklin

  3. #3
    srose is offline Junior Member
    Join Date
    Dec 2007
    Posts
    1

    Default Re: Rename Tabs causes fatal error

    Quote Originally Posted by franklin_sugar
    Hi mclemmens,

    I couldn't reproduce this problem on both CE and Ent RC builds in Windows/MySQL environment. I tested the following two use cases.

    1) Rename a built-in tab
    2) Create and deploy a new module, rename the tab, uninstall the module

    Both cases worked for me without crashes.

    Can you share your environment? OS, database, and PHP version? Also, can you give the detailed steps to reproduce this problem?

    Thanks,
    Franklin
    I am having exact same issue, on Debian server (media temple), PHP 5, MySQL 4.1.7 renaming tabs has caused exact same error.

    Just thought I'd report it, in case it helps to solve. I wonder if this issue could be due to server running out of memory for MySQL "container"? I need to test on other servers...

  4. #4
    moonvn is offline Junior Member
    Join Date
    Dec 2007
    Posts
    4

    Default Re: Rename Tabs causes fatal error

    Quote Originally Posted by mclemmens
    When attempting to rename tabs (under Admin) I get an error that says

    Parse error: syntax error, unexpected $end in .......SugarCE-Full-5.0.0RC/custom/include/language/en_us.lang.php on line 1

    When I surf to custom/include/language/en_us.lang.php on line 1 the file is only

    <?php

    And that's it. 5 bytes of data. Naturally, this causes everything to crash. (The entire site goes down until that file is deleted. )

    I'm going to make a few assumptions about what I think is going on here. I think that the Rename Tabs function (part of the studio module) has a little wizard that's creating the en_us.lang.php file. It crashes halfway through and doesn't completely finish making the file because something goes wrong in the script and it chokes.

    I believe what's wrong has something to do with three tabs that are listed of modules that were built in the module builder but uninstalled. For some reason, they're still alive as far as the rename tabs utility is concerned. (A bug I suspect) I wonder if they're hunting for info on those custom labels and then they choke out.

    Any ideas?

    Thanks!

    Hi,

    I got exactly the same error. Neither I can delete that file. My site is down. Please help !

  5. #5
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Rename Tabs causes fatal error

    Close the opening php-brackets by adding a line with "?>"

    So your file should look like

    <?php
    ?>

    or delete the file.

    Both will help.

    hk

  6. #6
    moonvn is offline Junior Member
    Join Date
    Dec 2007
    Posts
    4

    Default Re: Rename Tabs causes fatal error

    Quote Originally Posted by kuske
    Close the opening php-brackets by adding a line with "?>"

    So your file should look like

    <?php
    ?>

    or delete the file.

    Both will help.

    hk
    I edit the file with closing php-brackets. It helps. I can access my site now. Thank you kuske !

  7. #7
    swichman is offline Junior Member
    Join Date
    Jul 2009
    Posts
    1

    Default Re: Rename Tabs causes fatal error

    Hi all. FYI: I was also looking through/evaluating a sandbox version of SugarCRM 5.2.0. I also went in to rename a tab and I got the same error. Just wanted to post an update here indicating it hasn't been fixed. If someone can tell me what file creates this custom php script, then I can look into it because it seems to be a handy feature. STEVE

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2008-02-22, 04:25 PM
  2. Replies: 5
    Last Post: 2007-11-13, 02:51 PM
  3. Replies: 10
    Last Post: 2007-09-20, 03:51 AM
  4. Replies: 0
    Last Post: 2007-08-08, 02:47 PM

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
  •