Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / Configure.php delete reinstall causes problems

Configure.php delete reinstall causes problems

Locked

Views: 4,741

Results 1 to 20 of 29
This thread is locked. New replies are disabled.
6 Jun 2010, 7:53 PM
#1
stefanl avatar

stefanl

Zen Follower

Join Date:
Aug 2009
Location:
SWEDEN
Posts:
198
Plugin Contributions:
0

Configure.php delete reinstall causes problems

Hi,

I have version 139d. Upgrading from 138
Via FTP I deleted the configure.php (under includes/configure.php) on my remote server, renamed it via remote ftp my dist.configure.php into configure.php.

That move removed my "front page" of my temporary webshop/subdomain, giving me an error page.

After that I whent to my 138 version (locally on my computer) and in the includes/configure.php, took the configure.php transfer via FTP, maiking my page to kind of reappear in the products page, as seen in my browser.

BUT on top above my website/webshop it gave an ERROR message (rectangle with exclamation mark in it) saying:

"Your database appears to need patching to a higher level. See Admin->Tools->Server Information to review patch levels."

In my despair of simply trying to get my products show up in my shop online and in the admin page its giving me headache as there seam to be no simple pedagogical tutorial in what I have to do.

Just so you know: I have a webshop live version 138. I have plased version 139d on a subdomain while testing to see it all works. Until now I do have got a lot of help, but in this particular case I still havent found anything that can help me in getting the categories/products page on both the site and admin page to show up.

Everywhere people say "chmod 777", but what more can I do except getting the configure.php on my remote server. I simply dont it.

6 Jun 2010, 9:48 PM
#2
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

if you have copied configure files from your local machine to your server, have you altered the configure.php files to point to your domain name and have the correct paths to your site?

Rob

6 Jun 2010, 11:24 PM
#3
swirlback avatar

swirlback

New Zenner

Join Date:
Sep 2009
Location:
Oregon, US
Posts:
11
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

I'm stuck with the same error message "Warning Your database appears to need patching to a higher level. See Tools->Server Information to review patch levels."
I hope somehow it's related and help solve the problem.

My Tools->Server Information page displays
Zen Cart 1.3.9d
Database Patch Level: 1.3.8
(That's a mismatch. How do we update Patch Level?)

Both of my configure.php files point to the new path and I see no problem there.

My background (again, I hope this info is useful.)
I installed 1.3.9d into a fresh directory, created a new SQL database, and then imported my 1.3.8 database local backup as per instruction:
https://www.zen-cart.com/tutorials/index.php?article=100

The aforementioned error seem to indicate I'm missing a step also?

7 Jun 2010, 2:01 AM
#4
swirlback avatar

swirlback

New Zenner

Join Date:
Sep 2009
Location:
Oregon, US
Posts:
11
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

stefanl,

I got mine solved by performing the [Database Update] as per /docs/2.readme_how_to_upgrade.html

Hope this helps you too.

7 Jun 2010, 12:12 PM
#5
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

Did you have any success?

Rob

7 Jun 2010, 1:14 PM
#6
stefanl avatar

stefanl

Zen Follower

Join Date:
Aug 2009
Location:
SWEDEN
Posts:
198
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

RobWUK:

Did you have any success?

Rob

Not yet.
I read the docs/2 read me upgrade were it states to see to that configure.php have the correct database name, but when I just uploaded the configure.php it still opens that darn page. Just to refersh: my webhost helped me by installing 139d on my server and from there I have stated to transfer all files and make all adjustments. And then I was stupid enough to remove the configure.php from the remote server. the 139d configure.php. Now, I took the 138 configure.php and changed the name of the database and FTP it the error page came up again, as seen attached below. I am going really confused here now.

I only get this page saying this:

Hello. Thank you for loading Zen Cart™.
You are seeing this page for one or more reasons:

  1. This is your first time using Zen Cart™ and you haven't yet completed the normal Installation procedure.
    If this is the case for you, you will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).

  2. Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
    If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
    See the Online FAQ and Tutorials area on the Zen Cart™ website for assistance.

  3. Additional Details: includes/configure.php file contents invalid. ie: DIR_FS_CATALOG not valid or not set

To begin installation ...

  1. The Installation Documentation can be read by clicking here: Documentation
  2. You will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).
  3. The Online FAQ and Tutorials area on the Zen Cart™ website will also be of value if you run into difficulties.
7 Jun 2010, 1:37 PM
#7
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

hi, what exactly have you done since your last post and the advice swirlback give you?

make a backup of your database before doing any of this, your server control panel should give you an option for this

