Jump to content

Rudy

Members
  • Posts

    153
  • Joined

  • Last visited

  • Days Won

    2

Rudy last won the day on July 28 2021

Rudy had the most liked content!

1 Follower

Profile Information

  • Gender
    Male
  • Location
    Canada

Recent Profile Visitors

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

Rudy's Achievements

Sr. Member

Sr. Member (5/6)

160

Reputation

  1. Have you tried this method? https://processwire.recipes/recipes/resetting-admin-password-via-api/
  2. To allow Rector to inspect/refactor older modules, you also need to add the following config to your rector.php $rectorConfig->fileExtensions(['php', 'module']);
  3. How about writing your ternary like this? title: ($d->title ? $d->title : $name),
  4. Just a note, ProCache will only work on Apache (perhaps LiteSpeed) web server. If you are using Nginx, you have to translate the ProCache-generated htaccess to nginx directives.
  5. @Ivan Gretsky my usage is slightly different than yours. It's more for running a website on a multiple servers through a load-balancer. I have my database running on AWS RDS and a separate Redis server. I think you should: - limit the login/register to only one installation - use either database or redis to store your sessions - use AppAPI module to make REST calls from the primary site
  6. Here is the customized module. You will need to run: composer require predis/predis to use it. Add the following settings to your `config.php` $config->redis_session_server_ip = '127.0.0.1'; $config->redis_session_server_port = 6379; $config->redis_session_server_db = 0; $config->redis_session_server_prefix = "PHPSESSID:"; $config->redis_session_server_ttl = 1800; Change the session prefix to whatever you want. Once installed, you can then share the same session (using the prefix) across multiple sites as long as those sites are reading/writing to the same redis server. SessionHandlerRedis.zip
  7. My first thought is to use Redis for your session storage. I have a modified SessionRedis module that works on PW3.x with Predis if you want a copy.
  8. The max number is relative to the size and availability of your database server. It also depends on how you set up your front-end output. For a short term solution, the first thing you need to do is to cache your front-end output as much as possible (without compromising the freshness of content of course). You can either use template caching or ProCache. Since you are on a shared host, you are at the mercy of the pool of sites/apps that are on the same vm. If you have the budget or want to have more control over how resources are being allocated, you might want to consider running your site on your own VPS. DigitalOcean, Linode, AWS to name a few. There are server provisioning management services out there that can help you with the set up. RunCloud, ServerPilot or Forge are some good examples.
  9. @bernhard It might be something to do with your server's root certificate. Have a look at https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/ You can check if your root cert has expired or not by checking it here https://www.ssllabs.com/ssltest/ Update: I just ran your domain name and it looks like your DST root cert expired (per Let's Encrypt article above)
  10. @Robin S This is great! I noticed that the grid only works with UIkit theme. It just shorten the width but not wrapped around.
  11. Try adding a backslash prefix in front of the class namespace use \Mautic\Auth\ApiAuth; use \Mautic\MauticApi;
  12. @arweb I had the same error recently. How to fix it: rename FieldtypeTextareas folder in the site/modules to .FieldtypeTextareas install the latest version of FieldtypeTextareas (8a is the latest) To prevent future error, simply update FieldtypeTextareas to the latest version prior to upgrading the core.
  13. @DrQuincy I think you're looking for this https://processwire.com/api/ref/wire-http/status-text/
  14. If I am not mistaken, you need to set async: true.
  15. @jds43 urlSegment will not capture URL query strings. If you want something like that, you might want to use $_SERVER['query_string'] output for your if condition.
×
×
  • Create New...