Jump to content

prestoav

Members
  • Posts

    307
  • Joined

  • Last visited

1 Follower

Contact Methods

  • Website URL
    http://www.prestoav.com

Profile Information

  • Gender
    Male
  • Location
    Newmarket, Suffolk, UK
  • Interests
    Consumer tech, songwriting, country & Americana music, guitars

Recent Profile Visitors

5,606 profile views

prestoav's Achievements

Sr. Member

Sr. Member (5/6)

156

Reputation

2

Community Answers

  1. Hi @adrian thanks for the tought. I don't have Grammerly installed but I did recently install Claude extension for Chrome. I've just removed that and will update here if I notice any difference.
  2. PW 3.0.255 PHP: 8.3 Browser: Chrome on Mac I've now seen this on a number of my PW sites and it's driving me a little nuts! 1) Paste in some text to a textarea / CKEditor field 2) Save page 3) Leave page then return to edit it again 4) Text is visible but cursor can only be positioned top left and clicking source button reveals empty box 5) Save page, leave and return to find the field completely empty As I said, I've now seen this about five times across multiple sites and hosts. Any ideas on what's happening or how to diagnose further would be hugely helpful!
  3. Hi there! Thanks for this super useful module! To prevent the validation warning 'The type attribute is unnecessary for JavaScript resources.' Please could you adjust these two rendered lines at next iteration: <script nomodule type='text/javascript' src='/site/modules/PrivacyWire/js/ie_polyfill.js'> <script nomodule type='text/javascript' src='/site/modules/PrivacyWire/js/PrivacyWire_legacy.js'> to: <script nomodule src='/site/modules/PrivacyWire/js/ie_polyfill.js'> <script nomodule src='/site/modules/PrivacyWire/js/PrivacyWire_legacy.js'> Unless there is a valid reason not to do so? Thank you!
  4. PW: 3.0.255 PHP: 8.3.3 Sadly I now have the same issue and I can't find a way around it. Duplicate sites, create a new page on one then try to export the page to the duplicate site and get this error: Error: Call to a member function getLanguageValue() on null in wire/modules/LanguageSupport/FieldtypeTextareaLanguage.module:126 #0 [internal function]: FieldtypeTextareaLanguage->___importValue() #1 wire/core/Wire.php (425): call_user_func_array() #2 wire/core/WireHooks.php (1018): Wire->_callMethod() #3 wire/core/Wire.php (484): WireHooks->runHooks() #4 wire/core/PagesExportImport.php (998): Wire->__call() #5 wire/core/PagesExportImport.php (685): PagesExportImport->importFieldValue() #6 wire/core/PagesExportImport.php (535): PagesExportImport->arrayToPage() #7 wire/modules/Fieldtype/FieldtypeRepeater/FieldtypeRepeaterPorter.php (255): PagesExportImport->arrayToPages() #8 wire/modules/Fieldtype/FieldtypeRepeater/FieldtypeRepeater.module (1006): FieldtypeRepeaterPorter->importValue() #9 [internal function]: FieldtypeRepeater->___importValue() #10 wire/core/Wire.php (425): call_user_func_array() #11 wire/core/WireHooks.php (1018): Wire->_callMethod() #12 wire/core/Wire.php (484): WireHooks->runHooks() #13 wire/core/PagesExportImport.php (998): Wire->__call() #14 wire/core/PagesExportImport.php (685): PagesExportImport->importFieldValue() #15 wire/modules/Process/ProcessPagesExportImport/ProcessPagesExportImport.module (619): PagesExportImport->arrayToPage() #16 wire/modules/Process/ProcessPagesExportImport/ProcessPagesExportImport.module (320): ProcessPagesExportImport->processImportItemToPage() #17 wire/modules/Process/ProcessPagesExportImport/ProcessPagesExportImport.module (242): ProcessPagesExportImport->processImportSubmit() #18 wire/modules/Process/ProcessPagesExportImport/ProcessPagesExportImport.module (76): ProcessPagesExportImport->processImport() #19 wire/core/Wire.php (413): ProcessPagesExportImport->___execute() #20 wire/core/WireHooks.php (1018): Wire->_callMethod() #21 wire/core/Wire.php (484): WireHooks->runHooks() #22 wire/core/ProcessController.php (362): Wire->__call() #23 wire/core/Wire.php (413): ProcessController->___execute() #24 wire/core/WireHooks.php (1018): Wire->_callMethod() #25 wire/core/Wire.php (484): WireHooks->runHooks() #26 wire/core/admin.php (174): Wire->__call() #27 wire/modules/AdminTheme/AdminThemeUikit/controller.php (15): require('/home/u99035861...') #28 site/templates/admin.php (15): require('/home/u99035861...') #29 wire/core/TemplateFile.php (328): require('/home/u99035861...') #30 wire/core/Wire.php (413): TemplateFile->___render() #31 wire/core/WireHooks.php (1018): Wire->_callMethod() #32 wire/core/Wire.php (484): WireHooks->runHooks() #33 wire/modules/PageRender.module (547): Wire->__call() #34 wire/core/Page.php (3152): PageRender->render() #35 wire/core/Wire.php (416): Page->___renderPage() #36 wire/core/WireHooks.php (1018): Wire->_callMethod() #37 wire/core/Wire.php (484): WireHooks->runHooks() #38 wire/core/Page.php (3097): Wire->__call() #39 wire/core/Wire.php (413): Page->___render() #40 wire/core/WireHooks.php (1018): Wire->_callMethod() #41 wire/core/Wire.php (484): WireHooks->runHooks() #42 wire/modules/Process/ProcessPageView.module (193): Wire->__call() #43 wire/modules/Process/ProcessPageView.module (114): ProcessPageView->renderPage() #44 wire/core/Wire.php (416): ProcessPageView->___execute() #45 wire/core/WireHooks.php (1018): Wire->_callMethod() #46 wire/core/Wire.php (484): WireHooks->runHooks() #47 index.php (56): Wire->__call() #48 {main}
  5. Hi @poljpocket and thanks for your response. I did make the backup with the same module as you suggest. The is JSON content at the end of the file as follows: # --- /WireDatabaseBackup {"numTables":140,"numCreateTables":140,"numInserts":19412,"numSeconds":1}
  6. PW 3.0.255 ProcessDatabaseBackups 0.0.6 PHP 8.3.30 On restore I am seeing this error: Passing null to parameter #1 ($num) of type float is deprecated in ***/site/modules/ProcessDatabaseBackups/ProcessDatabaseBackups.module on line 243 The line in question seems to be this one: $this->tdSort($file['numInserts'], number_format($file['numInserts'])), Within: foreach($backupFiles as $id => $file) { $numFiles++; $numTables = $file['numTables']; if($numTables && !count($file['tables'])) $numTables .= " " . $this->_('(all)'); $basename = $file['basename']; $time = $file['time'] ? $file['time'] : $file['mtime']; if($file['description']) $basename .= '*'; $actions = array(); foreach($this->getFileActions($file) as $action) { $actions[] = $this->aTooltip($action['href'], wireIconMarkup($action['icon'], 'fw'), $action['label']); } $checkbox->attr('id', "delete_" . $sanitizer->fieldName($id)); $checkbox->attr('value', $id); $table->row(array( $this->nowrap($basename) => "./info/?id=$id", $this->tdSort(strtotime($time), wireRelativeTimeStr($time, true)), $this->nowrap($numTables), $this->tdSort($file['numInserts'], number_format($file['numInserts'])), $this->tdSort($file['size'], wireBytesStr($file['size'])), $this->nowrap(implode(' ', $actions)), $checkbox->render(), )); } If anyone has an ideas for a fix please do let me know as I use this module a lot!
  7. Thanks for an awesome module. This one is going to be super useful! I've deployed this today to generate descriptions for Audio Visual brands using OpenAI and got it working without major issues. I noticed a couple of things worth looking at: 1) I couldn't get the Test Chat to work with GPT-5 Nano - a response was received but the content was empty. Switching to GPT 4.1 worked fine. 2) If using OpenAI as a single provider I had to use the 'provider' option or I got an error in the response saying 'no key for Anthropic' or similar. It would be useful here if, be default, it would use whichever provider was found with an active key perhaps? That way the 'provider' option wouldn't be needed unless for a specific call to a specific provider. 3) It would be useful if the number of total used tokens and / or tokens still available information from the provider was presented in the module. I'm not sure if that information is even possible from their API though? Thanks again. I look forward to using this module more in future!
  8. Absolutely. I always make that point as I believe it's confusing. In all but one of of my multi-lingual sites I won that discussion a we use language names (English, Français, Deutsch etc). However, this particular client insisted...
  9. Hi @zilli sadly not. In the end I had to take a different approach... I have a 'library' section of countries (page per country) that contains the country name, two digit country code etc. I built this some years ago and it's in every site I build so I can generate a quick list anywhere on a site and any admin can publish / un-publish countries they do or don't want in their lists. I ended up moving the flag image field to the country page template and added the images there. I then added a page selector field to the language template that chooses the country form which to pull the flag. Not ideal but it worked. Hope that helps.
  10. Hi @David Karich this is awesome news. Thank you for all your hard work on this!
  11. I haven't tried the template caching quite yet but it's on my 'discovery' to-do list for sure!
  12. Speaking as a user, this module is incredibly helpful and I'd love to see it back in the main module directory and continuing to me maintained. Thanks to you both.
  13. Hi @matjazp Thanks for the information. I've be playing with your fork version this morning it's worked well. Any chance you'll add this to the module directory?
  14. Hi @matjazp, thank you for the information. Could you share a link to your fork of this module? Thanks!
  15. For anyone trying to use this module in PHP 8, after changing the 2x lines mentioned previously in the main module file I was getting the following error at line 314 of /lib/JSMin-2.1.7.php : ord(): Passing null to parameter #1 ($character) of type string is deprecated The line in the file is: if (ord($c) >= self::ORD_SPACE || $c === "\n" || $c === null) { return $c; } Changing it to his solves the issue: if ($c === null || ord($c) >= self::ORD_SPACE || $c === "\n") {return $c;} @David Karich This is a super module and including the three line changes outlined in this thread would be a really nice thing if possible!
×
×
  • Create New...