if you have copied all the files for 1.3.9d onto the server and got your site loading the correct database then all you need to do after this is an upgrade on the database

this can be done my loging into your admin/ Tools / Install SQL patches

click browse and look in your zc_install folder on your hard drive, and browse the folder marked sql

you will see a file called mysql_upgrade_zencart_138_to_139.sql

click upload and it will patch your database to 1.3.9

Rob

these instructions are the way i have upgraded in the past

7 Jun 2010, 3:07 PM
#8
stefanl avatar

stefanl

Zen Follower

Join Date:
Aug 2009
Location:
SWEDEN
Posts:
198
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

RobWUK:

hi, what exactly have you done since your last post and the advice swirlback give you?

make a backup of your database before doing any of this, your server control panel should give you an option for this

if you have copied all the files for 1.3.9d onto the server and got your site loading the correct database then all you need to do after this is an upgrade on the database

this can be done my loging into your admin/ Tools / Install SQL patches

click browse and look in your zc_install folder on your hard drive, and browse the folder marked sql

you will see a file called mysql_upgrade_zencart_138_to_139.sql

click upload and it will patch your database to 1.3.9

Rob

these instructions are the way i have upgraded in the past

The suggested file called mysql_upgrade_zencart_138_to_139.sql
Will that erase any and all adjustments I may have done up till now?

I ask becuase I have made adjustments to my current temporary zecart.

You asked what I have done:

I have a live webshop on my website, lets call it zencart, version 138. That one is currently working and nothing wrong. Its all about my temporary demo site on my subdomain.

My subdomain with a installed temporary webshop, lets call it zendemo. Version installed 139d. Which is were all wrong is happening. Its online but not "public" as its on a temp subdomain.

Up until yesterday my Zendemo worked more and more except for all my products/categories not showing up at all neither in the browser publically, and not in the admin page.

I therefore tried to upload the configure.php from my version 138, and then all problems began, and to be even worse when I deleted the dist.configure.php on the remote server. I deleted it, renamed it and tried all things.

I used notepad++ to rename zencart 138 configure.php file and named it zendemo and file transfered it to the zendemo subdomain site.

Resulting in the error page with the text I attached previously

7 Jun 2010, 3:39 PM
#9
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

what you need to do then, is put back the configure files back on your demo store, your demo store should really be using a different database to your live store, as not to screw your live store up

if you have no longer got these configure files for your demo store , then you will have to copy the ones from your live store, and place them in your demo folder in appropriate folders, and edit them to match the settings of your demo store, if this is beyond you then i can help you out.

you need to get your demo store up and running again before doing anything

while you are developing or testing sites, i would rename files or there extensions instead of deleting, that way you can back track

Rob

7 Jun 2010, 3:47 PM
#10
stefanl avatar

stefanl

Zen Follower

Join Date:
Aug 2009
Location:
SWEDEN
Posts:
198
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

RobWUK:

what you need to do then, is put back the configure files back on your demo store, your demo store should really be using a different database to your live store, as not to screw your live store up

if you have no longer got these configure files for your demo store , then you will have to copy the ones from your live store, and place them in your demo folder in appropriate folders, and edit them to match the settings of your demo store, if this is beyond you then i can help you out.

you need to get your demo store up and running again before doing anything

while you are developing or testing sites, i would rename files or there extensions instead of deleting, that way you can back track

Rob

Hi Rob,

I never have only one (1) database. I always had two separate databases. And the two databases have their own names.

I can log in to my admin page online. And just now I re-transfered/installed the configure.php used on my 138 live webshop to be overwritten the "bad" configure.php on my demo webshop. So now the demo webshop called zendemo show that "System setup required" page I attached the text from, which reads

**this page saying this:

Hello. Thank you for loading Zen Cart™.
You are seeing this page for one or more reasons:

  1. This is your first time using Zen Cart™ and you haven't yet completed the normal Installation procedure.
    If this is the case for you, you will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).

  2. Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
    If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
    See the Online FAQ and Tutorials area on the Zen Cart™ website for assistance.

  3. Additional Details: includes/configure.php file contents invalid. ie: DIR_FS_CATALOG not valid or not set

To begin installation ...

  1. The Installation Documentation can be read by clicking here: Documentation
  2. You will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).
  3. The Online FAQ and Tutorials area on the Zen Cart™ website will also be of value if you run into difficulties. **
7 Jun 2010, 3:56 PM
#11
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

have you modified the configure files after you copied them from your live shop, as they will need to be modified to point to your demo store, it wion't do it automatically

