callenords Posted November 5, 2009 Posted November 5, 2009 Hi! I want to add a few extra pages to my oscommerce store. It works fine when I put the new pages in the root folder, but when I put the new pages in a sub sub folder I get an error message: Warning: require(DIR_WS_LANGUAGES/FILENAME_ABC) [function.require]: failed to open stream: No such file or directory in /home/claki/public_html/subfolder/testfolder/abc.php on line 14 What could be the problem? Is something wrong with this code (line 14) in my page subfolder/testfolder/abc.php?: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABC); Thanks!
web-project Posted November 5, 2009 Posted November 5, 2009 you need to define the FILENAME_ABC in filenames.php file which is located in /includes folder. Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
callenords Posted November 5, 2009 Author Posted November 5, 2009 I have defined the file in FILENAME_ABC in filenames.php. Since it works when I have the page in root folder but not when I have the page in a sub, subfolder I guess it might something wrong with the the link to language file in my page subfolder/testfolder/abc.php: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABC); I tried to write '../../' but didn't help. :blink:
germ Posted November 6, 2009 Posted November 6, 2009 I have defined the file in FILENAME_ABC in filenames.php. Since it works when I have the page in root folder but not when I have the page in a sub, subfolder I guess it might something wrong with the the link to language file in my page subfolder/testfolder/abc.php: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABC); I tried to write '../../' but didn't help. :blink: You might find something to help here If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.