Results 1 to 7 of 7

Thread: Custom hello world module

  1. #1
    barkamlesh is offline Senior Member
    Join Date
    Oct 2010
    Posts
    20

    Default Custom hello world module

    Hi All

    i just have created custom hello world module. but getting some error and not able to install.

    here is my code please check it out my attachments.
    Attached Files Attached Files

  2. #2
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Custom hello world module

    Could you please describe what kind of error you get?

    I'll have a look at your source files. Here the first one:

    \SugarModules\language\application\app_strings.php
    => contains duplicate entry "$app_list_strings['moduleList']['hw_helloworld'] = 'HelloWorld';"
    => no end tag "?>"
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  3. #3
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Custom hello world module

    SugarModules\modules\hw_helloworld\metadata\dashle tviewdefs.php
    => no end tag "?>"
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  4. #4
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Custom hello world module

    another missing end tag "?>" in manifest.php (but this is just the same in modules created with module builder).
    The missing tags are not the cause of this problems.

    I've tried to import the zip-file into my 6.0.1 CE installation (both: barkamleshs version and another with added tags) [@barkamlesh: which sugar version do you use?]. The reaction is always the same: I get a white page (only the header remains) and the logfile contains the following messages:

    11/04/10 10:13:30 [2824][1][FATAL] HTTP Error: no data present after HTTP headers
    11/04/10 10:13:30 [2824][1][FATAL] HTTP/1.1 100 Continue

    HTTP/1.1 500 Internal Server Error
    Server: nginx
    Date: Thu, 04 Nov 2010 09:13:30 GMT
    Content-Type: text/html
    Connection: keep-alive
    Set-Cookie: PHPSESSID=ub91gcpj2cuao820j4e0hitl05; path=/
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    X-Application-Server: 10.13.10.128
    Content-Length: 0


    11/04/10 10:13:32 [2824][1][FATAL] HTTP Error: no data present after HTTP headers
    11/04/10 10:13:32 [2824][1][FATAL] HTTP/1.1 100 Continue

    HTTP/1.1 500 Internal Server Error
    Server: nginx
    Date: Thu, 04 Nov 2010 09:13:32 GMT
    Content-Type: text/html
    Connection: keep-alive
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    X-Application-Server: 10.13.10.128
    Content-Length: 0


    11/04/10 10:13:33 [2824][1][FATAL] HTTP Error: no data present after HTTP headers
    11/04/10 10:13:33 [2824][1][FATAL] HTTP/1.1 500 Internal Server Error
    Server: nginx
    Date: Thu, 04 Nov 2010 09:13:33 GMT
    Content-Type: text/html
    Connection: keep-alive
    Set-Cookie: PHPSESSID=; path=/
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    X-Application-Server: 10.13.10.128
    Content-Length: 0
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  5. #5
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Custom hello world module

    OK, it works now (upload and installation without problems, menu is visible). I can't say if it works as it should. Attached you find a small screen shot of what it looks like in my installation. The second attachment is the module including my fixes.

    I did the following changes additional to the mentioned in the other posts:

    1) rename app_string.php to en_us.lang.php (alternatively change line 33 in manifest.php)
    2) manifest.php: line 33 needs ',' at the end
    3) hw_helloworld_sugar.php needs additional line before defining the class hw_helloworld_sugar:
    require_once('include/SugarObjects/templates/basic/Basic.php');
    Attached Images Attached Images  
    Attached Files Attached Files
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  6. #6
    barkamlesh is offline Senior Member
    Join Date
    Oct 2010
    Posts
    20

    Default Re: Custom hello world module

    Quote Originally Posted by sts View Post
    OK, it works now (upload and installation without problems, menu is visible). I can't say if it works as it should. Attached you find a small screen shot of what it looks like in my installation. The second attachment is the module including my fixes.

    I did the following changes additional to the mentioned in the other posts:

    1) rename app_string.php to en_us.lang.php (alternatively change line 33 in manifest.php)
    2) manifest.php: line 33 needs ',' at the end
    3) hw_helloworld_sugar.php needs additional line before defining the class hw_helloworld_sugar:
    require_once('include/SugarObjects/templates/basic/Basic.php');
    Hi Sts

    Thanks for your reply.

    Well i didn't get time to look at the codes. as we have holiday because of DIWALI.

    HAPPY DIWALI AND HAPPY NEW YEAR TO YOU AND YOUR FAMILY.

    once again thanks for your response. i will have a look at code today.

    Thanks and regards

    kamlesh bar

  7. #7
    barkamlesh is offline Senior Member
    Join Date
    Oct 2010
    Posts
    20

    Default Re: Custom hello world module

    hi Stefan

    it's working fine.. thanks a lot.

    it's just for testing i have created. not for any special purpose.

    thanks and regards
    Kamlesh Bar

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Simple module to print out "Hello World"
    By behzad in forum Developer Help
    Replies: 4
    Last Post: 2011-07-13, 10:11 AM
  2. New to CRM world
    By onlinerandy in forum Help
    Replies: 2
    Last Post: 2008-10-03, 06:29 PM
  3. Linux world at SFO
    By sankar in forum General Discussion
    Replies: 1
    Last Post: 2006-07-24, 10:37 PM
  4. Replies: 7
    Last Post: 2005-11-24, 02:37 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
  •