Jump to content

CoffeeCake

Clients
  • Posts

    1,916
  • Joined

  • Days Won

    24

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by CoffeeCake

  1. What is a cPanel transfer tool? Some sort of cPanel thing to move your site between servers with cPanel installed?

    Consider using rsync: https://rsync.samba.org/

    If you are making a copy of your production install, remember that your install sometimes e-mails members. You probably don't want your test site e-mailing real people. You can set a constant in your constants.php file on your test server to stop e-mails from being sent.

    You'll also want to make sure your mysql user/password for your test environment does not have permission to access your production environment. Use a different database name and different database user to be extra certain.

    If you have file storage outside of your local server, remember to have separate test/production instances. Don't run them on the same server or chroot if possible.

    Pay extra close attention to anything that could alter something for the other environment or bad things will happen. It's best to have completely separate servers.

  2. As you noted, there are group level permissions that prevent members from using the functionality and adding a profile cover. Removing the permission that allows them to upload a profile cover will stop them from using it.

    Are you looking for a way to remove the profile covers of anyone who has uploaded one before changing this setting? Something else?

  3. Going further down into this hole, things like notifications for content that needs to be approved and quotes and mentions are all immediate and exist outside of all of this.

    If a poster is quoting a bunch of people and/or using @ mentions you could end up with all sorts of e-mails going out on pressing submit.

    rabbit hole GIF

  4. 37 minutes ago, James25 said:

    I've added this to constants.php and will let yall know if things improve:

    \define( 'NOTIFICATIONS_PER_BATCH', 5 );

    This checks to see how many notifications should be sent out, and also how many e-mails will be sent out at a single run of the background task. So if you have 4 or less people asking to be notified, it will do it immediately. If greater, it will be queued to a background task that runs with your task jobs. Setting this too low, as it is implemented now, could have undesirable consequences as instead of sending out 30 notifications per task run, it would only do five. If you set this too low, it could take quite a bit of time to process those e-mails as those notifications from all threads are going to get queued.

    I would not set this option today and leave it at the default (or set it higher if your setup can handle it).

    The issue is that the time it takes to send out those notifications for the first four emails may cause hanging as the communication happens with your email solution. This doesn't matter if it's a task happening in the background, but when it's immediate, it impacts the user experience by causing a delay in the time from clicking submit to the redirect to view the thread.

    I'd like to see a QUEUE_ALL_NOTIFICATIONS constant or similar to turn off the immediate e-mail bit and send everything to queue.

  5. Thanks... snuck into source code while totally paying attention in this Zoom.

    secret smell GIF

    So, setting that constant to 0 would result in forcing all notifications/emails to be queued. The default value is 30, not 50.

    I think we might just try this out. 🙂

  6. 19 minutes ago, Daniel F said:

    Yes, this is handled via the BULK_MAILS_PER_CYCLE constant.

    I thought this was the number of e-mails sent in each call to the email handler, and not for the logic that I thought @bfarber was referring to which suggests if there's less than 50 followers, the e-mails are sent immediately; otherwise the e-mails are queued.

    Half paying attention in meetings with no access to source code at the moment, but weird choice if the constant applies to both those scenarios.

  7. 48 minutes ago, bfarber said:

    How many is a "large number"? If there are 50 or less (remembering off the top of my head here) we send the notifications immediately, but if there are more we queue the notifications to be sent by a background task. If we are sending notifications immediately, the speed of your email server will make a difference, but if we queue them then emailing is not likely going to be the problem.

    Is this 50 number configurable? I like the idea of queuing all e-mails as an option. I think sendgrid sometimes introduces a bit of lag.

  8. Just expanding on this request--it would be nice to see previous values in Moderation History in general (perhaps when edit history is turned on).

    Showing the original values may not always be appropriate. What if a member creates a thread with inappropriate words in them?

    User changed the title from you can all go eat a bag of ^@#%#$! donkey nuts to I keep losing my post drafts because of a bug on your web site

     

  9. Yes, here you go!

    https://invisioncommunity.com/third-party/providers/

    You will want to restart your web server after changing these values and make sure that phpinfo shows the updated memory limits.

    You should also consider upgrading your server environment to no longer be relying on suphp. It is in a dubious support situation with the original project shutdown.

    Navigating to your site just now it looks like you're getting an EX144 error code from IPS.

    You should check for database corruption.

  10. If you create a file on your web server (something like onlyformyeyes.php) and make the contents:

    <?php phpinfo();

    Then navigate to www.yourwebsite.com/onlyformyeyes.php, you should see what the setting is currently is and where the php.ini file is located on your server that controls whatever version of PHP your web server is using.

    If you are using something like cPanel, etc. this may be something you edit through their control panel. Not sure to be honest. Your web host may be able to assist.

×
×
  • Create New...