and do they still have the name configure.php and not dist-configure.php. as for some reason it's not seeing them and thinking it needs to be installed

Rob

7 Jun 2010, 3:59 PM
#12
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

stefanl:

Hi Rob,

I never have only one (1) database. I always had two separate databases. And the two databases have their own names.

Do they each have their own username & password as well?

7 Jun 2010, 4:04 PM
#13
stefanl avatar

stefanl

Zen Follower

Join Date:
Aug 2009
Location:
SWEDEN
Posts:
198
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

RobWUK:

have you modified the configure files after you copied them from your live shop, as they will need to be modified to point to your demo store, it wion't do it automatically

and do they still have the name configure.php and not dist-configure.php. as for some reason it's not seeing them and thinking it needs to be installed

Rob

I configured them such as I changed the name of the live webshop to the name of the temporary webshop

Yes its simply called configure.php. There is a dist-configure.php there now. I asked my webhost to restore after I previoulsy deleted it.

Any suggestions?

7 Jun 2010, 4:07 PM
#14
stefanl avatar

stefanl

Zen Follower

Join Date:
Aug 2009
Location:
SWEDEN
Posts:
198
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

Website Rob:

Do they each have their own username & password as well?

user name is the name of the temporary zendemo shop
The password seem to be the same as the live webshop

If password need to be changed, how and what do I place there instead?

7 Jun 2010, 4:17 PM
#15
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

if you have renamed your live webshop which you said was 1.3.8 and you have now renamed to a tempory webshop then, this webshop will only be 1.3.8?, apart from the database that needs upgraded, you still need version 1.3.9d files

7 Jun 2010, 4:25 PM
#16
stefanl avatar

stefanl

Zen Follower

Join Date:
Aug 2009
Location:
SWEDEN
Posts:
198
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

RobWUK:

if you have renamed your live webshop which you said was 1.3.8 and you have now renamed to a tempory webshop then, this webshop will only be 1.3.8?, apart from the database that needs upgraded, you still need version 1.3.9d files

no, no, keep the live webshop out if this ;-)
The ONLY thing I have don to my live webshop is to use the configure.php file and all other "CUSTOM" folders/files.

The temporary webshop is installed from the ground up as 139c on its own database. Has nothing to do with the live 138 webshop.

After I/my webhost installed the full clean 139c the nw 139d came out and so I installed all files that are 139d related. SO now its a 139d version.

7 Jun 2010, 4:30 PM
#17
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

i see, so i am assuming that this demo uses a different database, as you have mentioned

can you now get into the admin, or are you still coming up with the installation page

if you are still coming up with the installation page, have you made sure you have placed the configure.php in the correct folders ie /includes and /admin/includes and that they are have readable permissions

also get rid of the ones labelled dist-configure.php from both your includes and admin/includes then see what happens

you shouldn't have a zc_install on the server either as you have already installed

Rob

7 Jun 2010, 4:40 PM
#18
stefanl avatar

stefanl

Zen Follower

Join Date:
Aug 2009
Location:
SWEDEN
Posts:
198
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

RobWUK:

i see, so i am assuming that this demo uses a different database, as you have mentioned

can you now get into the admin, or are you still coming up with the installation page

if you are still coming up with the installation page, have you made sure you have placed the configure.php in the correct folders ie /includes and /admin/includes and that they are have readable permissions

also get rid of the ones labelled dist-configure.php from both your includes and admin/includes then see what happens

you shouldn't have a zc_install on the server either as you have already installed

Rob

Yes it is a separate database, I promiss ;-)

And I just logged into my admin page online.

There is NO zc_install on the remorte server.

I will try the other things you suggested and get back soon

7 Jun 2010, 4:52 PM
#19
stefanl avatar

stefanl

Zen Follower

Join Date:
Aug 2009
Location:
SWEDEN
Posts:
198
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

RobWUK:

i see, so i am assuming that this demo uses a different database, as you have mentioned

can you now get into the admin, or are you still coming up with the installation page

if you are still coming up with the installation page, have you made sure you have placed the configure.php in the correct folders ie /includes and /admin/includes and that they are have readable permissions

also get rid of the ones labelled dist-configure.php from both your includes and admin/includes then see what happens

you shouldn't have a zc_install on the server either as you have already installed

Rob

I have now deleted both dist.configure.php in both includes/dist-configure as well as admin/dist-configure So to my knowledge there are no dist-configs left on my server.

7 Jun 2010, 4:56 PM
#20
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Re: Configure.php delete reinstall causes problems

are you able to view your demo catalogue and can you log into the admin without any problems

Rob