Jump to content

rick

Members
  • Posts

    635
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by rick

  1. 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. ?

  2. 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.

    • Like 1
  3. 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.

    • Like 1
  4. 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.

    • Like 2
  5. 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

     

  6. 14 minutes ago, bernhard said:

    That would mean we'd need some kind of "not visible on that page, but on at least one descendant"...

    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.

  7. 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!

  8. I would say that this answers your question ?

    13 minutes ago, Gadgetto said:

    SnipWire is a huge module which touches big parts of the PW core API. As a sample - only the WireHttp class had at least 10 fixes and improvements since v 3.0.123 which are mandatory for SnipWire to work properly.

    Don't make more work for yourself, both in coding and in support.

     

    • Like 1
  9. 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

    • Like 2
  10. The procedure I use is:

    Old Server:

    1. Download the database export.
    2. Download the site folder (you can skip cache).

    New Server:

    1. Install Processwire (same version).
    2. Delete the site folder and Empty the database.
    3. Upload the site folder from the old host.
    4. Import the database from the old host.
    5. Empty cache and sessions.
    6. 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

     

    • Like 2
    • Thanks 1
  11. 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

     

    • Like 2
  12. 37 minutes ago, DaveP said:

    @rick Thanks for that - I'll give it a try.

    I'm beginning to think that either I'm remembering how to interact with image fields incorrectly or my 'photo' field, which is set to contain 1 image ('photo' not 'photos') somehow isn't respecting that setting. And therefore that the error is unconnected to the new image field template setup.

    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.

    • Like 1
×
×
  • Create New...