Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    6
    Plugin Contributions
    0

    database error Making copy of site fails to show any page but index.php

    Hi,
    I'm trying to make a copy of our site ( http://onpointlasers.com ) to work on for developing but for some reason I only get the index.php page ( http://dev.onpointlasers.com ) and a Not Found/file not found error for all the other pages.

    I've read the directions on how to do this, many, many times. Changed the config files to the appropriate settings. Ran the fix_cache_key.php file which shows successful.

    Then I started over, installed a fresh copy of zen cart. Worked correctly until I restored the database, then I get the same errors. I assumed this was because of the cache issue, but after running that again I still get the same error.

    Any help is much much much appreciated, as I've been working on this off and on for over a month. Reading all the previous posts, but noone seems to have the same problem I have.
    thanks,
    onpoint

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Making copy of site fails to show any page but index.php

    I assume that you have a new DB for this -

    What do you have entered for these in your configure.php file

    Code:
      define('HTTP_SERVER', 'http://');
      define('HTTPS_SERVER', 'https://');
    
      define('DIR_WS_CATALOG', '');
      define('DIR_WS_HTTPS_CATALOG', '');
    
      define('DIR_FS_CATALOG', '');
    
      define('DIR_FS_SQL_CACHE', '');
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Making copy of site fails to show any page but index.php

    define('HTTP_SERVER', 'http://dev.onpointlasers.com');
    define('HTTPS_SERVER', 'https://dev.onpointlasers.com');

    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_FS_CATALOG', '/hsphere/local/home/onpoint/dev.onpointlasers.com/');

    define('DIR_FS_SQL_CACHE', '/hsphere/local/home/onpoint/dev.onpointlasers.com/cache');

    It is a new database. It's strange because the products come up on the index page no problem. Another thing I noticed, there isn't a ?zenID$string after the page like on the working site.

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Making copy of site fails to show any page but index.php

    Blue Laser Pointers - http://dev.onpointlasers.com/catalog...laser-pointers

    The requested URL /catalog/products/blue-laser-pointers was not found on this server.

    That is the error msg. returned and tells us your settings should be thus:

    define('DIR_WS_CATALOG', '/catalog/');
    define('DIR_WS_HTTPS_CATALOG', '/catalog/');
    define('DIR_FS_CATALOG', '/hsphere/local/home/onpoint/dev.onpointlasers.com/catalog/');
    define('DIR_FS_SQL_CACHE', '/hsphere/local/home/onpoint/dev.onpointlasers.com/catalog/cache');


    Else you need to create a "catalog" dir. and install there.


    The "Home" link uses: http://www.laserpointer.net/ due to:
    <base href="http://www.laserpointer.net/" />


    Looks like you have some confusion in your setup with regard to which site uses which files/paths.

    Whatever changes you do make, remember to apply them to your admin/includes/configure.php file as well.

  5. #5
    Join Date
    Sep 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Making copy of site fails to show any page but index.php

    Ok, this is odd. There is no catalog directory on the original "working" site. I tried changing the configure.php to what you said with the /catalog/ and I get a similar error except is says URL not found /catalog/catalog/blue-laser-pointers,

    I also tried moving everything into a /catalog/ directory, with still no avail.

    Then when I only have define('DIR_FS_CATALOG', '/hsphere/local/home/onpoint/dev.onpointlasers.com/catalog/');

    Voila! my template pages show up, but no products

    I get this error in the log -
    PHP Fatal error: Call to undefined function: zen_get_product_fle xible_fields() in /hsphere/local/home/onpoint/dev.onpointlasers.com/includes/modules/onpoint/product_ listing.php on line 42

    I'm guessing because it's looking in the /catalog/ directory for function, but when I copy the includes to the /catalog directory it comes up blank again.

    I'm so close to getting it to work. Thanks for all the help so far.

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Making copy of site fails to show any page but index.php

    Not sure what you mean by "original working" site. Currently, one of your sites does use a 'catalog' dir. and one does not.

    This does:
    http://laserpointer.net/catalog/prod...laser-pointers

    This does not:
    http://dev.onpointlasers.com/index.p...dex&cPath=1_16


    Whenever setting up a dev or test site it is important to make sure "everything" is identical in the setups -- between the two sites. Except for the Domain name / URL, one should be able to drop files into either without error. This would include databases as well and again, only difference would be database connection information.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Making copy of site fails to show any page but index.php

    but when I copy the includes to the /catalog directory it comes up blank again.
    All the files should be in ine place I questioned when you stated the above highlighted statement.
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Removed index.html and index of my site is now visible any suggestions
    By LeoJ in forum Installing on a Linux/Unix Server
    Replies: 10
    Last Post: 17 May 2013, 02:59 AM
  2. Replies: 8
    Last Post: 6 Dec 2008, 01:18 AM
  3. tpl_categories.php : any way to show all subcategories site-wide?
    By inthecomputer in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 18 Nov 2008, 11:41 PM
  4. Can't get the index.php to show up on live site
    By maxapplle in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 12 Jun 2007, 06:55 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