Page 1 of 2 12 LastLast
Results 1 to 10 of 2161

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Location
    las vegas
    Posts
    18
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - errors

    I have read the thread and posts that address this issue, but can't get past it. Using Zen 1.3.7 Site is: http://hd2o.tv

    Instructions followed, tpl_main_page.php code was added.
    I get at the bottom on the main page:

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

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

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

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

    Line 180 must be the added code?
    Also, google tells me it is not active - confirming the errors. "Tracking Not Installed"
    Any help is greatly appreciated beyond the genius of writing the code!
    Regards,
    Paul

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

    Default Re: Simple Google Analytics - errors

    Quote Originally Posted by hd2o View Post
    I have read the thread and posts that address this issue, but can't get past it. Using Zen 1.3.7 Site is: http://hd2o.tv

    Instructions followed, tpl_main_page.php code was added.
    I get at the bottom on the main page:

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

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

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

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

    Line 180 must be the added code?
    Also, google tells me it is not active - confirming the errors. "Tracking Not Installed"
    Any help is greatly appreciated beyond the genius of writing the code!
    Regards,
    Paul
    Are you using a custom template or not? In one error, it references the "template_default" directory, and in the other, it references a "CUSTOM" directory.

    If you are using a custom directory, then make sure you put ALL overrides in folders associated with that custom template. So, for example, if you are using a custom template and that directory is called "CUSTOM" (as stated in your error message) then the Google Code needs to be installed in the /includes/templates/CUSTOM/common/tpl_main_page.php file. (Not in the one located within the "template_default" directory.)

    Likewise, the directory "google_analytics" should be uploaded to /includes/templates/CUSTOM/google_analytics (NOT /includes/templates/template_default/google_analytics).

    Google is unable to verify the code because there is no tracking code present due to the incorrect placement of the files on your end. Once you get them in the correct locations as indicated here, it should all be fine.

    You'll need to have Google go back out and check the location of the tracking code to verify it once you have everything in place.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  3. #3
    Join Date
    Oct 2007
    Location
    las vegas
    Posts
    18
    Plugin Contributions
    0

    Default custom temp yes

    I am using a custom temp.
    I'll hack it and let you know.
    thank you tons
    paul

  4. #4
    Join Date
    Oct 2007
    Location
    las vegas
    Posts
    18
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - errors

    Quote Originally Posted by econcepts View Post
    Are you using a custom template or not? In one error, it references the "template_default" directory, and in the other, it references a "CUSTOM" directory.

    If you are using a custom directory, then make sure you put ALL overrides in folders associated with that custom template. So, for example, if you are using a custom template and that directory is called "CUSTOM" (as stated in your error message) then the Google Code needs to be installed in the /includes/templates/CUSTOM/common/tpl_main_page.php file. (Not in the one located within the "template_default" directory.)

    Likewise, the directory "google_analytics" should be uploaded to /includes/templates/CUSTOM/google_analytics (NOT /includes/templates/template_default/google_analytics).
    I thought the directory was it - Moved 'Simple_Google_Analytics' into CUSTOM directory, but no. I've reset the file from backup so it's not an error. Tomorrow I'll try looking at it again.
    regards,

  5. #5
    Join Date
    Nov 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Can someone tell me how to UNINSTALL this mod?
    thanks
    Liz

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by lizh View Post
    Can someone tell me how to UNINSTALL this mod?
    thanks
    Liz
    Providing you are using the Simple Google Analytics module, do the following (see urls below):

    http://www.zen-cart.com/forum/showpo...&postcount=336

    http://www.zen-cart.com/forum/showpo...&postcount=338
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

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

    Default Re: Simple Google Analytics - errors

    Quote Originally Posted by hd2o View Post
    I thought the directory was it - Moved 'Simple_Google_Analytics' into CUSTOM directory, but no. I've reset the file from backup so it's not an error. Tomorrow I'll try looking at it again.
    regards,
    Just a quick FYI. There is no directory called "Simple_Google_Analytics" in the install. Not sure where that came from, but it shouldn't exist on your end.

    My recommendation would be to go back and start over from the beginning. I am pretty sure it is an issue with the files not being copied to the correct directory. Again, it looks like you have copied them to 2 different directories (1 being the custom and the other being the "default').

    That would definitely cause problems as the overrides system in Zen would not be able to find the files needed to make it all work.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  8. #8
    Join Date
    Oct 2007
    Location
    las vegas
    Posts
    18
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - errors

    Hi Eric, I appreciate your time.
    When I unzipped the download, everything was in a directory called "Simple_Google_Analytics". I moved that entire folder to the server. What you're saying is that folder should not exist, and the interal files should be in: templates/CUSTOM but 'without' the outside directory? (I'll also scan for duplicates in template_default)
    If true, I will have: templates/CUSTOM/admin (folder) along with the other contents GPL.txt and includes (folder), the 2 .sql patches, and readme_instructions.txt? I'd be dumping the outermost directory.
    I added the code to temp_default/common/tpl_mail_page.php to test that file's effect. It has been removed.
    20 Ways to Increase Sales is awesome! The Analytics workbook is certainly next.
    Paul

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

    Default Re: Simple Google Analytics - errors

    Quote Originally Posted by hd2o View Post
    Hi Eric, I appreciate your time.
    When I unzipped the download, everything was in a directory called "Simple_Google_Analytics". I moved that entire folder to the server. What you're saying is that folder should not exist, and the interal files should be in: templates/CUSTOM but 'without' the outside directory? (I'll also scan for duplicates in template_default)
    If true, I will have: templates/CUSTOM/admin (folder) along with the other contents GPL.txt and includes (folder), the 2 .sql patches, and readme_instructions.txt? I'd be dumping the outermost directory.
    I added the code to temp_default/common/tpl_mail_page.php to test that file's effect. It has been removed.
    20 Ways to Increase Sales is awesome! The Analytics workbook is certainly next.
    Paul
    Paul,

    You are correct, the "Simple_Google_Analytics" directory that comes with the unzipped package should NOT be uploaded as is to your store. That is just the "holding directory" for all the files.

    You want to unzip that, then open up the "includes" folder included in the contribution. Rename any directory that says "your_template" to "CUSTOM" (as this is what you said is the name of your personal custom template directory) then upload the entire contents of both the admin and the includes AS IS (just upload and go) to your store.

    Run the SQL patch and presto. All set. It should state that in the readme as well in case you need a refresher.

    Make sure you upload both the admin and the includes directory to your ROOT folder and AS IS (don't try to move admin under a "custom" directory ... that won't work as the Admin section of Zen Cart does not yet provide the ability to over ride files as does the catalog side.

    Hope that helps.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  10. #10
    Join Date
    Oct 2007
    Location
    las vegas
    Posts
    18
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - errors

    Eric,
    Still one more set of questions for you. (Got the your_template changed to CUSTOM) The ROOT is 'public_html'? or is ROOT outside of that? Inside 'public_html' is a directory called 'includes' - the Zen Cart stuff. The zen admin folders are in 'public_html' because my store is the sites main page, but admin was renamed for security, so no problem with admin. ?How do I avoid 2 'includes' directories in 'public_html'? Can admin and includes reside outside 'public_html'?
    Paul

 

 
Page 1 of 2 12 LastLast

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