Mambo/PhpShop file path issue

11 public posts in this discussion.

Post 1

Hey Guys,

Requiring some assistance here if any of you are at all familiar with the above

issue im having is the following within a php site built around mambo and phpshop:

Warning: require_once(/var/www/html/ntwriters/administrator/components/com_phpshop/languages/english.php) [function.require-once]: failed to open stream: No such file or directory in /www/htdocs/ntwriters/components/com_phpshop/phpshop_parser.php on line 40

Fatal error: require_once() [function.require]: Failed opening required '/var/www/html/ntwriters/administrator/components/com_phpshop/languages/english.php' (include_path='.:/usr/local/lib/php') in /www/htdocs/ntwriters/components/com_phpshop/phpshop_parser.php on line 40

Ive spent the whole day scouring the net for a solution but thats turned up nothing so far - ive checked and made sure that php isnt in safe mode, ive run through all of the various files within this site made sure they are correct and tried various other methods of referencing the file but to no avail.And before you ask all files are exactly where they should be AFAIK its all in good order and has been working prior to this but i have no idea as to what changed between now and then cos none of the guys i work with (Aegis) have made any changes to it or the server either.

Would greatly appreciatre the help if any of you have experienced problems similiar to mine.

- Chips

Post 2

permissions?

Post 3

he's checked permissions.. seems to have - - RWXRWX .. just reconfirming

Post 4

does he have shell access?

try

prompt # file /var/www/html/ntwriters/administrator/components/com_phpshop/languages/english.php

also, does the require_once statement actually have that full path name? it should be using relative path names right? web server shouldn't be able to access, or even be aware of files outside the www directory

Post 5

Already tried changing the path to relative etc... makes absolutely no difference whatsoever

and all files concerned here have full access permissions as in rwxrwxrwx

Post 6

no hidden unprintable characters in the filename? did you try that file command i had in the last post?

Post 7

Curious that you have two base web directories, for one website. Those being...

/var/www/html
and
/www/htdocs/

Are you sure this is how things are meant to be setup? I dare say
/var/www/html/ntwriters/administrator/components/com_phpshop/languages/english.php
is actually located at
/www/htdocs/ntwriters/administrator/components/com_phpshop/languages/english.php

Post 8

tried the command you said from various levels within the site structure - but it comes up with the message "No such file or directory"

and Neo:

Already tried directing it to both url's but it made no difference either

- chips

Post 9

if the file command says no such file or directory, then the file isn't at that path, try it step by step to find out where it breaks.

cd /
cd var
cd www
cd html
cd ntwriters
cd administrator
cd components
cd com_phpshop
cd languages
ls -l english*

Post 10

Thanks paladin,

will give that a try and let you know how i go.

chips

Post 11

Woot well pretty sure its all fixed now - traced the paths like you said,

and discovered var/www/html was empty

but had to go into the php shop config file and change all of the paths back not just the adminpath to get it working.

cheers guys.