Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    May 2013
    Location
    Forida
    Posts
    14
    Plugin Contributions
    0

    Default Error with getresponse module

    I can't find the answer to this, but I am hoping someone can help.

    I uploaded the GetResponse module to my Zen Cart. I added the ob_start(); and ob_end_flush(); to the modules.php file and when I try to go to install it through the Module>Total_Orders I get this error message...

    Parse error: syntax error, unexpected '{' in /home/.../...../.../admin/modules.php on line 138 (the ... are to protect my path)

    When I delete the '{', I get another error saying more syntax errors...(I will put them here if need be)

    The problem is I don't know if the error is coming from the core Zen Cart files or the template I'm using. It would be great if someone could let me know if I need to contact the author of the template or not.

    If it's a core file problems, it would be nice if someone could tell me how to fix it.

    The module I'm using is coming from GetResponse at http://connect.getresponse.com/integ...encart-plug-in They have all the instructions on this page including the code to change the modules.php file...

    Zen cart version is 1.5.1

    Thanks for any help...

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Error with getresponse module

    Commercial mods and services aren't generally supported here. Have you asked the getresponse people about the issue ?

  3. #3
    Join Date
    May 2013
    Location
    Forida
    Posts
    14
    Plugin Contributions
    0

    Default Re: Error with getresponse module

    Quote Originally Posted by stevesh View Post
    Commercial mods and services aren't generally supported here. Have you asked the getresponse people about the issue ?
    I did ask them...they said it was a Zen Cart error, not the module...

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Error with getresponse module

    You mentioned a code change to the module.php file.
    The error reported is in the module.php file.

    Coincidence or an error made with the changes?

    You decide.

  5. #5
    Join Date
    May 2013
    Location
    Forida
    Posts
    14
    Plugin Contributions
    0

    Default Re: Error with getresponse module

    Quote Originally Posted by RodG View Post
    You mentioned a code change to the module.php file.
    The error reported is in the module.php file.

    Coincidence or an error made with the changes?

    You decide.
    Yea, I only get the error when I put the code (from GetResponse) in the file (modules.php). However, on the admin side when I delete the code it says "the Getresponse module can't load due to missing language"

    I'm clueless as to what that means other than the obvious.

    So, is the file, modules.php, a core file or does it come from the theme?
    Last edited by jacksbooks; 17 Apr 2014 at 11:53 PM. Reason: missed a word

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Error with getresponse module

    All admin files are core files which can't be overridden in a custom template.

  7. #7
    Join Date
    May 2013
    Location
    Forida
    Posts
    14
    Plugin Contributions
    0

    Default Re: Error with getresponse module

    Quote Originally Posted by stevesh View Post
    All admin files are core files which can't be overridden in a custom template.
    ok, thanks...So, how can I fix this problem?

    This is from the admin side...
    ERROR: module not loaded due to missing language file: /home/content/.../.../.../.../includes/languages/english/modules/order_total/ot_getresponse.php

    This is the error I get when I put the code in from GetResponse.
    The error "Parse error: syntax error, unexpected '{' in /.../.../.../.../admin/modules.php on line 138"

    seems to be looking for an end of statement, but how do I find out which statement? Also, what language is it looking for?

  8. #8
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Error with getresponse module

    I've followed the link you supplied and think I've identified the cause of the syntax error. It's in the line added to module.php that reads
    src=”includes/getresponse/ot_getresponse_campaign.js</script>’;

    There should be a " > after the .js

  9. #9
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Error with getresponse module

    Please ignore previous reply. It now seems that the "> is only missing when viewed with some browsers, so it may not apply.

    Code:
    <!– GetResponse Plugin –>
    
    
    <?php
    if (MODULE_ORDER_TOTAL_GETRESPONSE_STATUS == ‘true’) {
    echo '<script type=”text/javascript” src=”includes/getresponse/jquery-1.7.1.min.js”></script>';
    if ($_GET['module']==’ot_getresponse’ AND $_GET['action']==’edit’) {
    echo '<script type=”text/javascript” src=”includes/getresponse/ot_getresponse_campaign.js”></script>';
    }
    else if ($_GET['module']==’ot_getresponse’ AND $_GET['action']!=’remove’) {
    echo '<script type=”text/javascript” src=”includes/getresponse/ot_getresponse_export.js”></script>';
    }
    }
    ?>
    <!– GetResponse Plugin –>
    I did note that the single quote in some of the lines have been replaced with backticks though (may also be browser related), so to avoid this problem, cut and paste the code above.

    Cheers
    RodG

  10. #10
    Join Date
    May 2013
    Location
    Forida
    Posts
    14
    Plugin Contributions
    0

    Default Re: Error with getresponse module

    Yes, that didn’t help, thanks anyway…the thing is... the error is on line 138 and that’s before the GetResponse code (above).

    The code that’s causing the problem, I think, is the following:
    - in first line, after ‘ <?php ‘ tag add:
    ob_start();
    - in last line, before ‘ ?> ‘ tag add:
    ob_end_flush();

    Perhaps I’m putting it in the wrong place. Does it mean at the end of the file or the end of the first part of the php before the html code?

    You can find the instruction here -- http://connect.getresponse.com/integration/zencart-plug-in

    So far, even GetResponse is not being helpful. They just keep redirecting me back to the instruction page, assuming I’m not following directions…

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 usort error with USPS module?
    By cjmarley in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 20 Aug 2012, 06:46 PM
  2. GetResponse autoresponder
    By Nellie in forum General Questions
    Replies: 7
    Last Post: 23 Dec 2010, 12:11 AM
  3. Error with Simple Create Order module
    By gamestuff in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Jun 2009, 05:15 PM
  4. error with cloned shipping module
    By SailorDraco in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 25 Sep 2008, 03:56 AM
  5. Error with cloned flat module
    By earmsby in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 29 Nov 2006, 04:00 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