Forums / Basic Configuration / 1054 Error

1054 Error

Locked

Views: 6,363

Results 1 to 20 of 21
This thread is locked. New replies are disabled.
28 Sep 2006, 1:37 AM
#1
maggiesmom1 avatar

maggiesmom1

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

1054 Error

I've got this error & don't know what it means:

1054 Unknown column 'startdate' in 'field list'
in:
[select startdate, counter, session_counter from counter_history where startdate='20060927']

28 Sep 2006, 6:30 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: 1054 Error

You just upgraded your site from v1.2.x to v1.3.x but didn't upgrade the database too.

Run zc_install/index.php and choose "Database Upgrade" on the system-inspection page (NOT "install").

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Sep 2006, 12:45 PM
#3
maggiesmom1 avatar

maggiesmom1

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: 1054 Error

Okay, I'm trying to do that, and this is what I get:

Warning: main(includes/modules/pages/index/header_php.php) [function.main]: failed to open stream: No such file or directory in /home/bfpvrjqf/public_html/store/zc_install/index.php on line 38

Warning: main(includes/modules/pages/index/header_php.php) [function.main]: failed to open stream: No such file or directory in /home/bfpvrjqf/public_html/store/zc_install/index.php on line 38

Warning: main(includes/modules/pages/index/header_php.php) [function.main]: failed to open stream: No such file or directory in /home/bfpvrjqf/public_html/store/zc_install/index.php on line 38

Fatal error: main() [function.require]: Failed opening required 'includes/modules/pages/index/header_php.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bfpvrjqf/public_html/store/zc_install/index.php on line 38

The index.php from zc_install is:

