Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Blank Website


KiddlyWinks

Recommended Posts

I was reading a topic where it informs you of all the usual questions and lists all the solutions for you.

 

Following these instructions I changed my header title and date format on the homepage and now when I try to view my website it is 'blank' as in completely 'blank' not a single word or picture!!!

 

Can anyone shed some insight on how this could have happened and how I can fix it??

 

Thanks

 

Sarah

 

 

p.s. I'm really, really new to oscommerce so still finding my feet. I made the changes in Tools, File Manager, Includes, Languages, English. Really hope this was the right place to do it!! :blush:

Link to comment
Share on other sites

Is it just your home page that is blank or are the other ones blank too?

 

p.s. Please don't cross post. It is against forum rules and is bothersome to those trying to help others.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Is it just your home page that is blank or are the other ones blank too?

 

p.s. Please don't cross post. It is against forum rules and is bothersome to those trying to help others.

 

Jack

 

They are all blank, bit worrying!!

 

Sorry about the crosspost wasn't thinking...

Link to comment
Share on other sites

I was reading a topic where it informs you of all the usual questions and lists all the solutions for you.

 

Following these instructions I changed my header title and date format on the homepage and now when I try to view my website it is 'blank' as in completely 'blank' not a single word or picture!!!

 

Can anyone shed some insight on how this could have happened and how I can fix it??

 

Thanks

 

Sarah

p.s. I'm really, really new to oscommerce so still finding my feet. I made the changes in Tools, File Manager, Includes, Languages, English. Really hope this was the right place to do it!! :blush:

 

Never use "file mangler" it is notorious for killing files.

 

Get yourself a good file editor .. like conTEXT(free google it) or there are loads more that are recommended for php editing.

 

Did you keep backups of your files .. if so replace the backups and try again with a decent editor. If you don't have a backup then you should .. and take it a s a lesson for the future.

Link to comment
Share on other sites

The website is www.kiddly-winks.com and god I wish I had made a backup first!!!!

 

Ok Sarah, so no backups.

 

Which files did you change and how modified is the shop?

Link to comment
Share on other sites

Ok Sarah, so no backups.

 

Which files did you change and how modified is the shop?

 

One good thing is that I had only just downloaded the shop and this was my first attempt to modify it. I went into includes, languages, english and changed the date format and header title and that was it.

Link to comment
Share on other sites

As an aside this is my little scheme for file backups.

 

If I EVER download a file from the server (we'll call it myfile.php) with a view to editing I do the following: -

 

1) download the file and rename it locally as myfile.php.BAK

2) download the file again but this time don't rename it.

3) Work on the NOT renamed file and when you reupload upload the myfile.php AND the myfile.php.BAK

 

This way if you ever make a mistake you can delete the myfile.php from the server rename the myfile.php.BAK on the server to myfile.php and you are back where you started with a working file.

 

If you ever come across the situation that you already have a .BAK file on the server then rename it myfile.BAK.BAK before the initial download to edit.

 

Hope that helps for the future and makes a little sense.

Link to comment
Share on other sites

One good thing is that I had only just downloaded the shop and this was my first attempt to modify it. I went into includes, languages, english and changed the date format and header title and that was it.

 

Fine just replace that file with the fresh file from the download and you will be fine to start again. Just follow either my or another backup process that you never don't do.

Link to comment
Share on other sites

If you go to her page and look at the view source option it's blank. I think she deleted her entire index.php file.

 

josh

 

No that doesn't mean she deleted index.php

Link to comment
Share on other sites

I ment she deleted the code inside the index.php file. The file is still there but there is nothing in the file. IDK though... Just a guess.

 

josh

 

I just checked the index.php file and this is what it contains at the moment.

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess">This is a default setup of the osCommerce project...</span>\');</nobr><br><br>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<br><br><nobr>define(\'TEXT_MAIN\', \'\');</nobr><br><br>More information concerning the PHP define() function can be read <a href="http://www.php.net/define" target="_blank"><u>here</u></a>.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>Securing The Administration Tool</b><br><br>It is important to secure the Administration Tool as there is currently no security implementation available.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</td><td class="main" valign="top"><b>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://www.oscommerce.info" target="_blank"><u>osCommerce Knowledge Base</u></a> site.<br><br>Community support is available at the <a href="http://www.oscommerce.com/forums" target="_blank"><u>osCommerce Community Support Forums</u></a> site.</td></tr></table><br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a>. This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Link to comment
Share on other sites

:lol: Yes, yes, yes - you guys are great!!!!

 

Uploaded the original index.php file and it still didn't work and then I realised that I had also been fiddling inside the english.php file and uploaded the original one of this too and dah dah!!! It's back.

 

Have put post it's everywhere must make a back up and download before making any changes!!!!!

 

Thank you, thank you, thank you!!!

 

Sarah

xx

Link to comment
Share on other sites

:lol: Yes, yes, yes - you guys are great!!!!

 

Uploaded the original index.php file and it still didn't work and then I realised that I had also been fiddling inside the english.php file and uploaded the original one of this too and dah dah!!! It's back.

 

Have put post it's everywhere must make a back up and download before making any changes!!!!!

 

Thank you, thank you, thank you!!!

 

Sarah

xx

I am pleased it is back.

 

looking at your name I assume your site will be a kids toy site. If so i my have a osc pre-set template that all you will need to do is change the logo and the general admin info.

 

PM me for details and I will send you a page pic of what the site will look like.

Link to comment
Share on other sites

  • 4 weeks later...

Hello,

 

I have a site that used to work fine on my old linux box, but when I moved it over (fresh install) to my new box I get blank pages when I try to check out.

 

So far it's the only page that seems to be causing an issue, but I have not gotten past that to see if there are more.

 

Im amazed that there are not more solutions for this issue, as I cant be the only one.

 

Any thoughts on how to address this?

Link to comment
Share on other sites

A blank page is usually due to the file that belongs in the english directory being uploaded to the root. But if your site was working and stopped working after a server move, assuming it was done correctly, then it might be that a file was corrupted in the move. You should identfy the failing file and upload it again.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...