Page 1 of 1

XAMPP can't see directory?

PostPosted: 06. March 2011 19:46
by Xee
Hi all. Got a bit of a problem.

I keep a local copy of my phpBB3 forum on my desktop (using XAMPP) in order to test out mods/upgrades before publishing them online. Up until now it has worked flawlessly. However, I recently installed Joomla, a content management system, along with a module called JFusion (in Joomla) that allows all my board members to use their logins in Joomla as well. This worked without any problems. However, after I updated the copy of my forum on my desktop, I now get the following message any time I try to log in:

Code: Select all
[phpBB Debug] PHP Notice: in file /includes/auth/auth_jfusion.php on line 140: require_once(/home/bears7/public_html/joomla/includes/defines.php) [function.require-once]: failed to open stream: No such file or directory

Fatal error: require_once() [function.require]: Failed opening required '/home/bears7/public_html/joomla\includes\defines.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\phpbb\includes\auth\auth_jfusion.php on line 140


Just for reference, here is the code from line 140:

Code: Select all
global $phpbb_root_path;

I imagine it has to do with the fact that XAMPP can't find the "joomla" directory despite the fact I copied it onto my desktop. However I don't know what changes to make to make the directory visible. Anyone have any ideas?

Re: XAMPP can't see directory?

PostPosted: 08. March 2011 09:12
by Xee
Anyone have any ideas? Or can someone at least give me some hints/suggestions on what I should try to research?

Re: XAMPP can't see directory?

PostPosted: 08. March 2011 09:36
by Sharley
require_once(/home/bears7/public_html/joomla/includes/defines.php) [function.require-once]: failed to open stream: No such file or directory
Definitely not a path that exists in your XAMPP installation which means that the paths on your hosted Joomla installation will not be the same paths as those for your XAMPP installation and they will give errors as you only copied from your host to your PC without changing the relevant paths.

So there is no way that Apache or indeed Joomla that is now on your PC could change the paths themselves, so you will have to find the configuration in Joomla that needs to be changed.

The same thing would occur if you installed Joomla first on your PC and then simply copied it to your hosting service without changing the relevant paths to those of your host.

Simply put, your hosting will have Linux paths like I see in your error message and your XAMPP has Windows style paths with drive letters and back slashes etc. like below.

Check out the C:\xampp\apache\logs\error.log file for more detailed clues about server errors.


Also the Joomla forum may have more to say on this issue as it must crop up quite often, so there may be some help there from users with experience and perhaps a simple solution for changing the paths.

Re: XAMPP can't see directory?

PostPosted: 09. March 2011 01:54
by Xee
Thanks for the reply.

Rather than spend any more time trying to figure out the issue, I just uninstalled Jfusion from my live forum and then copied the files to my desktop. Works without a hitch now. When I'll have more time I'll play around with it. Thanks again.