<?php /** * index.php -- This is the main hub file for the Zen Cart installer * * @package Installer * @access private * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: index.php 4022 2006-07-25 01:07:37Z drbyte $ */ define('IS_ADMIN_FLAG',false); require('includes/application_top.php'); /* This is for debug purposes to run installer from SSH command line. Set to true to enable it: */ if (false) { if ($argc > 0) { for ($i=1;$i<$argc;$i++) { $it = split("=",$argv[$i]); $_GET[$it[0]] = $it[1]; // parse_str($argv[$i],$tmp); // $_REQUEST = array_merge($_REQUEST, $tmp); } } } if (!isset($_GET['main_page']) || !zen_not_null($_GET['main_page'])) $_GET['main_page'] = 'index'; $current_page = $_GET['main_page']; $page_directory = 'includes/modules/pages/' . $current_page; $language_page_directory = 'includes/languages/' . $language . '/'; require('includes/languages/' . $language . '.php'); // init vars: $zc_first_field = ''; // lang must be loaded before the header module require('includes/languages/' . $language . '/' . $current_page . '.php'); require($page_directory . '/header_php.php'); require(DIR_WS_INSTALL_TEMPLATE . 'common/html_header.php'); require(DIR_WS_INSTALL_TEMPLATE . 'common/main_template_vars.php'); require(DIR_WS_INSTALL_TEMPLATE . 'common/tpl_main_page.php'); ?>
28 Sep 2006, 5:03 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: 1054 Error

The error is:

maggiesmom1:

main([zc_install/]includes/modules/pages/index/header_php.php) [function.main]: failed to open stream: No such file or directory
(note, I added the [zc_install/] for clarification, since in "this" particular case, you're working from within the zc_install folder already).

Re-upload that file, as your FTP program must have missed it. It may have missed others too.

I recommend FileZilla , and I discourage against use of smartftp or cuteftp due to their frequent timeout problems

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Sep 2006, 6:25 PM
#5
maggiesmom1 avatar

maggiesmom1

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: 1054 Error

Thank you - that worked & I got the upgrade done. However now when I rediredted to the store, I get this error:

Warning: main(includes/auto_loaders/config.core.php) [function.main]: failed to open stream: No such file or directory in /home/bfpvrjqf/public_html/store/includes/application_top.php on line 90

Warning: main(includes/auto_loaders/config.core.php) [function.main]: failed to open stream: No such file or directory in /home/bfpvrjqf/public_html/store/includes/application_top.php on line 90

Warning: main(includes/auto_loaders/config.core.php) [function.main]: failed to open stream: No such file or directory in /home/bfpvrjqf/public_html/store/includes/application_top.php on line 90

Warning: main() [function.include]: Failed opening 'includes/auto_loaders/config.core.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bfpvrjqf/public_html/store/includes/application_top.php on line 90

Warning: dir(includes/auto_loaders) [function.dir]: failed to open dir: No such file or directory in /home/bfpvrjqf/public_html/store/includes/application_top.php on line 91

Fatal error: Call to a member function on a non-object in /home/bfpvrjqf/public_html/store/includes/counter.php on line 23

28 Sep 2006, 9:52 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: 1054 Error

Same type of problem:

includes/auto_loaders/config.core.php) [function.main]: failed to open stream: No such file or directory

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Sep 2006, 10:01 PM
#7
maggiesmom1 avatar

maggiesmom1

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: 1054 Error

Can you tell me exactly what file/folder I'm missing?
store/ncludes/auto_loaders/config.core.php is there. Is there a different folder I'm missing?? I deleted the zc_install folder after the upgrade was successful & the screen told me to delete it.

29 Sep 2006, 12:44 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: 1054 Error

just like the error message says:

/includes/auto_loaders/config.core.php

Perhaps you have set your file-permissions too tight for your server.
Normally 755 for folders and 644 for files is suitable.
Who knows what your web host requires.

What is your server's errorlog saying when you get these messages?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Sep 2006, 1:05 AM
#9
maggiesmom1 avatar

maggiesmom1

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: 1054 Error

Server's errorlog says this:

[Thu Sep 28 20:02:53 2006] [error] [client 68.249.171.166] File does not exist: /home/bfpvrjqf/public_html/404.shtml
[Thu Sep 28 20:02:53 2006] [error] [client 68.249.171.166] File does not exist: /home/bfpvrjqf/public_html/favicon.ico
[Thu Sep 28 20:02:11 2006] [error] [client 68.249.171.166] File does not exist: /home/bfpvrjqf/public_html/404.shtml
[Thu Sep 28 20:02:11 2006] [error] [client 68.249.171.166] File does not exist: /home/bfpvrjqf/public_html/favicon.ico
[Thu Sep 28 20:02:10 2006] [error] [client 68.249.171.166] File does not exist: /home/bfpvrjqf/public_html/404.shtml
[Thu Sep 28 20:02:10 2006] [error] [client 68.249.171.166] File does not exist: /home/bfpvrjqf/public_html/favicon.ico
[Thu Sep 28 20:02:10 2006] [error] PHP Fatal error: Call to a member function on a non-object in /home/bfpvrjqf/public_html/store/includes/counter.php on line 23
[Thu Sep 28 20:02:10 2006] [error] PHP Warning: dir(includes/auto_loaders) [<a href='function.dir'>function.dir</a>]: failed to open dir: No such file or directory in /home/bfpvrjqf/public_html/store/includes/application_top.php on line 91
[Thu Sep 28 20:02:10 2006] [error] PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening 'includes/auto_loaders/config.core.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bfpvrjqf/public_html/store/includes/application_top.php on line 90
[Thu Sep 28 20:02:10 2006] [error] PHP Warning: main(includes/auto_loaders/config.core.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /home/bfpvrjqf/public_html/store/includes/application_top.php on line 90
[Thu Sep 28 20:02:10 2006] [error] PHP Warning: main(includes/auto_loaders/config.core.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /home/bfpvrjqf/public_html/store/includes/application_top.php on line 90
[Thu Sep 28 20:02:10 2006] [error] PHP Warning: main(includes/auto_loaders/config.core.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /home/bfpvrjqf/public_html/store/includes/application_top.php on line 90

29 Sep 2006, 1:10 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: 1054 Error

Please post your /includes/configure.php file here, without the password

Who's your host?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Sep 2006, 1:39 AM
#11
maggiesmom1 avatar

maggiesmom1

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: 1054 Error

store/includes/configure.pho file:

<?php // // +----------------------------------------------------------------------+ // |Zen Cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2004 The Zen Cart developers | // | | // | <http://www.zen-cart.com/index.php> | // | | // | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | <http://www.zen-cart.com/license/2_0.txt>. | // | If you did not receive a copy of the Zen Cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | [[email protected]](mailto:[email protected]) so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // // Define the webserver and path parameters // Main webserver: eg, <http://localhost> - should not be empty for productive servers define('HTTP_SERVER', 'http://butternugsquash.com'); // Secure webserver: eg, <https://localhost> - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.butternugsquash.com'); // secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/store/'); define('DIR_WS_HTTPS_CATALOG', '/store/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/home/bfpvrjqf/public_html/store/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', 'xxxxxxx_xxxxxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxxxx'); define('DB_DATABASE', 'xxxxxxxx_zencart'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db' // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/home/bfpvrjqf/public_html/store/cache'); ?>

My host is Total Choice Hosting

29 Sep 2006, 1:58 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: 1054 Error

I have no idea.

  • Your configure.php appears to be correct.
  • PHP is SUPPOSED to be processing it right, since the .: in the status message says the current directory should be usable (include_path='.:/usr/lib/php:/usr/local/lib/php') .

It's behaving as though the DIR_FS_CATALOG is blank or the include_path in PHP is set to ignore the current directory. But neither of those is true, based on what you're reporting.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Sep 2006, 1:59 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: 1054 Error

Maybe you can explain the history of this project ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Sep 2006, 2:07 AM
#14
maggiesmom1 avatar

maggiesmom1

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: 1054 Error

I was using ZenCart 1.2.6 and finally decided to upgrade to 1.3.5. Being the supreme idiot I am, I just uploaded the files and expected it to work.

I wasn't doing anything interesting or spectacular. Just trying to upgrade. I uploaded all the files (missing one as you found) and then did the zc_install upgrade. That worked fine.

Is there something else that can be checked or a tech support person who can go in & see if they can fix it? Last I checked my database was still working, though now I can't get into the admin, either. Getting this error:

Fatal error: Cannot redeclare class cache in /home/bfpvrjqf/public_html/store/includes/classes/cache.php on line 20

29 Sep 2006, 9:12 PM
#15
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: 1054 Error

Its resolved now maggiesmom1!! :yes:
I am heading on to get some food!! :lookaroun

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

29 Sep 2006, 10:56 PM
#16
maggiesmom1 avatar

maggiesmom1

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: 1054 Error

Can I just say that superprg kicks some major, major butt?? He solved my unsolvable problem in less than an hour. He rocks with much, much rockage and I owe him my undying allegiance.

Thank you so much - now I don't have to kill myself.

30 Sep 2006, 3:42 PM
#17
maggiesmom1 avatar

maggiesmom1

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: 1054 Error

Does anybody know how I can remove the "TagLine Here" to the right of my logo & the "Home" underneath it? Also, I can't figure out how to move to left & right columns up to the top of the page. (Categories & "Have You Seen"). I've got the "New Products for September" pictures so they're supposed to be 2 rows per column, but they're just one lined up on the left rather than centered.

The site is here if you want to see it;
http://www.butternugsquash.com/store

Thanks again.

30 Sep 2006, 5:33 PM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: 1054 Error

  1. Top 10 Questions article

  2. Admin->Tools->Layout Boxes Controller

  3. Your colors and alignment issues are stylesheet-related.

NOTE: Your site looks completely different in Firefox vs IE.
Your images are taking a very long time to load as well.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Sep 2006, 6:53 PM
#19
maggiesmom1 avatar

maggiesmom1

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: 1054 Error

Okay - I've got most of the styling done, but after looking at it both in Firefox & IE (thanks, DrByte), I need to change alignment & cannot find where to do that.

I want everything centered. In Firefox, it all looks together, but way over on the left. In IE, the "big picture' is centered, but the 2 sideboxes are left-aligned & the center box is right-aligned.

Where do I find where to fix this. I'm assuming it's in the stylesheet.css, but I'm not finding it.

31 Oct 2006, 7:12 PM
#20
doodlebee avatar

doodlebee

Inactive

Join Date:
Jan 2006
Posts:
228
Plugin Contributions:
0

Re: 1054 Error

Its resolved now maggiesmom1!!
I am heading on to get some food!! <<

Great - glad it got working for you - but how about posting the solution so others with this problem can fix it too? I've been searching and testing my own server for hours and this thread is the closest I've come to seeing a solution is possible - and it's just lovely that you all didn't share what that solution was.

Mind passing along the information?