majika Posted November 10, 2007 Posted November 10, 2007 Hello, I am customizing my version of OSC by adding a couple of pages here and there (Not that it needs much help - its a great bit of scripting) Anyway, This page I want to create I want it to be in the following directory Virtual Directory: "/catalogue/pages/electronic_privacy.php" ----- Absolute Directory with disguised URL (For Security) "/home/name/public_html/catalogue/pages/electronic_privacy.php" ------- "SSL" Web URL (In Browser) address looks like this: "https://www.domain.com/catalogue/pages/electronic_privacy.php" "Non-SSL" Web URL (In Browser) address looks like this: "http://www.domain.com/catalogue/pages/electronic_privacy.php" Now I have created a blank sort of framework page for my website which I use to create new pages as required but it seems that it is only possible for me to save them in the root folder of the catalogue (eShop) Now this is all fine and well but when you start customizing your ionstallation of OSC you need a certain level of structure and organization to your pages and code etc. Agreed? So can someone please help me find out why I am unable to save my pages to a one-layer deep directory on my site ? Oop's nearly forgot the error's that get spat out by the browser, here they are when I try to view the desired page: Warning: require(includes/configure.php) [function.require]: failed to open stream: No such file or directory in /home/name/public_html/catalogue/includes/application_top.php on line 29 Fatal error: require() [function.require]: Failed opening required 'includes/configure.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/name/public_html/catalogue/includes/application_top.php on line 29[ /code] Once looked at the application top call to line 29 as the source of the error it reveles that infact my configure.pgp is the problem somewhere but dont know where or how to fix it ? [code] /home/name/public_html/catalogue/includes/application_top.php on line 29 equals the error below: // include server parameters require('includes/configure.php'); --------- My Thought's - Could it be something to to with the document relative syntax of the php includes / required pages that are being used in the above mentioned framework skeleton that I haven't adapted to make it viewable in a directory that is different to what that page was designed originally for ?page <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Many, Many Thanks in advance, Majika :)
Gauravs Posted November 10, 2007 Posted November 10, 2007 Not sure what exactly is the problem you face, but default OSC is indeed designed to work in same frame-work that you are trying to create? What happens when you try to save pages, are you getting a permission error? Really not much info from your post for me to understand (my fault ... I get lost in complex situations...) However just to give you an example, there is shipping.php in root and also in /catalog/includes/languages/english/shipping.php doing exactly the same thing that you are trying to achieve. I have added extra pages on sites using same framework, and get no problems, so please elaborate what issue do you face, how are you trying to save / upload file, what are the folder permissions etc to understand your post. Thx Best Regards,Gaurav
majika Posted November 10, 2007 Author Posted November 10, 2007 Not sure what exactly is the problem you face, but default OSC is indeed designed to work in same frame-work that you are trying to create? What happens when you try to save pages, are you getting a permission error? Really not much info from your post for me to understand (my fault ... I get lost in complex situations...) However just to give you an example, there is shipping.php in root and also in /catalog/includes/languages/english/shipping.php doing exactly the same thing that you are trying to achieve. I have added extra pages on sites using same framework, and get no problems, so please elaborate what issue do you face, how are you trying to save / upload file, what are the folder permissions etc to understand your post. Thx Well I am doing all of my work from within DW CS3 And do a little uploading via FlashFXP their permissions are all ok i believe. An to answer you question as to what I am trying to do is simple... I have opened up one of my own OSC Page from my templated website and ripped the guts out of the page as to leave just the bare-bones to the page (Navigation, Body styling, structure and thats about it) Now based on this "NEW" template i am using to create new pages based off of that initial page which has worked only for pages that are saved in the root folder. If I try to save the page into a deeper directory it will not have it. Errors appear. I have successfully tested this page in the root directory also to see if its a coding issue caused by my editing but it is not. As I can quite easily view and use the page in the root folder but as soon as I move it to ../shop/pages/ error pop up (See fistst post for exact errors - in application top)
majika Posted November 10, 2007 Author Posted November 10, 2007 Sorry, I forgot to mention that the error that point to: Warning: require(includes/configure.php) [function.require]: failed to open stream: No such file or directory in /home/name/public_html/catalogue/includes/application_top.php on line 29 Fatal error: require() [function.require]: Failed opening required 'includes/configure.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/name/public_html/catalogue/includes/application_top.php on line 29 when I examined that error it took me to the line that defined the configure.php so maybe I need to define an extra directory or manipulate an existing directory to accomodate the new saved page's location (Somehow ) ?
♥geoffreywalton Posted November 11, 2007 Posted November 11, 2007 Page 29 of the documentation explains how to add or remove boxes. But I suspect the problem is in the require statement not pointing to the php file require( DIR_WS_BOXES . 'categories.php'); require( DIR_WS_BOXES . 'pages/electronic_privacy.php'); Should give you something to work on. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.