Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    16
    Plugin Contributions
    0

    Default Admin login gone after new template install

    Zencart version 1.3.8a on GoDaddy hosting with zenflavor free template. The template looks good and is working, however once it was installed I no longer have access to the Admin page. Instead I get a blank page with this:

    Warning: Cannot modify header information - headers already sent by (output started at (full server path deleted by me)/zencart/includes/languages/english/meta_tags.php:1) in (output started at (deleted)/zencart/admin/includes/init_includes/init_templates.php on line 36

    Warning: Cannot modify header information - headers already sent by (output started at (output started at (deleted)/zencart/includes/languages/english/meta_tags.php:1) in (output started at (deleted)/zencart/admin/includes/functions/general.php on line 21

    I didn't know if it was safe to post the full server path, I figured it wasn't needed anyway. Any idea what I can do? I can't get into Admin to choose another template. I have looked everywhere in the forum.

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

    Default Re: Admin login gone after new template install

    Quote Originally Posted by candyt3 View Post
    Warning: Cannot modify header information - headers already sent by (output started at (full server path deleted by me)/zencart/includes/languages/english/meta_tags.php:1) in ...
    Looking up that error message in the FAQ area reveals this article: https://www.zen-cart.com/tutorials/index.php?article=87 ... which shows how you've got blank lines/spaces at the beginning of the filename specified.
    .

    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
    Aug 2009
    Location
    Indiana
    Posts
    16
    Plugin Contributions
    0

    Default Re: Admin login gone after new template install

    Quote Originally Posted by DrByte View Post
    Looking up that error message in the FAQ area reveals this article: https://www.zen-cart.com/tutorials/index.php?article=87 ... which shows how you've got blank lines/spaces at the beginning of the filename specified.
    Thank you for your quick reply. I looked in the new, custom files and did spot a blank line at the beginning of one of the php files. However, correcting it and uploading it didn't change anything.

    I looked in the file referenced in the error
    zencart/includes/languages/english/meta_tags.php:1

    This is an original file that was working before I installed the custom template. I removed the header info from the meta_tags file (not the code, just removed the name of the store and the tagline---because that info is listed in the custom template tpl_header.php file. But that didn't change a thing.

    I am not familiar enough with code toimmediately spot errors, but my software tells me there is an unmatched end tag in both the tpl header and footer files in the custom template. I don't know if it helps to paste it here as it looks like it's text-wrapped now. This is just a small part of code in this file.

    <div id="navSupp">
    <ul>
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
    <?php } ?>
    </ul>
    </div>

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Admin login gone after new template install

    Have you thought about restoring the backup you made just before you installed the new template...

    ... you do have a backup... ?
    20 years a Zencart User

  5. #5
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    16
    Plugin Contributions
    0

    Default Re: Admin login gone after new template install

    Yes, I have a backup. Will try that later this evening.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,378
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Admin login gone after new template install

    Quote Originally Posted by candyt3 View Post
    Thank you for your quick reply. I looked in the new, custom files and did spot a blank line at the beginning of one of the php files. However, correcting it and uploading it didn't change anything.
    Are you sure the upload "took"? If you look at the file again now, is the first line blank? The file needs to begin with just <?php

    Quote Originally Posted by candyt3 View Post
    I am not familiar enough with code toimmediately spot errors, but my software tells me there is an unmatched end tag in both the tpl header and footer files in the custom template.
    If it's referring to a PHP tag, read this FAQ before getting too worried about that: https://www.zen-cart.com/tutorials/i...hp?article=313
    .

    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.

  7. #7
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    16
    Plugin Contributions
    0

    Default Re: Admin login gone after new template install

    Things are going from bad to worse. I think at this point I should delete the store and reinstall. Now I have two more errors in addition to the first two.

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /zencart/admin/includes/functions/general.php:1) in /zencart/includes/functions/sessions.php on line 108

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /zencart/admin/includes/functions/general.php:1) in /zencart/includes/functions/sessions.php on line 108

  8. #8
    Join Date
    Jan 2004
    Posts
    66,378
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Admin login gone after new template install

    Sounds like the same problem ... extra stuff at the beginning of the file ... in this case the general.php file, on line 1.
    .

    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.

  9. #9
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    16
    Plugin Contributions
    0

    Default Re: Admin login gone after new template install

    There were no problems until I installed the custom template, so I am not going to reinstall it.

  10. #10
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    16
    Plugin Contributions
    0

    Default Re: Admin login gone after new template install

    I did restore with a backup, and finally did discover the problem. Someone mentioned using a different program to edit php files with. I had been using Micro$oft Expression Web, and if you are cringing right now, let me explain that it's the software my boss bought for me to use on the company FP enabled website.

    Once I downloaded Notepad++ and used that program to edit files, all the problems disappeared. I went on to create my own template and installed it successfully.

    The strange thing about Expression Web, I was editing carefully in code view but it was making undetectable changes. I don't know what it was doing but it wasn't me. I kept performing the exact steps over and over and there were always errors. Notepad++ made it a breeze. It was a real relief! More than one program was mentioned here on the forum, I just happened to choose the Notepad++.

    Lesson---if the pros on the forum suggest the problem is your software, believe it! Save yourself days of tearing your hair out!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Can't login to admin after upgrade; can login with new install
    By dietcokelemon in forum Upgrading to 1.5.x
    Replies: 14
    Last Post: 9 Feb 2014, 05:16 PM
  2. Cannot login after new install
    By gotlogos in forum General Questions
    Replies: 1
    Last Post: 25 Nov 2010, 08:06 AM
  3. New install gone wrong? Blank store page, no navigation in admin
    By stuffdone in forum Installing on a Linux/Unix Server
    Replies: 14
    Last Post: 2 Jun 2010, 10:32 PM
  4. after install new template my side box all gone
    By andrewmax81 in forum Basic Configuration
    Replies: 0
    Last Post: 15 Nov 2009, 12:18 PM
  5. Admin login gone after cache reset?
    By teager in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 8 Sep 2008, 09:25 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