Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Nov 2006
    Location
    Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macintosh Upgrade to PHP 5.2 problem

    I have just upgraded my Mac OS server to PHP 5.2 and my vbulletin 3.6.4 forum now has this error...

    PHP Code:
    Warning: require_once(./global.php) [function.require-once]: failed to open streamNo such file or directory in /Volumes/SOHOraid/forum/index.php on line 55

    Fatal error
    : require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/local/php5/lib/php'in /Volumes/SOHOraid/forum/index.php on line 55 
    I have been trying many place to solve this error including vbulletin website without success, hoping someone her might know something.

  • #2
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    It's not really a php5.2 error.
    Make sure that the file: /Volumes/SOHOraid/forum/global.php exists.
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.

  • #3
    New to the CF scene
    Join Date
    Nov 2006
    Location
    Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by marek_mar View Post
    It's not really a php5.2 error.
    Make sure that the file: /Volumes/SOHOraid/forum/global.php exists.
    It actually does exist.

  • #4
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,151
    Thanks
    2
    Thanked 335 Times in 327 Posts
    Either there is a permissions problem that is preventing PHP from being able to read the file (less likely) or the include_path syntax is not valid for your operating system (more likely.) Since I don't know anything about your operating system, I cannot advise you on the second possibility, but try changing the slashes - / to \ and the separator - : to ; I have also seen posts where a trailing slash is needed on the path setting.

    Searching the Internet turns up many people and several live web sites experiencing the same problem.

    Do you have access to your previous php.ini for comparison purposes?
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #5
    New to the CF scene
    Join Date
    Nov 2006
    Location
    Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by CFMaBiSmAd View Post
    Either there is a permissions problem that is preventing PHP from being able to read the file (less likely) or the include_path syntax is not valid for your operating system (more likely.) Since I don't know anything about your operating system, I cannot advise you on the second possibility, but try changing the slashes - / to \ and the separator - : to ; I have also seen posts where a trailing slash is needed on the path setting.

    Searching the Internet turns up many people and several live web sites experiencing the same problem.

    Do you have access to your previous php.ini for comparison purposes?
    Thanks I will give that a try, my previous PHP 4 php.ini file worked fine, but I have since removed it.

  • #6
    New to the CF scene
    Join Date
    Nov 2006
    Location
    Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No luck with changing the slashes.

  • #7
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,108
    Thanks
    11
    Thanked 101 Times in 99 Posts
    At the head of the script try (before the require)
    PHP Code:
    <?php
    ini_set
    ('include_path',ini_get('include_path').':/Volumes/SOHOraid/forum');
    ?>
    .. thats not the solution as such but if it works it might point us in the right direction.. I also doubt its a PHP5 issue rather something else on the server (apache or filesystem config)


    PS `.:/` is valid for *nix \; is for win32
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


  •  

    Posting Permissions

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