Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't access my administration at all. Can't find my backup, or files! HELP!


LAngel

Recommended Posts

I was attempting to install DISCOUNT CODES and got to this part (below) and I did what it said. When I came back to my administration page to do the next step, the whole page was white except for some things on the left: CONFIGURATION, CATALOG, MODULES,LOCATIONS/TAXES, LOCALIZATION. Missing that whole category that had the backup files, and the files, and who's online, and stuff. ANYTHING I click on has the same result..WHITE SCREEN.

 

I'm having a meltdown. Someone PLEASE help me.

 

This is what I did...........

 

 

 

OPEN admin/includes/boxes/reports.php

 

FIND on line 26:

 

'<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a>');

 

 

REPLACE with this code:

 

//kgt - discount coupons report

'<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_STATS_DISCOUNT_COUPONS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_DISCOUNT_COUPONS . '</a>');

/*************

'<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a>'); *************/

//end kgt - discount coupons report

Link to comment
Share on other sites

I don't need to have DISCOUNT CODES. All I want is my old files and administration board back. This is the worst day EVER!

 

Try replacing ALL of the code in reports.php with ..

 

<?php
/*
 $Id: reports.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- reports //-->
         <tr>
           <td>
<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_REPORTS,
                    'link'  => tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'selected_box=reports'));

 if ($selected_box == 'reports') {
   $contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_VIEWED . '</a><br>' .
                                  '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_PURCHASED . '</a><br>' .
                                  '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a><br>' .
                                  '<a href="' . tep_href_link(FILENAME_STATS_DISCOUNT_COUPONS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_DISCOUNT_COUPONS . '</a>');
 }

 $box = new box;
 echo $box->menuBox($heading, $contents);
?>
           </td>
         </tr>
<!-- reports_eof //-->

Link to comment
Share on other sites

Where do I do this??? When I go on my administration page, it's completely white and anything I click on, leaves me with a blank white page. Do you know how to restore the backup from a website and not from the administration page?

Link to comment
Share on other sites

Where do I do this??? When I go on my administration page, it's completely white and anything I click on, leaves me with a blank white page. Do you know how to restore the backup from a website and not from the administration page?

 

Oh I see.

 

DO NOT use the file manager or the language defines to change files, they do not work, create issues and are also security risks (delete them).

 

You need a good ftp program .. like filezilla(free).

 

Download the file in question to your local pc and edit it in a quality free PHP editor (notepad++ is popular).

 

re-upload the file and you are done.

 

Hope that helps.

Link to comment
Share on other sites

I really appreciate your help. Unfortunately, I am a computer idiot and shouldn't have been messing with the files in the first place. I don't understand what php is and I don't understand what Filezilla is. I just want to restore what I backed up. I can find the backup in my file on my main website web deck. Should I contact my webhost and ask them how to restore the program for Oscommerce? I am so confused right now. I don't even know how to "turn off" my store while I can't access anything. If anyone orders anything, I'm in a world of trouble because I can't see what they ordered.

Link to comment
Share on other sites

I really appreciate your help. Unfortunately, I am a computer idiot and shouldn't have been messing with the files in the first place. I don't understand what php is and I don't understand what Filezilla is. I just want to restore what I backed up. I can find the backup in my file on my main website web deck. Should I contact my webhost and ask them how to restore the program for Oscommerce? I am so confused right now. I don't even know how to "turn off" my store while I can't access anything. If anyone orders anything, I'm in a world of trouble because I can't see what they ordered.

Most of the time when you get a web site they also give you a link to a place where you can login and manage (upload, download, edit, delete, etc.) files.

 

This is called cPanel (short for 'Control Panel').

 

Check for this.

 

Somewhere in there is a 'File Manager' that is a safe and reliable way to edit files.

 

Although FTP access as Robert suggested would be better (for backup purposes).

 

And when you get things ironed out start this hablt:

 

MAKE A BACKUP OF A FILE BEFORE YOU EDIT IT.

 

This one simple thing can save you hours (if not days) of grief.

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 >

Link to comment
Share on other sites

Thank you! I'm on Startlogic, and I have a V-Deck. I've gone into there and changed the file that caused all of this mess back to the way that it was and hit "SAVE." I did actually save a backup of the file I changed...just in case I screwed up somewhere along the line. After I hit "save", it is altered on my v-deck files, but my OsCommerce Administration Page remains white.

 

Before I did ANYTHING, I backed up my whole E-Commerce store. The problem is that I don't know how to restore it. I can't even find the file on the Administration page anymore. Even if I could, all I see is a white page and to the left a bunch of useless file folders.

 

If someone could just tell me how to manually get my backup running, or I'm even at the point that I'm willing to delete my whole store and start from scratch.

Link to comment
Share on other sites

Thank you! I'm on Startlogic, and I have a V-Deck. I've gone into there and changed the file that caused all of this mess back to the way that it was and hit "SAVE." I did actually save a backup of the file I changed...just in case I screwed up somewhere along the line. After I hit "save", it is altered on my v-deck files, but my OsCommerce Administration Page remains white.

 

Before I did ANYTHING, I backed up my whole E-Commerce store. The problem is that I don't know how to restore it. I can't even find the file on the Administration page anymore. Even if I could, all I see is a white page and to the left a bunch of useless file folders.

 

If someone could just tell me how to manually get my backup running, or I'm even at the point that I'm willing to delete my whole store and start from scratch.

 

This sounds like admin/index.php is missing and you are just seeing a directory view.

 

check if catalog/admin/index.php is there.

Link to comment
Share on other sites

On my Vdeck on Startlogic, I am able to access all the files, and I DO see that file there.

 

Ok back up as this is getting confusing.

 

1) Does the front end of the shop load?

 

2) What exactly what do you see when you go to mysite.com/<possible directory>/admin

Link to comment
Share on other sites

This is where I go to access my store http:/nobodiesbusiness/admin_directory/index.php

 

I see this:

Administration | Online Catalog | Support Site Logged in as: XXXXX (Logoff)

Configuration

Administrators

My Store

Minimum Values

Maximum Values

Images

Customer Details

Shipping/Packaging

Product Listing

Stock

Logging

Cache

E-Mail Options

Download

GZip Compression

Sessions

 

 

Catalog

 

Modules

 

Customers

 

Locations / Taxes

 

Localization

Link to comment
Share on other sites

And here's my store, which seems to be functioning like normal. I just can't access ANYTHING on my ECommerce Admin

 

http://laurielenzdollstudio.startlogic.com/E-Commerce/index.php

 

Langel the script is dying at reports.php which I would guess is a whitespace issue.

 

i know you are new so I will explain

 

At the very top of the file make certain there are no spaces above the <?php

 

equally make sure there are no spaces before the <?php

 

<bad><?php

*** VERY IMPORTANT ***

 

You just posted access to your admin .. I have notified our excellent moderator who I am sure will modify your post.

 

Change your admin folder from "admin" to something new and ridiculous like cs745f774e78

 

In your admin/includes/configure.php file change all references to "admin" to your new admin name that you created .. don't worry about it being hard to remember your browser will remember the name for you.

Link to comment
Share on other sites

I have a great idea which will save everyone a lot of time and trouble on my part. I'm disabling the entire store and uninstalling OsCommerce on my website. I'm SO sorry for all the comfusion this has caused you.

Link to comment
Share on other sites

I have a great idea which will save everyone a lot of time and trouble on my part. I'm disabling the entire store and uninstalling OsCommerce on my website. I'm SO sorry for all the comfusion this has caused you.

 

Hi,

Would be a pity to do that as you do seem to have done a bit of work on the site!!

It is a simple mistake which can be easily rectified with a bit of patience it is not actually the end of your site just the beginning of learning HOW TO with osc :rolleyes:

Have a bit of time tonight so download the ftp tool FILE ZILLA install on your computer and if you want PM me and I will help a bit no cost involved.

John

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

It's gone. :( I've removed the entire shop. Very sad. This is probably one of the worst days I can remember. Thanks to everyone who tried to help me!!! Bless you abundantly for your kindness.

Laurie

Link to comment
Share on other sites

It's gone. :( I've removed the entire shop. Very sad. This is probably one of the worst days I can remember. Thanks to everyone who tried to help me!!! Bless you abundantly for your kindness.

Laurie

 

Have you still got a database back up??

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

I backed up my store this morning. I have it on my webhost's file manager.

 

Seriously want to do some time travel, or press a reset button, or ....even just crawl back into bed.

 

<cry>

Ok if you have an sql database back up the store can be fixed! so go to my profile send me a mail and see if we can get Dr who to do a bit of time traveling back to yesterday when the world was fine

:D

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

It's gone. :( I've removed the entire shop. Very sad. This is probably one of the worst days I can remember. Thanks to everyone who tried to help me!!! Bless you abundantly for your kindness.

Laurie

This is a sad thing to hear. I remember I had similar frustration with that contribution and in the end I disabled the add-on and installed http://addons.oscommerce.com/info/282 (which still had some errors that were addressed on the help thread).

 

If you removed all the files from your store AND the database is unchanged, then you might still be able to invoke your backup files to restore everything.

 

And if you really need help and have backups somewhere that isn't on your site (because you should awlays have backups on your computer) there are people willing to help you understand, establish, or build basic things (like FileZilla, which I installed yesterday). Feel free to drop any one of us a line because this should be a relatively easy fix. I personally find a 2-hr nap to be helpful after attempting to install a large add-on.

 

 

Edit: I remember what happened with that contribution now!!! Thank goodness I created my own Read Me file on my PC that detailed what went wrong. This is what I wrote:

 

catalog/admin/includes

 

database_tables.php

filenames.php

 

Missing TABLE_ADMINISTRATOR and login.php defines.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...