Results 1 to 10 of 2161

Hybrid View

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

    Default Re: Simple Google Analytics - Support

    No problem. I just took a previous version and upgraded it with a few new additions and added some more detailed instructions.

    Again, glad you like it, and thanks for using it. I enjoy doing my part to help the cart advance forward. I try to keep the instructions for all my mods as "non-technical" as possible to aid in installation (although that can be tough at times).
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  2. #2

    Default Re: Simple Google Analytics - Support

    I am creating an order form (using Quick Order Module) for Firehouse Subs Restaurants to order all of their hot sauces on our approved list. however, I have already used this module to create an quick order form for all of our customers to use. I modified the filenames, extra datafiles, language files, template files, and header.php from "quick_order" to "fhs_quick_order" and QUICK_ORDER to "FHS_QUICK_ORDER" in their respective places and the module will work and add items to the cart. however I am receiving some errors at the bottom of the page that I cannot figure out.

    Warning: main(includes/templates/classic/fhs_quick_order//google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180

    Warning: main(includes/templates/classic/fhs_quick_order//google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180

    Fatal error: main() [function.require]: Failed opening required 'includes/templates/classic/fhs_quick_order//google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180

    My first instinct was to check my install of google analytics, but everthing seems fine there and I am not getting any other errors on any other pages. Can you please help me? The forms work, but I am slightly embarased by the errors on the bottom of the page. You can see them here:
    http://hotshotshotsauce.com/index.ph...hs_quick_order

    I am running version 1.1.1 of the google analytics module
    Matthew Heald
    All Hot N' Bottled - Retail
    http://hotnbottled.com

    Hot Shots Hot Sauce - Wholesale
    http://hotshotshotsauce.com

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

    Default Re: Simple Google Analytics - Support

    The error you are getting means you are missing a file (or have placed it in the wrong location). That is what the "no such file or directory" part means.

    As far as your exact error:

    Warning: main(includes/templates/classic/fhs_quick_order//google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180
    Check the two parts I have listed in red.

    1) You have a double slash in the include portion. You should only have one slash

    2) If you are not using the classic template for your web store, then that would explain why it says "no such file or directory". The link in red points to the classic folder.

    If you use a custom folder, you'll want to make sure you installed the analytics include there.

    Once you get the include portion into the correct "tpl_main_page.php", it should solve the rest of your errors. They all stem from the same thing.

    My advice would be to go back and make sure you uploaded the files to the correct locations.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  4. #4
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Okay Team?....what did I do wrong?
    Google Analytics works fine...BUT now I get this popup all the time stating that I'm about to view secure and unsecure pages..... how can I stop this?

    www.lacefrontsecrets.com

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

    Default Re: Simple Google Analytics - Support

    That actually doesn't have anything to do with Google Analytics (the contribution), or any other contribution for that matter. You are seeing it because your browser is configured to see it (read on to see what I mean).

    You probably are using Firefox browser to view it right? Well, the newest version of Firefox came built in with Google's "Safe Browsing" extension. Although you may not have updated your browser recently, it probably updated itself when you restarted it. When it updated, you got the new Google extension with it.


    Here are a few links that talk about it.

    http://knaddison.com/technology/sb-s...-name-mismatch

    http://www.howtogeek.com/howto/inter...ng-in-firefox/


    The best thing you can do is to download the following Firefox add-on and install it. Then when you get one of these annoying messages (and providing you actually DO trust the site listed in the box), then you simply checkmark the "don't show me" (or some similar wording) to not show it for that again.

    https://addons.mozilla.org/en-US/firefox/addon/2131

    Hope that helps. :)


    By the way, you may want to check the layout of your site on various resolutions and computers. It is completely "out of whack" on my computer here -- especially the navigational elements.
    Last edited by econcepts; 25 Aug 2007 at 12:32 AM. Reason: added content
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  6. #6
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I'm using Internet Explorer.

    Thanks for letting me know about my settings. I'll check on different resolutions. what are yours set too because no one has said a word about the layout....It looks fine on my laptop and on my home computer.

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

    Default Re: Simple Google Analytics - Support

    It could be that the Google Safe Search option is with IE as well. I only could refer you to what I have heard on the Internet about that message (usually with Firefox).

    I am viewing the site on Firefox (newest version) and here is what I see:
    Attached Images Attached Images  
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  8. #8
    Join Date
    Jul 2006
    Posts
    50
    Plugin Contributions
    2

    Default Re: Simple Google Analytics - Support

    I found this post because I was having the same problem with the quick order page and I know what is happening. Look below for my solution.

    Quote Originally Posted by econcepts View Post
    The error you are getting means you are missing a file (or have placed it in the wrong location). That is what the "no such file or directory" part means.

    As far as your exact error:

    Check the two parts I have listed in red.

    1) You have a double slash in the include portion. You should only have one slash

    2) If you are not using the classic template for your web store, then that would explain why it says "no such file or directory". The link in red points to the classic folder.

    If you use a custom folder, you'll want to make sure you installed the analytics include there.

    Once you get the include portion into the correct "tpl_main_page.php", it should solve the rest of your errors. They all stem from the same thing.

    My advice would be to go back and make sure you uploaded the files to the correct locations.
    Quote Originally Posted by mbheald View Post
    I am creating an order form (using Quick Order Module) for Firehouse Subs Restaurants to order all of their hot sauces on our approved list. however, I have already used this module to create an quick order form for all of our customers to use. I modified the filenames, extra datafiles, language files, template files, and header.php from "quick_order" to "fhs_quick_order" and QUICK_ORDER to "FHS_QUICK_ORDER" in their respective places and the module will work and add items to the cart. however I am receiving some errors at the bottom of the page that I cannot figure out.

    Warning: main(includes/templates/classic/fhs_quick_order//google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180

    Warning: main(includes/templates/classic/fhs_quick_order//google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180

    Fatal error: main() [function.require]: Failed opening required 'includes/templates/classic/fhs_quick_order//google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180

    The file is not placed in the wrong area. It is in template_default/google_analytics/ folder, and with the override system of ZC it doesn't need to be copied to any other template unless you want to make changes to the code in the file.

    The problem is with the installation instructions where it states to put in this line in the tpl_main_page.php page

    Code:
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    the problem is in the use of just ".php" it needs to be changed to 'google_analytics.php' to work properly on the quick order form. I figured this out by searching for the get_template_dir function and found other places where it was used and did use (always used) the full name of the file needed.

    the way that the get_template_dir works is that it looks to see if the file exists in this order
    1)current_template/currentpage/ folder
    2)template_default/currentpage/ folder
    3)current_template/$template_dir(google_analytics)/ folder
    4)if nothing else matches then return template_default/$template_dir(google_analytics)

    with the instructions the way they currently are in the analytics contributions, the get_template_dir will return true at number 2 and returns template_default/quick_order/ because file_exists says that the folder is valid since an improper filename was given and just checks the directory, which then falls back to the tpl_main_page and gets concat'd with "google_analytics.php" which isn't found.

    So change ".php" to 'google_analytics.php' for it to work properly all the time.

    Hope this helps.

 

 

Similar Threads

  1. v150 Simple Google Analytics .sql error !
    By Miff in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Feb 2012, 11:33 PM
  2. Simple Google Analytics-not working
    By RobertG in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Nov 2010, 06:07 PM
  3. Simple (From Google) Analytics Install
    By DagLindt in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 May 2009, 10:46 PM
  4. Simple google analytics- help
    By Pet Herbal Remedies in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Oct 2008, 10:37 PM
  5. Simple Google Analytics not working
    By jvanree in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 May 2008, 03:46 AM

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