Jump to content

netcarver

PW-Moderators
  • Posts

    2,236
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by netcarver

  1. @SIERRA How are you processing the admin page submission in order to populate your SMS template and send it? Presumably you are using hooks, right? Take a look at AdminCustomFiles for inserting custom JS into admin pages.
  2. @hintraeger Have you taken a look at the pagefileSecure config option? Might not be suiteable for you, but for file storage outside the site root, how about @Wanze's FieldtypeSecureFile module? I also remember there being a very old post from @Soma here in the forum about this topic.
  3. Just change this line... function visit(Page $parent, $enter, $exit=null) To this... function visit($parent, $enter, $exit=null)
  4. Does this work... echo $page->lorum_ipsum->getLabel(); ? Also, take a look at Bernhard's post here...
  5. Hi @kathep Thanks for the detailed report. I've not used Yunohost, so I'd want to find out if Yunohost is simply using nginx as a proxy to your processwire app stack, and if the app itself is being served by apache2?
  6. Hi @bernhard, thank you for the update. It now works for top-level blocks - but embedded blocks aren't draggable. For example, these blocks, from the advanced demo...
  7. Hello Bernhard. Congratulations on your module release. I've just been trying this out in your demo at pagebuilder.baumrock.com. I'm using FireFox as the browser and don't seem to be able to drag-and-drop blocks to change their position in the front end view. Perhaps it's just my install. I'm not seeing any JS errors in the console, but I just can't seem to get this working in FF (all good in Chromium.)
  8. Recently hit the wordpress wall for the first time trying to help out a charity upgrade their WP-based site. Very troublesome.
  9. Hi @zz_james, welcome to the forum. There are quite a few PW-related docker images - you can find a list of them here. I do not know which one represents the latest - but it's a reasonable starting point for your search.
  10. netcarver

    Appreciation

    That's the one...
  11. netcarver

    Appreciation

    Another ex-Textpattern user as well. Even had the book at one point.
  12. Yeah, it's probably not this - just wanted to rule it out as a possibility. I think your guest session on the front end will still have a session file unless you set up the config file to prevent it. If you do a ls -lSh site/assets/sessions/ and the guest session id is relatively large, then something is stashing a lot of data in there. Unlikely though.
  13. I don't know what's going on - so just throwing an idea into the ring. Could you try looking at your wire cookie id and then checking the size of the session associated with that same id? If it's extremely large, could you try deleting the file (or row in the DB session table) - which will log you out when you reload the page. When you log back in, is tracy any faster?
  14. @heldercervantes Very nice. Perhaps a little more line height needed on .type-title, to stop the descenders in headlines getting cropped? (1.2 worked for me in Firefox)
  15. Welcome to the forum, Ghulam. I've moved this request to the Jobs forum for you.
  16. I'm seeing something similar on a site where I imported a repeater and now it's being saved in a part of the page tree I would not have expected. Also, pages using the template into which I added the repeater are being saved in the same part of the page tree. I'm running on v3.0.204 dev.
  17. Not sure I fully understand what you want to achieve, but if it's just loading values from a .env file then take a look at vlucas/phpdotenv. You can use composer to autoload it. Assuming you have site root in /var/www/somesite/public_html/ then cd in there and use composer from the cli... composer require vlucas/phpdotenv Create your .env file in there... DB_HOST="127.0.0.1" DB_NAME="somesite_db" You can then load the .env values from your site/config.php file... <?php ... require __DIR__ . '/../vendor/autoload.php'; // vendor dir in site root - adjust path if needed /** * Load values from your .env file... */ $loader = \Dotenv\Dotenv::createImmutable(__DIR__ . '/../'); // .env in site root dir - adjust path if needed $loader->load(); // .env values are now in $_ENV array. Use as needed... $config->dbHost = $_ENV['DB_HOST']; $config->dbName = $_ENV['DB_NAME']; ... You can house your .env elsewhere if you like - just adjust the paths as needed. Hope that helps.
  18. That's a nice solution, @Robin S
  19. How about using an int field for the price - but in cents, not dollars and cents. Would, of course, require formatting when displaying and storing the value.
  20. PrivacyWire is one option that works for PW and allows you to categorise and manage cookie choices. Also worth a look is cwsoft's new module (which I haven't tried) here: https://github.com/cwsoft/pwNoCookiesWithoutConsent
  21. @Olaf looks like there are a few issues with your code. Could you try this instead? // Get page to be copied $sourcePage = $pages->findOne(...); // Init new page $page_add = new Page(); // Set some basics $page_add->template = '<template-name>'; $page_add->parent = '</path/to/parent/>'; // Add some fields to copy $page_add->field = $sourcePage->field; ... // Save page to i get an ID $page_add->save(); // Although not neccessary, make sure we are working with array format $page_add->of(false); // Trying to add/copy the images to the new page $page_add->field->add($sourcePage->field); // For the sake of it, save page again $page_add->save();
  22. Thank you - this will be very useful!
  23. Regarding the disk space: Can you SSH in to the server and check the available disk space using the following command `df -h`? Is there still space on the /tmp mount point? (Look for the %use space column in the /tmp row and make sure it isn't full.) To start diagnosing the second issue, you can type "How can I start to diagnose this issue "SQLSTATE[08004] [1040] Too many connections"" into a free chatGPT connector like bingblong. It should give you some solid starting points. Regarding bingblong - it's a good, free connector, but you might want to install ublock origin before you use it. Alternatively just sign up for a regular free chatGPT account.
  24. @Nishant happy to hear you have your site up and running again. Out of interest, and to help try and track this down... what version of the SessionDBHandler module were you running (if you happen to know?) are you using the MyISAM or InnoDB engine in your MySQL/MariaDB installation?
  25. It might be that module as it uses GET_LOCK. Is it feasable to switch this site back to using file-based sessions?
×
×
  • Create New...