Results 1 to 2 of 2

Thread: PHP Fatal error: require_once()

  1. #1
    NewUser is offline Junior Member
    Join Date
    Oct 2006
    Posts
    2

    Default PHP Fatal error: require_once()

    Hi all,

    I am a new user of sugarcrm.working on windows,using SugarCRM 4.5 with php 5.1.0 and Apache 2.0.59.

    I want to write a new method in modules/Leads/LeadFormBase.php...

    to start with, i have created one 'modules/Leads/saveLead.php '...and from that file i am calling the method in LeadFormBase.php

    firstly i got a fatal error when i tried following line in my 'modules/Leads/saveLead.php ' file...

    require_once('modules/Leads/LeadFormBase.php');.....but i got error which said that no such file/directory exists...

    hence i changed it to simply require_once('LeadFormBase.php') since both these files were at same directory level...and it worked.

    But noe when I go to 'LeadFormBase.php' and write -- require_once('Lead.php'); I am again getting fatal error as

    PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'data/SugarBean.php' (include_path='.;C:\\php5\\pear') in D:\\Apache\\Apache2\\htdocs\\SugarSuite-Full-4.5.0\\modules\\Leads\\Lead.php on line 34

    and i can't feagure out why is it not finding the required files??

    can plz anybody help me out??

  2. #2
    NewUser is offline Junior Member
    Join Date
    Oct 2006
    Posts
    2

    Default Re: PHP Fatal error: require_once()

    Hey, nobody to help me? I have been trying to sort out this problem for last one and half day....but without any success...time is running out for me...

    so plz if anybody has an answer for this..you are most welcome...

Thread Information

Users Browsing this Thread

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

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
  •