hsmom13 Posted December 18, 2007 Posted December 18, 2007 I did a fresh install of OSC and all was working fine. I was searching the data base to find out how to edit the welcome page, and pulled up the files referenced (includes/languages/english.php and index.php) from File manage to look at the source code. Since I could not find the code string that was referenced, I didn't make any changes--just hit Save to close the file. Now, the index page just shows the HTML code. What can I do to fix this?
phour19 Posted December 18, 2007 Posted December 18, 2007 First I have seen in the forums people saying not to use the file manager to upload files. Use a good FTP program like WSFTP http://www.ipswitch.com Second the index file is located at includes/languages/english/index.php I would reload the index file from the fresh OSC and see if that fixes the HTML problem ? Hope that helps. Tim How to secure your site. A must read
hsmom13 Posted December 18, 2007 Author Posted December 18, 2007 First I have seen in the forums people saying not to use the file manager to upload files. Use a good FTP program like WSFTP http://www.ipswitch.com Second the index file is located at includes/languages/english/index.php I would reload the index file from the fresh OSC and see if that fixes the HTML problem ? Hope that helps. Tim Thanks, Tim. I tried this and still get the same. There must be something higher up in the tree that got changed. Any ideas on what else controls the presentation?
digipete Posted December 18, 2007 Posted December 18, 2007 Can you post a URL? This makes it much easier on us. :-) Pete
jonquil Posted December 18, 2007 Posted December 18, 2007 http:// ...schooler.info/shoppingcart/index.php shows Page Not Found. Are you sure you have uploaded a fresh index.php to the /shoppingcart/ directory? It's all just ones and zeros....
hsmom13 Posted December 19, 2007 Author Posted December 19, 2007 Can you post a URL? This makes it much easier on us. :-)Pete Sure. I thought about that after I hit submit: www.modernhomeschooler.info/store
hsmom13 Posted December 19, 2007 Author Posted December 19, 2007 http:// ...schooler.info/shoppingcart/index.php shows Page Not Found. Are you sure you have uploaded a fresh index.php to the /shoppingcart/ directory? I changed the name of the new upload to store, instead of shopping cart. I had saved the fresh install to the pc and took that file and uploaded into the website. Is there a list somewhere of what functions each folder has? We have loaded in a lot of data today, and deleted lots of the default images, and I don't want to lose that work if I need to reload some of the other files. Mostly we have added things under Manufacturers and Categories. TIA hsmom13
jonquil Posted December 19, 2007 Posted December 19, 2007 Ouch! Little pixies have been messing around with your index.php :( What are you using for a Text Editor? It's all just ones and zeros....
hsmom13 Posted December 20, 2007 Author Posted December 20, 2007 Ouch! Little pixies have been messing around with your index.php :( What are you using for a Text Editor? I used my FTP client to look at the source code (at work I used filezilla) and opened it in notepad. I may have also opened it in Wordpad, which seems easier to read. I think I also tried to look at Edit from the File Manager. (My host is StartLogic if that makes a difference.) ( I keep reading things on this forum, and not everyone says the same thing.) When you say index.php, can you tell me which index? I have found one in several places--includes/languages/english/index.php and a couple of other places--don't have all the path with me. BTW--a friend told me today that using Mozilla to work with this type of editng is not a good thing. That is what I used at work when the bad stuff happened. TIA hsmom13
hsmom13 Posted December 25, 2007 Author Posted December 25, 2007 I used my FTP client to look at the source code (at work I used filezilla) and opened it in notepad. I may have also opened it in Wordpad, which seems easier to read. I think I also tried to look at Edit from the File Manager. (My host is StartLogic if that makes a difference.) ( I keep reading things on this forum, and not everyone says the same thing.) When you say index.php, can you tell me which index? I have found one in several places--includes/languages/english/index.php and a couple of other places--don't have all the path with me. BTW--a friend told me today that using Mozilla to work with this type of editng is not a good thing. That is what I used at work when the bad stuff happened. TIA hsmom13 Thanks for the answers I have gotten. I still don't know what to do with my index page. Any ideas out there, Please? TIA hsmom13
♥FWR Media Posted December 25, 2007 Posted December 25, 2007 Thanks for the answers I have gotten. I still don't know what to do with my index page. Any ideas out there, Please? TIA hsmom13 Replace the file catalog/index.php with a fresh one from the downloaded package .. The error was here .. <?php } elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) { // create column list $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW); Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
jonquil Posted December 26, 2007 Posted December 26, 2007 I used my FTP client to look at the source code (at work I used filezilla) and opened it in notepad. I may have also opened it in Wordpad, which seems easier to read. I think I also tried to look at Edit from the File Manager. (My host is StartLogic if that makes a difference.) ( I keep reading things on this forum, and not everyone says the same thing.) When you say index.php, can you tell me which index? I have found one in several places--includes/languages/english/index.php and a couple of other places--don't have all the path with me. BTW--a friend told me today that using Mozilla to work with this type of editng is not a good thing. That is what I used at work when the bad stuff happened. TIA hsmom13 I took a peek and it looks like you did upload a fresh store/index.php. Good for you :) I know everyone says something different (has different preferences) about Text editors. Like Strawberry vs. Chocolate really. At the end of the day, you should understand the difference among programs that are designed for a specific file-editing purpose. Some programs are better than others; some offer you the option of working directly in code or WYZIWYG (what you see is what you get), others can handle file types now that they couldn't years ago: Non-inclusive Basics Web Pages = HTML Editor (list) Formatted Text & Graphics = Word Processor or Layout program (list) Text Files (no formatting) = Text Editor (list) Images = Image Editor (list) Column/Row Calculations = Spreadsheet Editor (list) In any case, to preserve your sanity, you should edit PHP files in a Text Editor, which means you'll need to get curious about PHP code structure, and the structure of osC files and why they are in certain folders. Some files, as you noticed, are named the same (index.php, for starters). The information (defines) in store/includes/languages/english/index.php is vital to store/index.php; in other words, they are inextricably 'connected.' Anyway, more than you wanted to know this fine day post Christmas and a LOT of pie :) jon It's all just ones and zeros....
Recommended Posts
Archived
This topic is now archived and is closed to further replies.