Jump to content

mustardman

Member
  • Posts

    89
  • Joined

  • Last visited

  • Days Won

    1

mustardman last won the day on October 20 2017

mustardman had the most liked content!

About mustardman

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

mustardman's Achievements

Member

Member (2/3)

2

Reputation

  1. To anyone else finding this thread after googling it. This is how I got full friendly rewrite working. My WHMCS install and client area is in a subfolder (ie. https://mydomain.com/whmcs) and this is what I put at the top of the WHMCS subfolders .htaccess file. Options -MultiViews +SymLinksIfOwnerMatch
  2. So how exactly did you deactivate and reactivate your provisioning module?
  3. In my case, I think it may have had something to do with my SSL intermediate certificate bundle no longer working after it renewed. SSL was still working for browser access but I think Stripe webhook uses the intermediate certificate bundle. I have not been able to reproduce it since I fixed that.
  4. In my case, if I go into Gateway Transaction Log I see a "Client Not Found" error. The debug data there shows the failing webhook is missing the Client ID and Pay Method ID for some reason. So that is why Stripe is seeing a 400 error. If I use my test client account I can add and edit credit cards and get successful "payment_method.updated" webhooks back from Stripe so I can't seem to reproduce the error of missing Client ID and Pay Method ID.
  5. I am on v8.0.4 using PHP v7.3 and I am also having this problem when someone tries to update their credit card details. My system health looks ok. In my case I get a 400 error, not 500. Here are a couple relevant things I see in my Apache logs with the same timestamp at the exact time I try re-initiate the callback manually on the Stripe end. In access log "POST /clients/modules/gateways/callback/stripe.php HTTP/1.1" 400 - "-" "Stripe/1.0 (+https://stripe.com/docs/webhooks)" In error log PHP message: Stripe Notice: Undefined property of Stripe\\StripeObject instance: id PHP message: Stripe Notice: Undefined property of Stripe\\StripeObject instance: clientId PHP message: Stripe Notice: Undefined property of Stripe\\StripeObject instance: email
  6. Is this module any good? Which is the best module for Lightsail. This one or the ModulesGarden one?
  7. Perhaps you didn't null the output? php -q /home/mysite/whmcs_crons/pop.php >/dev/null 2>&1 With the ">/dev/null 2>&1" added you will not get the "Mailbox is empty" messages every 5 minutes. You will still get errors like the POP3 connection error. I am here because we also started getting the POP3 connection error messages after we upgraded to 7.6. We use gmail and it's not like we can do anything about it on that end. I sure hope someone finds a solution because these messages are going to be annoying.
  8. Ok thanks. When I backup restored to another server I never restored attachments folder because it is outside of the webfolder. So I had to go to my old backups to get the attachments.
  9. I am trying to open an attachment from an older ticket. It won't open. Just says file now found. I also tried logging in as client. Newer tickets don't seem to have a problem. So maybe it's because of the ticket age for some reason. I really need to get that attachment. If I can find it directly in the DB maybe I can download it and open it from there. But I can't find where attachments are stored.
  10. Works reliably for me. When you first set it up you usually have to visit the following link and enable less secure apps. https://www.google.com/settings/security/lesssecureapps You also sometimes needed to disable captcha during the first login attempt although not sure if it's still the case. https://accounts.google.com/displayunlockcaptcha Also, it appears that google is now more aggressive in blocking new sign in attempts from addresses it does not recognize. So if you log in to the google account after you try connect from WHMCS you may see a security warning asking you to verify and accept the unknown login attempt.
  11. To eliminate templates as a possible cause, try to do it by accessing a standard template directly. So add the following to the end of your URL &systpl=standard_cart Also, WHMCS built in Stripe module has a problem imo. I consider it a bug but they apparently do not. If the default payment method is set to PayPal (I am assuming the same applies to any alternate payment method), then WHMCS tries to save credit card numbers locally instead of on Stripe. I believe it can also generate errors like what you are seeing because the last 4 digits of the Stripe stored number are saved locally and show up in that change credit card view, however, I do not think it tries to update the remote information when the default payment method is set to something else and then you get that error. That is not how it worked with the 3rd party ServerPing Stripe module which never had this problem. This seems to be a PCI compliance issue but WHMCS doesn't seem to think so. Probably not related to your problem if you have default payment method for the customer set to Stripe.
  12. Emails from @outlook.com email addresses appear to work ok as well. Only Hotmail seems to have this problem. I have tried from more than one Hotmail email address.
  13. I use POP3 importing from Goggle apps/Gmail. It has always worked perfectly including importing Hotmail emails. Now it detects the Hotmail email message body as an attachment. I am pretty sure this started happening after I upgraded to v7.3.0. Nothing else has changed with my POP3 import settings or my Gmail. The email is received by Gmail normally. So it is definitely the POP3 import step that is detecting it incorrectly. Looking in Utilities > Logs > Ticket Mail Import Log the email message is as follows: To: support@mydomain.com From: SomeCustomer . «somecustomer@hotmail.com» Subject: test Status: Ticket Imported Successfully No message found. Attachment 96B5B672B4202643B016FE6C21CCF77B@namprd22.prod.outlook.com.plain blocked - file type not allowed. If I allow .plain email attachments in Setup > General Settings > Support > Allowed File Attachment Types, I receive the above email with message body "no message" with the message body contained in an attachment in the ticket which I can then open and read. So the POP3 Mail importer is incorrectly detecting the Hotmail message body as an attachment. This only appears to happen with Hotmail. I have tried sending messages from Gmail and from other mail systems that are not Gmail or Hotmail and they all seem to work.
  14. I finally got to the bottom of this. My environment uses different php.ini files depending on whether php is run from Apache or from CLI. WHMCS uses the php.ini file used by Apache. However, phpmailer (included with WHMCS) apparently uses the php.ini file used when php is run from CLI. When I change the max memory in the php.ini file that the CLI environment uses then phpmailer uses that memory limit. You can check the php.ini file used by CLI by running the following command php --ini
  15. For anyone else having this problem. It appears to be related to /vendor/phpmailer/phpmailer/class.smtp.php. It appears to be ignoring php.ini `memory_limit=256M` and using the PHP default of 128M even though WHMCS and phpinfo(); show that php is max memory is set to 256M and there is still plenty of spare physical memory. I figured it out by running the cron without the -q or the >/dev/null 2>&1 which then caused cron to send the out of memory error message to root. The error occurs on line 655 $lines = explode("\n", str_replace(array("\r\n", "\r"), "\n", $msg_data)); The workaround is to add the following line just before line 655 ini_set('memory_limit','256M'); That will get overwritten every time WHMCS updates that file so it's just a workaround.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated