Zen Cart Logo
Forums / General Questions / Connecting files to database after backup uploaded

Connecting files to database after backup uploaded

Views: 641

Results 1 to 5 of 5
7 Oct 2017, 11:30 PM
#1
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Connecting files to database after backup uploaded

Hi,
I had to fully upload a backup of my website files to our host today.
The database was not touched and is still intact.

After doing so I only get the homepage of the site showing.
Clicking categories etc. comes up 'not found'

Admin is blank.

I'm in a panic to get the thing connected as it's our busiest week.
So hoping someone might help. (I'm of course trying hard to find solution through threads right now too)

Does uploading configure files or zencart/install help?
As a side note, I don't recall if I'm running 1.54 or 1.55 as I can't see admin right now...

Appreciate a starting point thanks!

7 Oct 2017, 11:53 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Connecting files to database after backup uploaded

First, a blank page will likely create a mydebug log in your logs folder as identified by: http://www.zen-cart.com/content.php?124-blank-page

The fact that your main page comes up means that there are things that have worked correctly as related to your includes/configure.php file. So your database is correctly referenced.

Why did you have to upload your files again?

There could be a file (or several) that are present that are causing some sort of conflict when trying to load. Also, one or more files may not have uploaded completely/correctly and may need to be uploaded again. (what was used to upload the files?)

Have you cleared the browser cache/cookies or tried another browser?

You can tell the version of files now on the server by looking in includes/version.php

8 Oct 2017, 1:14 AM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Connecting files to database after backup uploaded

Looking at the front of your site now ```
http://www . partydudes . co . nz/


Not sure why your admin is a problem unless it is tied into an issue with that file.
8 Oct 2017, 7:00 AM
#4
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Re: Connecting files to database after backup uploaded

Thanks so much for replying.
I confirmed I have version 1.54
All files seem to have uploaded correctly.

I only seem to have a .htaccess file in the root of my hosting account.
(Not in my partydudes folder itself)
So it wasn't changed or re uploaded. But I don't know what to do with that file...
I'm only able to use cPanel file manager today, but seems useable.

What triggers you to know that it might be a url rewritter problem? (I don't have a clue what to do)

I have the host hopefully uploading a more recent backup of my site tomorrow, but I guess the problem may still exist...

8 Oct 2017, 9:29 AM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Connecting files to database after backup uploaded

mcpisik:

Thanks so much for replying.
I confirmed I have version 1.54
All files seem to have uploaded correctly.

I only seem to have a .htaccess file in the root of my hosting account.
(Not in my partydudes folder itself)
So it wasn't changed or re uploaded. But I don't know what to do with that file...
I'm only able to use cPanel file manager today, but seems useable.

What triggers you to know that it might be a url rewritter problem? (I don't have a clue what to do)

I have the host hopefully uploading a more recent backup of my site tomorrow, but I guess the problem may still exist...

The trigger is/was that when I attempted some random link on the page, not only did I also get a page not found error, but the path identified was "human" readable, instead of something like: index.php?main_page%roduct_info&products_id=125 (which when entered also provides an error at this time, but when I had randomly selected 25 before it went to a "product-not-found" error that was generated by ZC rather than apache.

The contents of the htaccess file are important to the operation or modification of normal operation when a uri rewriter is used. It could reside in the sub-directory of your host account that is the root of your online account or it could be more to the left when you are considering the path to get to that folder. But for the site to work properly with a uri rewriter, such a file is required.

If you post the contents here (having pressed the # button in the message box toolbar before pasting), then it can be reviewed to try to set things straight. If when looking through it, you see things like the name of your admin directory you can change that to admin instead of what it is called. Also, you can change say ip numbers to something generic but don't be surprised to be asked about the relationship of those numbers to those of your domain name. Basically try to protect the innocent.

The other thing since you're working with ZC 1.5.4, your host didn't upgrade the php version to 7.x did they?

Can temporarily generate a file with the name of your choosing that has an extension of .php that contains the following:

<?php echo phpinfo();

Then call the file and the php version should be visible towards the top of the screen.