Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cory_C

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Cory_C

  1. We use Sucuri for malware prevention on our website.  I have been back in forth with them and our site host as this is most likely because of the Sucuri firewall protection where the requests I receive at the hosting server is from firewall range of IP's (USER -->>> FIREWALL -->>> SERVER).

    Sucuri support is asking me:   "Have you checked with the module developer yet to see if they are familiar with working with reverse proxy systems in regards to seeing the correct user IP address?"

  2. Thank you for creating this contribution!

     I had two issues that I've not been able to figure out after installing.

    1)  When inserting the required code into "catalog/includes/template_bottom.php", the left column and right column of my website disappears.  I removed the code for now.

    maximuminternational.com

    2)  Also regarding the required code, I get a syntax error parse error unexpected '[' result from the last line of this code that is inserted into the template_bottom.php file (just above </body> at the end of the file).

     

    <?php
          // SQUARE INSTALLATION 
          if (isset($payment) && $payment == MODULE_PAYMENT_SQUARE_TEXT_CODE) {
            
            $applicationID_query = tep_db_query("select configuration_value from configuration where configuration_key = 'MODULE_PAYMENT_SQUARE_APPLICATION_ID'");
            $applicationID = tep_db_fetch_array($applicationID_query)['configuration_value'];

    I changed:

    $applicationID = tep_db_fetch_array($applicationID_query)['configuration_value'];

    To this:

    $applicationID = tep_db_fetch_array($applicationID_query['configuration_value']);

    Or this:

    $applicationID = tep_db_fetch_array($applicationID_query('configuration_value'));

    The error changes to syntax error parse error unexpected ';' for the same line of code.  I don't write code, so I don't know where to go from here, but think I could follow instructions to get this working.

    I'm using osCommerce v2.3.3, PHP 5.3.29

    Cory

×
×
  • Create New...