Peter Knight
-
Posts
1,374 -
Joined
-
Last visited
-
Days Won
5
Posts posted by Peter Knight
-
-
Is I have a field called 'external_link' which accepts a url, is there an issue with the following code?
<a href="http://www.<?=$page->external_link?>">Visit site</a>
I've tried making the fieldtype both URL and Text and nothing seems to work and I send up with the following code when viewing source.
<a href="http://www">Visit site</a>
Normally I'd suspect that I named the field incorrcetly in my PHP or that the field isn't associated with the correct template etc. In this case, thats not the issue.
-
4 hours ago, tpr said:
Could we know which one is that?
Some crypto currency payment methods. They integrated with WooCommerce.
I could probably move from WooCommerce to SnipCart and Stripe easily enough but the crypto part wasn't feasible or something I really wanted to support right now.
- 2
-
15 hours ago, bernhard said:
Sorry for that comment. I know it's not that easy. I'm just a little annoyed by such statements, and I hope you get my point ?
Absolutely I get your point. I realise you’re only joking too.
To be fair to the business owner he absolutely heard me out and was quite interested to hear that his 3 week old site had such potential problems.
I actually approached him about the move and he really hadn’t been using WordPress long enough to experience any big problems. His attitude (and rightly so) was that he didn’t like hearing about the security issues etc but that he’d just paid to have it done in the first place.
Actually in the end nothing happened because a niche WordPress plugin which was vital to his site wasn’t going to be easy or economical to re write as a native PW module.
Ive moves several WP sites to PW at this stage and the clients couldn’t be happier with the improvement. This one just wasn’t possible right now. But who knows, give him a year or so and they may back.
- 1
-
Been chatting to a business owner this month about moving his site from WordPress to Processwire.
I think we were close to going ahead but a major problem for him was 3rd party proof that WP to PW was a positive move.
QuoteHey Peter, before we get to that, I can't find any real data for how processwire is dramatically better than wordpress. Can you send me studies and data to support this?
I think he's got a very fair point. Sure, there's some info on Google but relative to my beliefs and enthusiasm for the move, there's very little supporting evidence for business owners.
These videos will really help with future projects.
- 1
-
Yep. Same here ? and usually the same types of questions re. Images.
Lately I’ve started to save some code snippets as Github Gists
-
11 hours ago, szabesz said:
Welcome to the forums @matt.bryant
You mean something like this, or maybe something else?
https://processwire.com/talk/topic/8234-community-rules-guidelines/
I think he means a place where new members can introduce themselves.
- 1
-
Yep I agree. Initially I was reluctant to start using Slack and slow to adopt it. Last year I had to use it permanently as part of a contracting gig I was doing and it's a really nice messaging App.
I don't see it replacing the forums at all and actually it doesn't work as a forum replacement.
Slack is great for immediate conversational type comms.
The forums are great for searchable and persistent content that gets archived (and indexed by Google).
It's just another useful medium.
- 1
-
@matt.bryant Welcome to PW world. All great and topical points.
On the subject of Slack. I would love to see an official Processwire Slack channel.
1 hour ago, matt.bryant said:I am also surprised that you don't have an introductions section in this forum for newbies
Interesting - I thought there was one but can't find it now. I think that's a great idea though. Maybe it's something @Pete might consider?
- 1
-
5 minutes ago, Peter Knight said:
Thanks everyone.
@dragan I did think about the isotope / masonry route but in my use case, the images are not mixed on any single page (right now).
Oops - I'm contradicting my earlier original post here. Page A contains a mix and page B doesn't. ?
-
Thanks everyone.
@dragan I did think about the isotope / masonry route but in my use case, the images are not mixed on any single page (right now).
Lets say there's Page A which has all wide images and page B which has all tall images. They're both baed on the same template though and that's where the issue is.
But I do hope UIKit 3 do introduce their dynamic grid soon as it's badly missing from v3.
In the end I'm kicking around this with the help of ukyo's suggestion.
On a side note, If the images field doesn't have an image in it, my code still throws an error. I thought my first image check at the start stopped that happening but seemingly not.
In plain English, this is what I *think* I am doing
- Create a variable called products for each child page
- If the images field isn't empty, set image as a variable
- Output a html wrapper with an image at the top and some text below
- In no. 3 if the image is wide, apply a class prod-preview. If the image is tall, apply a class prod-preview-tall
<?php $products = $page->children(); foreach ($products as $prod) { if ($prod->images) // Check that images field is poulated { $image = $prod->images->first(); //Create variable from first image in field } ?> <?php echo" <div> <div class='prod-ov-wrapper'>"; // If image is wide (width greater than height) if($image->width > $image->height) { echo " <a href='$prod->url'> <img src='{$image->url}' class='prod-preview'> </a>"; } else { // If image is tall (height greater than width) echo " <a href='$prod->url'> <img src='{$image->url}' class='prod-preview-tall'> </a>"; } echo" <div class='prod-ov-text'> <span class='preview-title'><strong>Part No:</strong> {$prod->title}</span> <br/> {$prod->prod_summary} <a href='$prod->url' class='uk-icon-button icon-linky' uk-icon='icon: chevron-right'></a> </div> </div> </div> ";} ?>
-
I have a lot of product overview pages and each of these pages features a grid of wide thumbnails like this...
Although the images are not exactly the same size, I am using the CSS max image height of 150px to keep things tidy and it works well assuming all the product photos are wide format. Even though there are about 50 of these overview pages, they're all based on the same template.
However, my client has one product overview page that features tall / thin images and these need to be displayed on the overview at 500px high.
When my CSS max-image height is applied to these images, they are too small in a grid format.
I could create a separate template for this tall/thin grid and that would solve my issue but I was wondering if there was a better way to do this and keep the single template.
Would you recommend doing an if/else statement on the images like this
<?php if ($page->rootParent==1128) { echo" <img src='{$image->url}' class='image-wide'>"; } else { echo" <img src='{$image->url}' class='image-tall'>"; } ?>
I'm just not sure if I should be basing the if/else on a selector examining a page title or a rootParent ID or maybe even using a more modern image sizing trick.
Any thoughts appreciated.
-
Yes it’s only for year 1. But a good deal if you’re intending on a paid plan anyway. ?
- 2
-
On 4/10/2018 at 9:51 AM, szabesz said:
Sounds great! I think I will give it a test drive, however, I cannot find its features listed:
https://www.idrive.com/pricing
Do they mean that the Free plan is exactly the same as Personal except the difference in storage limit?
If you're considering a paid plan, there's 90% off for the first year here
https://www.idrive.com/idrive/signup/el/macworld90
That's not my affiliate link but probably MacWorlds
- 2
-
45 minutes ago, flydev said:
Also I don't know if people here already heard about of the cloud backup solution for professional, iDrive.
Started using iDrive after CrashPlan announced the end of their Consumer plans. Not a bad product at all and they often have great discounts on the Macworld newsletters.
I'm a bit of a backup junkie and have been through (or am still using)
- Syncplicity
- Sugar Sync
- Crash Plan
- DropBox
- Google Drive
- Amazon Backup Drive
- Amazon S3 storage
-
oDrive
and probably more
However realising this is a ridiculous setup I am going to consolidate soon
Just discovered a really nice app called pCloud recently and it works a little different. It creates a virtual cloud drive on your machine so that any files you put in there don't take up space on your local machine. Worth a look as the Apps and website based account ar every nicely done. As much as I like iDrive and others, some of the interfaces are awful. iDrive looks like something from the 90s.
- 1
-
Very nice. Seems like a nice mix of the Repeater Matrix (Pro Fields Module) and Page Table Extended.
- 1
-
I'm getting the error below
QuoteWarning: filesize(): stat failed for /home/floriann/public_html/site/assets/logs/duplicator.txt in /home/floriann/public_html/wire/core/FileLog.php on line 225
Warning: filesize(): stat failed for /home/floriann/public_html/site/assets/logs/duplicator.txt in /home/floriann/public_html/wire/core/FileLog.php on line 225
Warning: filesize(): stat failed for /home/floriann/public_html/site/assets/logs/duplicator.txt in /home/floriann/public_html/wire/core/FileLog.php on line 237
Warning: file(/home/floriann/public_html/site/assets/logs/duplicator.txt): failed to open stream: No such file or directory in /home/floriann/public_html/wire/core/FileLog.php on line 238The mention of filesize is odd because this site is a 1 page holding page with 4 medium images. Other than that it's the usual 3.0.96 files.
This is on a server which I don't have complete control over. Otherwise I'd get you better server info.
- 1
-
1 hour ago, dragan said:
Sorry, not much help with concrete infos about Hubspot, but just a hint what to look out for if you take a test-run.
No, that’s very helpful. Thanks ?
-
Just a general question but has anyone tried integrating Processwire with HubSpot's API.
If so - how did you generally find it? Anything to be aware of?
-
1 hour ago, nikoka said:
Thanks @flydev, credentials were alright, but turned out it was the host that was the problem, site is running on A2. So it's the same problem @Peter Knight ran into.
Hi @nikoka
If you're running A2 Hosting on a Lite, Swift or Turbo plan OR Reseller plan then external SMTP servers won't work.
Here's the full support page
I had just started using A2 for my hosting and was about to migrate about 10 sites from a VPS. Really glad I discovered this early when I had just moved the first site.
FYI I moved to Hostinger. I've had a few setup issues but they do allow external SMTP processing.
-
A minor gripe but one that trips me up every time.
When there's naming error on a field, ALL the field values are erased and I have to setup everything again. IE name, type, label and descriptions details and sometimes notes.
Would be really helpful if ProcessWire didn't zap all the values but just cleared the illegal field name.
- 3
-
Had a response from the host themselves. Actually, their live chat is pretty helpful.
The server didn't have mod rewrite enabled apparently and that was causing the issues.
I still get a back end error as follows but I can live with that.
QuoteNotice: Undefined index: local in /home/u752001136/public_html/site/assets/cache/FileCompiler/site/modules/ProcessWireUpgrade/ProcessWireUpgradeCheck.moduleon line 266
-
I'm getting lots of errors on a Processwire site I moved. It's a new host and it's my first time trying their platform.
I'm not sure if this is a hosting issue or a problem caused by the move.
If I list them below I'd be interested in your thoughts.
Error displayed when completing a contact form
Error: Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away (in /home/u752001136/public_html/wire/core/Modules.php line 2981) #0 /home/u752001136/public_html/wire/core/Modules.php(2981): PDOStatement->execute() #1 /home/u752001136/public_html/wire/core/Modules.php(3381): ProcessWire\Modules->getConfig(Object(ProcessWire\ProcessPageSearch)) #2 /home/u752001136/public_html/wire/core/Modules.php(586): ProcessWire\Modules->setModuleConfigData(Object(ProcessWire\ProcessPageSearch)) #3 /home/u752001136/public_html/wire/core/Modules.php(1246): ProcessWire\Modules->initModule(Object(ProcessWire\ProcessPageSearch), false) #4 /home/u752001136/public_html/wire/core/Modules.php(1141): ProcessWire\Modules->getModule('ProcessPageSear...') #5 /home/u752001136/public_html/wire/modules/AdminTheme/AdminThemeReno/default.php(27): ProcessWire\Modules->get('ProcessPageSear...') #6 /home/u752001136/public_html/wire/core/admin.php(176): require('/home/u75200113...') #7 /home/u752001136/public_html/wire/modules/Admin This error message was shown because: site is in debug mode. ($config->debug = true; => /site/config.php). Error has been logged.
Error displayed when using the Upgrades module and upgrading from 3.0.62 to 3.0.93Pressing the Backup Database Now button displays
QuoteWarning: Error while sending QUERY packet. PID=11389 in /home/u752001136/public_html/wire/core/WireDatabaseBackup.php on line 796
Error displayed randomly in the Admin
Notice: Undefined index: local in /home/u752001136/public_html/site/assets/cache/FileCompiler/site/modules/ProcessWireUpgrade/ProcessWireUpgradeCheck.module on line 266 Notice: Undefined index: title in /home/u752001136/public_html/site/assets/cache/FileCompiler/site/modules/ProcessWireUpgrade/ProcessWireUpgrade.module on line 209 Notice: Undefined index: local in /home/u752001136/public_html/site/assets/cache/FileCompiler/site/modules/ProcessWireUpgrade/ProcessWireUpgrade.module on line 211
Key questions is wether this is a setup issue or simply a shared host with too many sites and not enough resources.
-
43 minutes ago, cstevensjr said:
The key thing is that you changed hosts and now are having issues getting mail to work properly.
Solved it. I had just assumed that allowing SMTP processing by 3rd parties was a basic feature of mosts hosts.
Unfortunately my new host (A2 Hosting) actually don't allow this unless you're on a high level plan. :-/
-
I moved my site over to a new host and am starting to see errors on my contact form which uses FormBuilder and routes via WireMailSMTP
When I submit a form, I receieve the following
QuoteUnable to verify successful email delivery of this form submission.
I wondered if this were a WireMailSMTP issues and tried the Test Settings checkbox
Quote535 Incorrect authentication data
The thing is, my PostMark App authentication credentials haven't changed in the move.
Just to be sure, I have pasted them in place again with the same result.
I then tried to create new Server API tokens, hooked these up and had the same error.
I don't believe this is an issue with PostMarkApp (just a hunch) and wondering if anyone had any ideas?
Wondered if it might be an issue with the new host stopping somewhow outgoing connections to PostMarkApp etc?
Can't link to external URL
in General Support
Posted
That's not the issue ? but thanks for spotting it.
The example I posted had a typo but the actual code used was correct.