Jump to content

rick

Members
  • Posts

    635
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by rick

  1. I'm having to read the whole dataset into an array in order to process entries. Some pages have 5K+ entries, others are more manageable. It's a global Company <--> Contractor relationship.
  2. Yes, that is what I am currently doing. It saves the data fine and I can read the data fine. Searching values from keys, not so much. lol
  3. I've been searching for a viable means to store json without having to use a document db as well. Is this still on the back burner? If not, any suggestions on efficiently searching large datasets? Thanks!
  4. If the post fields are present, maybe check the spelling of the fields in $input->post("var_name")? I know it sounds simple, but I sometimes misspell the field names and wonder why I don't get the values submitted. Maybe that's just me. ?
  5. Hey, we all make simple mistakes at times. No worries though. There are many members here that will gladly help you get your site up and running. [edit] You can edit your original post and add [Closed] to the subject line.
  6. Hello @picarica and welcome to the forum. View the page source of your site and you will see a couple if issues. When you say you made php changes so it would work, what changes did you make? Are you sure you have the correct CSS files referenced in your header? Javascript files? You should not have any issues applying a 3rd party theme to processwire. It is actually fairly simple once you have your structure set up. Have you followed any of the tutorials for your site structure? If you are still having problems, then please post back here. We will need more information so we can better answer your questions.
  7. I guess I go about things backwards. ? I design the front-end based on content and what features are required, then I select the css framework that best suits it. Meaning, I'm lazy, and pick one where I have the least amount of work to do. I mostly use bootstrap, but have been using w3css with the past couple of projects.
  8. If I understand you correctly, you are looking to add Ajax updated section to your page. This is indeed possible, See Here for an example. If by chance you are using vanilla javascript then check out this post.
  9. Hi @ngrmm, You don't have to assign a boundary, that should be done automatically by the email module when an attachment is recognised. I was referring to troubleshooting by looking at the headers to see if there was a boundary id for an attachment. You shouldn't have any issues if you follow the WireMail api examples. Specifically, $m->attachment('/path/to/file.ext'); indicates your attachment should be the path to the file. You would therefore write out your ICS file and use the resulting filepath.
  10. Where does filename come from? header("Content-Disposition: attachment; filename={$filename}.ics"); Why are you assigning an attachment that is not a file. $m->attachment($ical_data); Is the attatchment boundary defined ?
  11. I have not had personal experience with these, but they were recommended to me. vultr (Germany) upcloud (Finland) ovh (Central Europe) linode (Frankfurt) Hope this gives you a good starting point.
  12. Thanks @adrian. I dev null'd all the log files and now the issue is gone. lol
  13. Line 449: array() errors => array(2) time => 1578413573 lines => array(7) 1/7/0/7/10 => array (4) [ ... ] 2/7/0/7/10 => array (4) [ ... ] 3/7/0/7/10 => array (4) [ ... ] 4/7/0/7/10 => array (4) [ ... ] 5/7/0/7/10 => array (4) [ ... ] 6/7/0/7/10 => array (4) [ ... ] 7/7/0/7/10 => array (4) [ ... ] exceptions => array(2) time => 1578517180 lines => array(10) 1/28/0/10/10 => array (4) [ ... ] 2/28/0/10/10 => array (4) [ ... ] 3/28/0/10/10 => array (4) [ ... ] 4/28/0/10/10 => array (4) [ ... ] 5/28/0/10/10 => array (4) [ ... ] 6/28/0/10/10 => array (4) [ ... ] The same format (slightly different values) are displayed prior to line 44. I'm using VSCode as my IDE. It indicates two errors in ProcesswireLogsPanel.php: //line 44: $this->wire('cache')->save('TracyLogData.ProcessWire', $logLinesData, WireCache::expireNever); // Undefined Type WireCache //line 86: $logInstance = new FileLog($this->wire('config')->paths->logs . $item['log'].'.txt'); // Undefined Type FileLog
  14. Two options come to mind; 1) Use a tri-state indicator to convey "All Selected", "None Selected", or "Partial Selected", or 2) Use some type of numeric flag to indicate the number of selected children. A combination of both is similar to the way most windows installer programs work when you select children of a parent to be included in the install.
  15. As far as UI is concerned, in your example, when you disable all children and then enable a single child, the parent should reflect the selected items as enabled. As it is, if the parent were collapsed, you would have no visual indication that one or more children were enabled.
  16. Hi @adrian, I'm running 4.20 on localhost and production sites. I get the following error: ProcessWire\WireException: Unable to encode array data for cache: TracyLogData.ProcessWire in /www/.../wire/core/WireCache.php:450 Stack trace: #0 /www/.../site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/ProcesswireLogsPanel.php(44): ProcessWire\WireCache->save('TracyLogData.Pr...', false, '2010-04-08 03:1...') #1 /www/.../site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-2.5.x/src/Tracy/Bar.php(160): ProcesswireLogsPanel->getTab() #2 /www/.../site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-2.5.x/src/Tracy/Bar.php(110): Tracy\Bar->renderPanels() #3 /www/.../site/assets/cache/FileCompiler/site/modules/TracyDebugger/TracyDebugger.module.php(1734): Tracy\Bar->render() #4 /www/.../wire/core/Wire.php(383): TracyDebugger->sessionHandlerDBAjaxFix(Object(ProcessWire\HookEvent)) #5 /www/.../wire/core/WireHooks.php(927): ProcessWire\Wire->_callMethod('sessionHandlerD...', Array) #6 /www/.../wire/core/Wire.php(450): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessWire), 'finished', Array) #7 /www/.../wire/core/ProcessWire.php(790): ProcessWire\Wire->__call('finished', Array) #8 /www/.../wire/core/ProcessWire.php(591): ProcessWire\ProcessWire->__call('finished', Array) #9 /www/.../wire/modules/Process/ProcessPageView.module(271): ProcessWire\ProcessWire->setStatus(128, Array) #10 /www/.../wire/core/Wire.php(380): ProcessWire\ProcessPageView->___finished() #11 /www/.../wire/core/WireHooks.php(823): ProcessWire\Wire->_callMethod('___finished', Array) #12 /www/.../wire/core/Wire.php(450): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageView), 'finished', Array) #13 /www/.../index.php(56): ProcessWire\Wire->__call('finished', Array) #14 {main} I've not had any issues before so I'm thinking I may have something misconfigured. Any ideas? Thanks!
  17. I would say that this answers your question ? Don't make more work for yourself, both in coding and in support.
  18. Welcome to the forum, @Ovolion. It sounds like you would be better off using a dedicated e-commerce solution such as PrestaShop. Not that ProcessWire can't accomplish the same thing, but in this case I think it would be better to go with a dedicated solution. Just my $.02
  19. The procedure I use is: Old Server: Download the database export. Download the site folder (you can skip cache). New Server: Install Processwire (same version). Delete the site folder and Empty the database. Upload the site folder from the old host. Import the database from the old host. Empty cache and sessions. Update the config.php where necessary (database credentials, etc.). Creating a site profile is not necessary. [edit] Since all my machines are *nix based, I use rsync to maintain duplicates: rsync -azP host:source destination
  20. Please set the topic to Solved so that others aren't anticipating troubleshooting. You can edit your original post to modify the topic title. Thanks!
  21. From what I understand, you have to have the specific image prior to setting any property. $yourPage->of(false); // turn off output formatting $yourImage = $yourPage->yourImageField->last(); // get the last image // $yourImage = $yourPage->yourImageField->eq($index); // or, get specific image by array index $yourImage->yourCustomField = 'yourValue'; // Set value of custom field $yourPage->save(); // save the changes
  22. Using the API I find cumbersome having to reproduce the individual tasks in sequence that the admin performs by default when trying to accomplish the same goal. I rarely remember how to interact so I have many 'procedures' written as comments in my source to make it easier to find. The trials of old age. ? The original error is because of referencing the 'collection' rather than the individual item. You'll notice in that code snippet that it checks for your field maxfiles setting *and whether there is an image present. If so it removes the existing image before adding the new image to the page image object.
×
×
  • Create New...