-
Posts
635 -
Joined
-
Last visited
-
Days Won
6
Everything posted by rick
-
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. ?
-
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.
- 5 replies
-
- 2
-
- css
- animations
-
(and 1 more)
Tagged with:
-
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.
- 5 replies
-
- 1
-
- css
- animations
-
(and 1 more)
Tagged with:
-
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.
-
Howto make dynamic website with Processwire?
rick replied to uncle_bobson's topic in Getting Started
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. -
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.
-
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 ?
-
Webhosting in Germany -Any recommendation for Processwire site
rick replied to Knubbi's topic in Getting Started
You can try m3server -
Webhosting in Germany -Any recommendation for Processwire site
rick replied to Knubbi's topic in Getting Started
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. -
Thanks @adrian. I dev null'd all the log files and now the issue is gone. lol
-
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
-
Inputfield to choose visibility of a widget on certain pages?
rick replied to bernhard's topic in Module/Plugin Development
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. -
Inputfield to choose visibility of a widget on certain pages?
rick replied to bernhard's topic in Module/Plugin Development
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. -
Maybe this might be helpful?
-
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!
-
Can I limit the administer users ability a little more?
rick replied to Vigilante's topic in Getting Started
Maybe this topic helps? -
module SnipWire - Snipcart integration for ProcessWire
rick replied to Gadgetto's topic in Modules/Plugins
I would say that this answers your question ? Don't make more work for yourself, both in coding and in support.- 230 replies
-
- 1
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
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
-
Best way to move a Processwire site to a new server 2020?
rick replied to modifiedcontent's topic in General Support
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 -
SOLVED: Set value to custom image field via API
rick replied to markus_blue_tomato's topic in General Support
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! -
SOLVED: Set value to custom image field via API
rick replied to markus_blue_tomato's topic in General Support
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 -
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.