Jump to content

Rudy

Members
  • Posts

    147
  • Joined

  • Last visited

  • Days Won

    2

Rudy last won the day on July 28

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)

151

Reputation

  1. @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
  2. 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
  3. 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.
  4. 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.
  5. @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)
  6. @Robin S This is great! I noticed that the grid only works with UIkit theme. It just shorten the width but not wrapped around.
  7. Try adding a backslash prefix in front of the class namespace use \Mautic\Auth\ApiAuth; use \Mautic\MauticApi;
  8. @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.
  9. @DrQuincy I think you're looking for this https://processwire.com/api/ref/wire-http/status-text/
  10. If I am not mistaken, you need to set async: true.
  11. @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.
  12. I think you want to convert your field value to name format (no spaces, replace with underscores or hyphens) https://processwire.com/api/ref/sanitizer/name/ Something like $sanitizer->name($cenik->text1);
  13. Someone from our community already set up a Discord server for ProcessWire. https://discord.gg/fREpGjMc
  14. This is brilliant! Thanks for making it available. I made a Manifest module for PW awhile ago and I thought that it would be related to this Inertia module since you are using Laravel Mix for your example. Here is the repo link: https://github.com/lesaff/processwire-manifest
  15. This is how I would do it. Example in Twig, but you can see the logic in it. <ul> {% for child in pages.get(1).children() %} <li> <a href="{{ child.url }}"> {{ child.title }} </a> {% if child.numChildren(true) %} <ul> {% for gchild in child.children('YOUR CUSTOM SELECTOR HERE') %} <li> <a href="{{ gchild.url }}"> {{ gchild.title }} </a> </li> {% endfor %} </ul> {% endif %} </li> {% endfor %} </ul>
×
×
  • Create New...