Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2008
    Location
    Pacific Nortwest
    Posts
    6
    Plugin Contributions
    0

    Default DB error on admin only

    Greetings:

    I've just moved zen from localhost win XP Pro SP2 server to shared linux server(godaddy.com):

    http://kozmick.com/store

    1. Did a fresh install of zen as a available add-on app on the linux server which created the DB with no db_ prefix...2. Uploaded/overwrote all the files from localhost EXCEPT inlcudes/configure.php and admin/configuration.php
    3. Exported the DB from localhost(mysql ver 4.1)
    4. "Successfully" imported the DB(mysql ver 5.0) to the Linux DB...all field names, table count and number of records are identical to localhost DB.

    Btw, any known issues exporting 4.1 to 5.0? Mysql support says shouldn't be a problem as long as going up and not backwards(?:)

    Anyway...everything looks good...all images and products are displayed correctly so DB is connected etc.

    ...verified includes/configure.php is correct (made db_ prefix nul)

    Here's the rub...when I invoke kozmick.com/store/admin and ONLY when invoke admin, I get:

    1146 Table 'koz0805306243218.zen_project_version' doesn't exist
    in:
    [select * from zen_project_version WHERE project_version_key = 'Zen-Cart Database' ]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    Searched the forum...up, down continuous and often...can't seem to find this situation only occuring when invoking admin(?)

    Any help greatly appreciated.

    Thanks, Mick

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: DB error on admin only

    Quote Originally Posted by kozmick View Post
    1146 Table 'koz0805306243218.zen_project_version' doesn't exist
    in:
    [select * from zen_project_version WHERE project_version_key = 'Zen-Cart Database' ]
    koz0805306243218 = the name of the database it's looking at, according to your /admin/includes/configure.php file
    zen_ = the DB_PREFIX setting that it's finding in your /admin/includes/configure.php file.

    Are you sure the upload of changes to the file worked correctly? Or did it fail because the file was read-only and needs to be made writable in order to upload, and then read-only again when done?
    .

    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.

  3. #3
    Join Date
    Jan 2008
    Location
    Pacific Nortwest
    Posts
    6
    Plugin Contributions
    0

    Default Re: DB error on admin only

    Thanks Doc...

    Well here's the error message I now get when I invoke .../store/admin.

    Seen this one before?

    Thanks, Mick

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/content/k/o/z/kozmick/html/store/admin/includes/configure.php:183) in /home/content/k/o/z/kozmick/html/store/includes/functions/sessions.php on line 108

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/content/k/o/z/kozmick/html/store/admin/includes/configure.php:183) in /home/content/k/o/z/kozmick/html/store/includes/functions/sessions.php on line 108

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/o/z/kozmick/html/store/admin/includes/configure.php:183) in /home/content/k/o/z/kozmick/html/store/admin/includes/init_includes/init_templates.php on line 36

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/o/z/kozmick/html/store/admin/includes/configure.php:183) in /home/content/k/o/z/kozmick/html/store/admin/includes/functions/general.php on line 21

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: DB error on admin only

    Quote Originally Posted by kozmick View Post
    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/content/k/o/z/kozmick/html/store/admin/includes/configure.php:183) in ...
    FAQ: https://www.zen-cart.com/tutorials/index.php?article=87
    .

    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.

  5. #5
    Join Date
    Jan 2008
    Location
    Pacific Nortwest
    Posts
    6
    Plugin Contributions
    0

    Default Re: DB error on admin only

    Thanks Doc...yeap...that did it....everything up and running.

    It appears that my text editor was configured incorrectly re CR/LF plus the fact that I somehow inadvertently added some CR/LFs at the very end of the file...dumb...

    FWIW, The culprit that was causing all the mischief was in fact 2 CR/LFs after the terminating "?>" at the very end of the file, which the debug error message pointed to the line no. right after the file name...impressive...hmmm...very touchy this Mr. Php.

    Cheers, Mick

 

 

Similar Threads

  1. Replies: 2
    Last Post: 20 Jul 2010, 04:40 PM
  2. admin IP Only
    By Dashizna in forum General Questions
    Replies: 6
    Last Post: 7 Apr 2010, 02:14 AM
  3. Replies: 3
    Last Post: 1 Jan 2008, 11:09 AM
  4. Error after installing only in store - admin works fine - failed to open stream
    By JoeSchell in forum Installing on a Windows Server
    Replies: 11
    Last Post: 30 Nov 2006, 12:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg