Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    May 2007
    Posts
    1
    Plugin Contributions
    0

    Default Page is unformatted like there's not a template

    I just installed version 1.3.7, and didn't change anything other than the basic setup stuff. Have a look here to see the appearance of the default site.

    What's wrong - does anyone have a suggestion?
    No error messages either.

    Thanks.

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,686
    Plugin Contributions
    11

    Default Re: Page is unformatted like there's not a template

    either a bad path or bad database connect. Check to make sure your config files are correct.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Jun 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: Page is unformatted like there's not a template

    Hi, I have just installed Zen Cart too, and am getting exactly the same problem. I have checked the database settings and they are correct. I think though from an earlier installation of Zen Cart on a server which was running mysql 4 (loads of dots appears when the demo stuff was been setup), the installation script isn't working correctly for PHP 5 + Mysql 5 servers - as the page with all the dots when selecting to upload the demo material didn't appear this time..which makes me think that the uploading and setting of the demo material part of the installation script has a bug in it. In fact I can definitely confirm this to be the case, as I just successfully installed the same script version of Zen Cart on another server.

    The server specs are as follows:


    Server Host: www.japanesewoodblockprint.org (209.85.102.28) Database Host: localhost (127.0.0.1) Server OS: Linux server.tradewebhosting.com 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686 Database: MySQL 5.0.27-standard Server Date: 06/02/2007 17:04:44 Database Date: 06/02/2007 17:04:44 Server Up Time: 17:04:45 up 6 days, 23:31, 0 users, load average: 1.61, 1.84, 1.56
    PHP Version: 5.2.1 (Zend: 2.2.0)

    HTTP Server: Apache



    My site is here:

    http://www.japanesewoodblockprint.org/cart/

  4. #4
    Join Date
    Jun 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: Page is unformatted like there's not a template

    Well I just spent over 6 hours checking and double checking all the configurations (especially those related to template paths) and I can find nothing wrong with the installation. Unless anyone here has any hints on how to get Zen-Cart working within the next 24 hours - using the template (I looked on google, and could find nothing that would help), than alas I will have to dump Zen Cart and find another package which works correctly on our server. Notice I put in some debug information at the top page, which shows that it is referencing the path correctly, just not using the information.

    As mentioned, I know it is a bug in Zen-Cart, as I have successfully installed Zen-Cart elsewhere, but this particular domain cannot be moved to another server alas.

    I hope to get some help soon, other than checking the configurations (which as you can see from my debug info live on the page, is fine).


    Dave

  5. #5
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Page is unformatted like there's not a template

    Assuming that you did followed the installation instructions from the docs folder of this package, your server specs shows that you're using PHP v5.2.x. There are published patches on this forum which make a couple of corrections regarding similar issues (as yours could be included). Did you applied those patches ?

  6. #6
    Join Date
    Jun 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: Page is unformatted like there's not a template

    re: TheOracle.

    Thanks for responding, but alas I couldnt find any patches to apply - not obvious to me alas. However, I am still looking into the issue right now, and I think I know what is going wrong, if not how to fix it.

    in the default template html_header.php file I have modified it as such:

    /**
    * load all template-specific stylesheets, named like "style*.css", alphabetically
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.css');

    echo("<br>Styles: ".$template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'));

    while(list ($key, $value) = each($directory_array)) {
    echo("<br> $value");
    echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n";
    }
    /**


    It is correctly showing the path, but it isn't getting the style sheets, as can be seen in the line echo("<br>$value");

    Any idea please which patch should be used ?

    http://www.japanesewoodblockprint.org/cart/

    Thanks.


    Dave

  7. #7
    Join Date
    Jun 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: Page is unformatted like there's not a template

    In fact, hehe, exactly where are the patches please ? I went to the most obvious location on this website (downloads), but couldnt find any link to patches? Are they on this forum somewhere? Maybe it should be made a bit more obvious on the download page - just a suggestion ?


    Dave

  8. #8
    Join Date
    Jun 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: Page is unformatted like there's not a template

    As I cannot find the location of the Zen-Cart patches (given up for now), going to concentrate on fixing this myself, it hopefully will be quicker than looking through this website. Nice looking website by the way, but not very practical in layout - I had to go to google hehe to find the location of the forum, wouldn't it be nice to have a link called forum on the main Zen-Cart home page? I hope the book is better designed than the website Sorry to nit pick..

    Anyhow I am 99% sure the bug is in the method: template->get_template_part() as that is certainly not returning the style sheet locations. Assuming it is in the main function code.

    Will post my fix, unless I get completely stuck in here. But again, just out of interest, or I do get stumped, what is the url to the patches list ?

    Thanks again,


    Dave

  9. #9
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Page is unformatted like there's not a template

    Quote Originally Posted by maestro2020 View Post
    I just installed version 1.3.7, and didn't change anything other than the basic setup stuff. Have a look here to see the appearance of the default site.

    What's wrong - does anyone have a suggestion?
    Quote Originally Posted by baldwin14 View Post
    Hi, I have just installed Zen Cart too, and am getting exactly the same problem.
    Have you both checked out your permissions and the .htaccess file? This link may help.
    https://www.zen-cart.com/tutorials/i...hp?article=235
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  10. #10
    Join Date
    Jun 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: Page is unformatted like there's not a template

    re: econcepts.

    Thanks for that, but alas I already tried renaming the htaccess file, and it made no difference.

    I am debugging the code now, and will post my adjustments on here.


    Dave

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Is there any addon for page info like this?
    By sharontan in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Dec 2010, 05:57 PM
  2. Replies: 5
    Last Post: 13 Feb 2010, 10:15 PM
  3. new template - why does it not look like classic?
    By Chandy in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Jul 2009, 08:32 PM

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