Jump to content
thirty bees forum

yaniv14

Members
  • Posts

    580
  • Joined

  • Last visited

  • Days Won

    24

Posts posted by yaniv14

  1. So basically your original problem was not related to nochex module but was a problem with Knowbands Super checkout module?

    Now that you disabled supercheckout module both your payment modules works fine?

  2. If Paypal module throw the same error than I guess the error caused by the supercheckout module.

    Try to disable the module and revert back to standard TB checkout

  3. can you put "9999" in "Will be applied when the weight is < "

    and also mark "All" and put "0" in the amount column, which will mark all continents and add "0" amount to them.

    and than save and see if it works

  4. This error has nothing to do with newer version of TB.

    this is related to PHP7+.

    the message is very clear about the reason.

    look at file: modules/iemt/controllers/front/validation.php on line 51.

    this function require 1 argument which is not passed.

    this function exists on file: modules/iemt/iemt.php at line 237, now i can't tell much about what is expected for $old_cart. but i guess you can try to pass the cart from validation.

     so try changing line 51 in validation.php file to: $this->module->execPayment($cart);

    if you can show the rest of the code after line 247 it will be better.

    • Like 2
  5. On 1/1/2020 at 12:38 AM, AndyC said:

    can you check if the file really exists?

    nochex/config.xml

    maybe you have it as: Config.xml with capital "C"

     

  6. create a file "ContactController.php" and place it inside "override/controllers/front" folder.

    the file should look like this.

    <?php
    class ContactController extends ContactControllerCore {
    	public function postProcess() {
    		$email_address = Tools::convertEmailToIdn(trim(Tools::getValue('from')));
    		$emailParts = explode( '@', $email_address );
    		$emailDomain = end($emailParts);
    		if ($emailDomain == 'qq.com') {
    			header('HTTP/1.1 403 FORBIDDEN');
      			header('Status: 403 No China here!!!');
      			header("Location: https://www.qq.com/");
    		}
    		return parent::postProcess();
    	}
    }

    i think it should work, don't have time to test it right now.

    you should delete cache/class_index.php as well

    • Like 1
  7. If all attacks comes from the same ip address than you can block the ip address on your nginx/apache server block.

    if not and you need to block it on the code level, than you should make an override to ContactController postProcess function and check the email domain and block it there.

    $emailParts = explode( '@', $email_address );
    
    $emailDomain = end($emailParts);
    
    if ($emailDomain == 'qq.com') {
    	// do something
    }

     

  8. All these speed test tools. Gmetrix, Google page speed, YSlow...... are pure garbage that all they do is provide job for SEO companies.

    I never run those tests on my sites.

    You can tell if your site is running fast or not.

    btw: do you know how much loading time you will save with the compress version (61 bytes less)? you will save about 0.000000000000001 second.... so you should defiantly go for it 🙂

    • Like 1
×
×
  • Create New...