Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  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,761
    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,761
    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

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

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

    kobra -
    I did try it in the same place by adding /catalog/ in all the paths to no avail.

    When that failed I created a catalog directory and tried moving everything in there like I thought this meant.
    Else you need to create a "catalog" dir. and install there
    still no luck

    Website Rob -
    I am aware that everything needs to be the same in the dev site. There is not a "catalog" directory in the original "laserpointer.net" website, I'm kind of baffled it works. I'm not sure where this path is coming from, it's not listed in that config either. I made an exact copy of all the files and directories for my dev site.

    The only thing I had to change was /onpointlasers.com to /dev.onpointlasers.com in the config paths as well as making a copy of the database with a different name/username/password

    Could it be getting the path that includes /catalog/ from the template or the database?

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

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

    I got the products to show up after adding this on the top of my /hsphere/local/home/onpoint/dev.onpointlasers.com/includes/modules/onpoint/product_listing.php page,...but there's still something wrong, as I'll have to do this with each of the function files and who knows what else to get it to completely work,...

    <?php
    include('includes/functions/extra_functions/product_flexible_extra_functions.php');

    Looking through this post, it makes sense that it's a path issue, but there is no catalog directory in either the working site http://laserpointer.net (http://onpointlasers.com) or my dev site http://dev.onpointlasers.com , why would the template start working when I added /catalog/ to the DIR_FS_CATALOG variable then..?

    I miss oscommerce

  10. #10
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

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

    The catalog dir is the dir/folder in which you have installed the site. There is the webserver path to it, in the configure.php WS_CATALOG definitions, and the file system/server path to it, in the FS_CATALOG definitions.

    Just to review what you are doing - You have a site, constructed, setup and working at www.mydomain.com. On the same 'account' you would like to have a development site, independent of the first, but colocated in the same folders.

    The usual way I do this is to simply create a folder in the top folder where the first site is installed, i.e. where admin, pub, images, email, includes etc folders can be found. It can be called anything, but lets call it /dev. Nice and short and easy to type.

    Install the dev store there, it can be accessed via http://www.mydomain.com/dev/ , and the WS_CATALOG would be just that, and the FS_CATALOG /hsphere/local/home/onpoint/dev

    If you wanted to access it as http://dev.mydomain.com, then at your domain registrar or wherever you define such things, you would need to do a redirect from http://dev.mydomain.com to http://www.mydomain.com/dev

    It is also possible to do this at a 'higher' (lower?) level, where in the same way that www.mydomain.com is a subdomain of mydomain.com, you create a dev.mydomain.com with a separate folder chain. I'm afraid I only know how to do this on the Debian/Ubuntu folder structure, so any advice I give would be dangerous, but it sounds to me like you are trying to do a combination of the two approaches, which is not a good idea.

 

 
Page 1 of 2 12 LastLast

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR