Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2006
    Posts
    120
    Plugin Contributions
    0

    Please help with error message

    Hello,

    Can someone help me figure out what happened here?

    http://rastaheadwraps.com/index.php?main_page=index

    This warning is repeated many times -
    "Warning: strstr(): Empty delimiter. in /home/nilajah/public_html/includes/classes/template_func.php on line 59"

    Here is the code from line 55 to 67

    Code:
      }
      function file_exists($file_dir, $file_pattern, $debug=false) {
        $file_found = false;
        if ($mydir = @dir($file_dir)) {
          while ($file = $mydir->read()) {
            if ( strstr($file, $file_pattern) ) {
              $file_found = true;
              break;
            }
          }
        }
        return $file_found;
      }
    }

  2. #2
    Join Date
    Jun 2006
    Posts
    120
    Plugin Contributions
    0

    Default Re: Please help with error message

    OK, scratch that, I figured it out!

  3. #3
    Join Date
    Oct 2005
    Posts
    20
    Plugin Contributions
    0

    Default Re: Please help with error message

    Could you please post what you did to correct this. I'm having that exact same problem and I have no clue how to fix it.

    Thanks a bunch!

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Please help with error message

    What have you done recently with respect to templates on your site?
    .

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

    Default Re: Please help with error message

    Actually I had removed 'logo.gif' from
    Code:
    define('HEADER_LOGO_IMAGE', 'logo.gif');
    in line 25 of /includes/languages/english/classic/header.php - I probably should have tried removing the whole line.

    Solution: replace logo.gif with a transparent blank gif file of the same pixel size.

  6. #6
    Join Date
    Jul 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: Please help with error message

    I think a better solution would be to remove the actual image reference from the template file. Why waste BW loading an invisible gif?

  7. #7
    Join Date
    Jun 2006
    Posts
    120
    Plugin Contributions
    0

    Default Re: Please help with error message

    I totally agree. I am just a dummy really, please don't do what I do.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Please help with error message

    NOTE: never remove a define ... always change what it is defined as or customize the code with the templates and overrides ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Please help with an error message.
    By kasnah36 in forum General Questions
    Replies: 2
    Last Post: 15 Oct 2008, 02:45 AM
  2. help with error message please!!
    By jaredbbauer in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 9 Jul 2007, 08:53 PM
  3. Help with Error Message Please!
    By mdesigns in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 3 Jul 2007, 04:42 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