Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2006
    Posts
    21
    Plugin Contributions
    0

    Default default template error after upgrading to ZC 1.3.0.2

    Hi everyone!
    I just tried to update my ZC to the latest 1.3.0.2, i had two problems so far:

    1. i kept not getting the stylesheet.css in the admin pages, and the layout was all over.. i kindda went through that by just "killing" the .htacces file in the admin/includes directory.. (well renaming it), i don't know why but this works..(is there any security problem with this?)

    2. I can't get the default layout to work, whenever i chhange in the admin tool to the default layout i get this error...

    Parse error: syntax error, unexpected '=', expecting T_VARIABLE or '$' in /Library/WebServer/Documents/zen-cart/includes/templates/template_default/common/main_template_vars.php on line 20

    The strange thing is that i don't get that error in the layout i'm working now which is fine.. any ideas why this is happening?

    Thanks!!

    Enric

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: default template error after upgrading to ZC 1.3.0.2

    1. yes, there may be potential security risks. You should work with your hosting company to ensure that all the protections supplied in the .htaccess file are properly reproduced in other ways on your hosting account. Your host will have to help you with that.

    2. Sounds like you made a typo while merging contents in the file specified:
    /includes/templates/template_default/common/main_template_vars.php
    Probably best to re-upload the original file from the new version.
    .

    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
    Jun 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: default template error after upgrading to ZC 1.3.0.2

    Thanks for your quick response Dr. Byte!!!

    I already replaced the file with the new one of version 1.3.0.2 but still get the same result.. what bugs me is that i don't get this error when i change in the admin panel the template from default to the one i'm working in, i don't get any problems...

    About he .htaccess file in admin/includes... i get this error from apache if i have the .htaccess file activated:
    ---------------
    [Thu Jun 29 09:08:16 2006] [alert] [client 192.168.1.146] /Library/WebServer/Documents/zen-cart/admin/includes/.htaccess: order not allowed here, referer: http://192.168.1.146/zen-cart/admin/...=2&action=save
    ----------------

    I should have said that before i'm running the zeb-cart on local in a macOsX Apache Server, i dunno i f this has any relevance...

    Thanks

    Enric

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: default template error after upgrading to ZC 1.3.0.2

    Quote Originally Posted by Enric
    .htaccess: order not allowed here
    This would suggest that your webserver is either expecting .htaccess content to be set up differently. Likely it desires that the directives in the .htaccess be included much earlier in its processing of apache configuration plans.

    While your site is not on a live public server, disabling the .htaccess files should be fine.
    .

    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 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: default template error after upgrading to ZC 1.3.0.2

    Quote Originally Posted by Enric
    2. I can't get the default layout to work, whenever i chhange in the admin tool to the default layout i get this error...

    Parse error: syntax error, unexpected '=', expecting T_VARIABLE or '$' in /Library/WebServer/Documents/zen-cart/includes/templates/template_default/common/main_template_vars.php on line 20

    The strange thing is that i don't get that error in the layout i'm working now which is fine.. any ideas why this is happening?
    I already replaced the file with the new one of version 1.3.0.2 but still get the same result.. what bugs me is that i don't get this error when i change in the admin panel the template from default to the one i'm working in, i don't get any problems...
    This would suggest that these 2 files are not consistent:
    /includes/templates/template_default/common/main_template_vars.php
    /includes/templates/YOURTEMPLATE/common/main_template_vars.php

    or perhaps something that's referencing them may be not quite right after your merge
    .

    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.

 

 

Similar Threads

  1. Customer gets HTTP 500 error after order is placed -- after upgrading
    By Arunachala in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 21 Jun 2011, 08:28 PM
  2. Can't select template in admin after upgrading
    By KarlH in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 14 Nov 2010, 11:25 PM
  3. Forgot Password Page error after upgrading to 1.3.9g plus one more error
    By starruby in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 26 Oct 2010, 08:48 AM
  4. State is Showing as 3 Digit Numbers after upgrading template
    By lanpartyjoe in forum General Questions
    Replies: 9
    Last Post: 27 Jul 2010, 08:00 PM
  5. Layout problems after change of default template width.
    By pol-uk in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Mar 2010, 11:04 PM

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