-
Posts
154 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Rudy
-
CraftCMS comes to mind. It's very powerful and customizable. The Solo version is free, but the rest of the versions are not.
-
[SOLVED] Do the reset password tricks work for you? They don't work for me.
Rudy replied to Boost's topic in General Support
Have you tried this method? https://processwire.recipes/recipes/resetting-admin-password-via-api/ -
To allow Rector to inspect/refactor older modules, you also need to add the following config to your rector.php $rectorConfig->fileExtensions(['php', 'module']);
- 1 reply
-
- 4
-
How to prevent this PHP8 error on PHP7.4 systems?
Rudy replied to bernhard's topic in General Support
How about writing your ternary like this? title: ($d->title ? $d->title : $name), -
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.
-
Sharing authorization between ProcessWire installations
Rudy replied to Ivan Gretsky's topic in General Support
@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 -
Sharing authorization between ProcessWire installations
Rudy replied to Ivan Gretsky's topic in General Support
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 -
Sharing authorization between ProcessWire installations
Rudy replied to Ivan Gretsky's topic in General Support
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. -
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.
-
SSL error when loading files on demand (certificate verify failed)
Rudy replied to bernhard's topic in General Support
@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) -
@Robin S This is great! I noticed that the grid only works with UIkit theme. It just shorten the width but not wrapped around.
-
Connecting to external API from Processwire
Rudy replied to modifiedcontent's topic in API & Templates
Try adding a backslash prefix in front of the class namespace use \Mautic\Auth\ApiAuth; use \Mautic\MauticApi; -
@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.
-
How to send specific HTTP status code and go to error page
Rudy replied to DrQuincy's topic in Getting Started
@DrQuincy I think you're looking for this https://processwire.com/api/ref/wire-http/status-text/ -
[SOLVED] XMLHttpRequest on the Main Thread is Deprecated
Rudy replied to kongondo's topic in Tracy Debugger
If I am not mistaken, you need to set async: true. -
@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.
-
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);
-
Someone from our community already set up a Discord server for ProcessWire. https://discord.gg/fREpGjMc
-
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
-
How to group filtered grandchild pages by parent title?
Rudy replied to 101Bram's topic in Getting Started
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> -
Hi all ? I made this searchable UIkit 3.x documentation site to share with everyone. The official doc is great but you can't search across the whole doc. Anyway, here is the URL: https://uikitdocs.netlify.app/ What's missing is the live examples. Perhaps some of you can contribute? Github repo link is on the website as well. Cheers
-
Since you're working on a PW environment, you should probably use PW's WireArray and Paginated Array API.
-
Hi Jay, If you are expecting a lot of data to process, perhaps you might want to paginate your result to prevent long execution. You might also want to increase your PHP max_execution_time to 300 or more (up to you).
-
@fruid have you tried reaching out to UIkit's discord community? https://discordapp.com/invite/NEt4Pv7
-
I am having a similar issue but not exactly as what @Robin S had. https://github.com/processwire/processwire-issues/issues/1369