Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2006
    Posts
    4
    Plugin Contributions
    0

    Error when changing store location...HELP!

    I attempted to change the location of my client's store from the /store/ directory to the main and caused all kinds of errors. So, I tried to move it back to troubleshoot but have been unable to get it working again with my customized application. At best, the site now pulls up a default template with the never-ending error of:

    Warning: strstr() [function.strstr]: Empty delimiter. in /home/.graystoke/rolyat/mardigourds.com/store/includes/classes/template_func.php on line 59

    I know that this suggests an undefned string but this was the error generated when I solved the missing tpl_main_page.php issue. I only made changes to the config files when I attempted to move the directory so I'm unsure why my custom template is failing [although I'm a new Zenner and know that some of my override folders could use help].

    Zen Cart Version: 1.3.0.1
    PHP v: 5.1.2
    My SQL: 5.0.18
    Linux on DreamHost

    Any help is greatly appreciated!

    Thanks

  2. #2
    Join Date
    Sep 2006
    Posts
    4
    Plugin Contributions
    0

    Lost Custom Template

    Update from last post. I have searched and compared files to no avail.

    Still receiving the following error::

    Warning: strstr() [function.strstr]: Empty delimiter. in /home/.graystoke/rolyat/mardigourds.com/store/includes/classes/template_func.php on line 59


    My store was completely customized and ready to go and now I only get the default.

    PLEASE provide any thoughts. See versions from previous post.

    Thanks!

  3. #3
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Error when changing store location...HELP!

    Warning: strstr() [function.strstr]: Empty delimiter. in /home/aspenshop/www/www/includes/classes/template_func.php on line 59

    (ZenCart 1.3.0.2)
    I just encountered the same error yesterday morning after creating the folders for a custom template. I copied the files mentioned in the FAQ and Wiki to these folders. I had previously modified the classic template to my needs before learning about the overrides features. (I think the only changes were in the stylesheet.css and some image files.) I was trying to get the templates cleaned up in preparation for upgrading to v1.3.5.

    Everything seemed fine until I went to admin and selected the custom template folder. At first it appeared nothing changed (as expected). Then I reselected the classic template. After doing routine product updates with the admin panel I finished and went on the browser to verify that the site was up and running okay. That's when I first noticed the numerous repetitions of the error message on the index.php page.

    I tried to put up a "down for maintenance" status from the admin panel but the maintenance page also displayed the error warning. I decided to put up an index.html page with "down for maintenance" and temporarily renamed index.php to _index.php.

    I am currently waiting on my host to restore from a backup.

    I noticed a couple of other postings in the forums with this same problem, but no fixes posted. Someone thought the problem might be in the template_info file.

    Here's the code from my template_info.php files for the classic, my custom and the default templates:

    classic
    <?php
    $template_name = 'Classic Template';
    $template_version = 'Version 1.3.0';
    $template_author = 'Zen Cart Team (c) 2006';
    $template_description = 'This template set is designed to be easily modified using only the style sheet to change colors, fonts, and the store logo. Three images are required; logo.jpg, header_bg.jpg, and tile_back.jpg.';
    $template_screenshot = 'scr_template_default.jpg';


    custom
    <?php
    /**
    * Template Information File
    * @copyright Copyright 2006 Aspen Shops LLC
    */
    $template_name = 'aspenshops_custom';
    $template_version = 'Version 1.0';
    $template_author = 'Ron Lee (c) 2006';
    $template_description = 'This template set is designed to be easily modified using only the style sheet to change colors, fonts, and the store logo. Three images are required; logo.jpg, header_bg.jpg, and tile_back.jpg.';
    $template_screenshot = '';
    ?>

    default template
    <?php
    /**
    * Template Information File
    *
    * @package templateSystem
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: template_info.php 2306 2005-11-05 21:34:28Z wilt $
    */
    $template_name = 'Default Template';
    $template_version = 'Version 1.0';
    $template_author = 'Zen Cart Team (c) 2003';
    $template_description = 'This template set is designed to be easily modified using only the style sheet to change colors, fonts, and the store logo. Three images are required; logo.jpg, header_bg.jpg, and tile_back.jpg.';
    $template_screenshot = 'scr_template_default.jpg';
    ?>

    Anybody got some ideas?

  4. #4
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: Error when changing store location...HELP!

    @AdobeFriedMan:

    Check your configure.php files - you have your domain name in your server file path:

    /home/.graystoke/rolyat/mardigourds.com/store/

  5. #5
    Join Date
    Sep 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Error when changing store location...HELP!

    Thanks, Pixxi. I just checked both and don't see the reference you listed below but I have been at this for 18 hours. Exactly which config file did you pull that from?

  6. #6
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: Error when changing store location...HELP!

    From your original post:

    Warning: strstr() [function.strstr]: Empty delimiter. in /home/.graystoke/rolyat/mardigourds.com/store/includes/classes/template_func.php on line 59
    Unless your server is set up to use the domain name as the name of your document root in the server file path?

  7. #7
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: Error when changing store location...HELP!

    Your site also seems to have an image define missing for your main logo - looking at the view source of your index page:

    PHP Code:
     ... <img src="includes/templates/template_default/images/" alt="" 
    Take a look in includes/languages/english/(your template)/header.php, you should have:

    PHP Code:
    define('HEADER_LOGO_IMAGE''logo.gif'); 
    If you have a blank define, ie.:

    PHP Code:
    define('HEADER_LOGO_IMAGE'''); 
    that can be a cause of the error.

  8. #8
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Error when changing store location...HELP!

    Warning: strstr() [function.strstr]: Empty delimiter. in /home/aspenshop/www/www/includes/classes/template_func.php on line 59

    The problem in my case was in the database.

    I tried restoring web files from a backup created before the error appeared and still had the problem. Then I (reluctantly) restored the database from 24 hours earlier and the problem cleared. Of course I had to manully reconstruct the sales records for the past 24 hours.

    I don't know where in the database data the problem occurred.

    Ron

 

 

Similar Threads

  1. v154 Error when changing order status
    By delia in forum General Questions
    Replies: 4
    Last Post: 14 Jan 2016, 07:00 PM
  2. v139h Issue with Store Locator adding db location to store website urls
    By Painted Hills NB in forum General Questions
    Replies: 8
    Last Post: 22 Aug 2012, 03:29 AM
  3. v150 Error when changing to a catagory
    By sam123jo02 in forum General Questions
    Replies: 2
    Last Post: 26 Feb 2012, 12:40 AM
  4. Error changing downloads folder location
    By jedpak in forum General Questions
    Replies: 3
    Last Post: 23 Sep 2010, 09:58 PM
  5. Loosing Store Settings when changing templates
    By bearaman in forum General Questions
    Replies: 1
    Last Post: 1 May 2007, 05:04 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