Peter Knight
Members-
Posts
1,396 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Peter Knight
-
☁️ Duplicator: Backup and move sites
Peter Knight replied to flydev's topic in Module/Plugin Development
You mean @flydev -
☁️ Duplicator: Backup and move sites
Peter Knight replied to flydev's topic in Module/Plugin Development
Finally working - thanks for the help. Steps to resolve. 1. Use normal FTP mode instead of FTPS or SFTP 2. In the host field I was using ftp://hostname.ddns.me instead of just hostname.ddns.me 3. Use passive mode as you suggest Thanks again. Really nice Module you have there. I normally do backups to a VPS because it has inbuilt drop-box backups. However it's getting to be an expensive entreprise so storing them on my own NAS like this will really help. Looking forward to DropBox integration too. I notice it's temporarily parked. -
☁️ Duplicator: Backup and move sites
Peter Knight replied to flydev's topic in Module/Plugin Development
@fly Yes - Most likely. Thanks for spotting that. I only have the following protocols enabled enabled on my destination so if It can connect on FTPS then it could be a port number issue? FTPS (port 21) SFTP (port 22) I turned on normal FTP mode and had more success but not 100% success 2017-12-27 10:07:11: - job finished in 34.438614sec 2017-12-27 10:07:11: [FTP] error: cannot upload file <2017-12-27_10-06-37-www.mysite.com.package.zip> on server. 2017-12-27 10:07:11: FTP: starting upload of /var/www/vhosts/mysite.com/httpdocs/site/assets/backups/2017-12-27_10-06-37-www.mysite.com.package.zip 2017-12-27 10:07:11: FTP: directory listing of BackupFolder successfull. 2017-12-27 10:07:11: FTP: retrieving directory listing of BackupFolder... 2017-12-27 10:07:11: FTP: directory listing of ShareFolder successfull. 2017-12-27 10:07:11: FTP: retrieving directory listing of Sharey01... 2017-12-27 10:07:11: FTP: logged in. 2017-12-27 10:07:11: FTP: connection established. 2017-12-27 10:07:11: FTP: connecting to domain.ddns.me:21... 2017-12-27 10:07:11: - package saved in local folder: 2017-12-27_10-06-37-www.mysite.com.package.zip -
☁️ Duplicator: Backup and move sites
Peter Knight replied to flydev's topic in Module/Plugin Development
@horst The server running Processwire installation: PHP: 5.4.37 OS: CentOS 6.3 (Final) -
☁️ Duplicator: Backup and move sites
Peter Knight replied to flydev's topic in Module/Plugin Development
I'm trying to use the FTP backup function to a server and repeatedly get an error in the logs. 2017-12-27 09:30:11: [FTP] error: cannot connect to <sftp://domain.ddns.me> on port <22> I've checked and double checked my credentials and have 4 separate FTP applications here open and connecting with the same details. Have also tried and re-tried a combination of regular FTP mode, port 21 V 22, passive mode etc. Are there any know FTP issues reported? -
Merry Christmas everyone.* Have a wonderful holiday. I hope you get to down tools and take a well deserved break from the computer ... OR ... just keep at it and learn something new. * everyone who celebrates it
-
Cue lots of PW developers wondering how much work it'd be to create a PWforum module over the Christmas
-
Form Builder: paragraph between inputfields
Peter Knight replied to johnnydoe's topic in General Support
Hey I just checked and it doesn't seem like that's possible right now. If you're referring to the paid FormBuilder module, you might want to ask on the official VIP FormBuilder Support area? https://processwire.com/talk/forum/18-form-builder-support/ -
I have the following code which creates a 2 column div. In the first I check to see if there are any images present and only echo an image if there is. If I don't do this, I get an error. But I was wondering if there was a more efficient way to do this? I don't know the proper terminology but I suspect breaking the code into three parts as I have done ... First - the first <div class='uk-width-1-2@s'> Second - the image check Third - the final div ...is somewhat more verbose than it needs to be with more modern PHP <?php $imgoptions = array('quality' => 100,'upscaling' => false); $products = $page->siblings("id!=$page"); foreach ($products as $prod){ echo" <div class='uk-width-1-2@s'> "; if(count($prod->images)){ echo" <a href='$prod->url'> <img class='lazyload prod-thumb-ov' src='{$prod->images->first()->height(300, $imgoptions)->url}' data-src='{$prod->images->first()->height(300, $imgoptions)->url}' data-srcset=' {$prod->images->first()->width(414)->url} 414w, {$prod->images->first()->width(320)->url} 320w' data-sizes='auto' alt='{$prod->images->first()->description}'> </a> ";} echo " </div> <div class='uk-width-1-2@s'> {$prod->title} </div> ";} ?> Thanks
-
Nice site. Funny coincidence but the day before your post I picked up a nice bottle of Cloudy Bay Pelorus here in Sydney.
-
That's my mistake. Thanks
-
Is the template name a value which I can display? I've read the API docs re. template names and tried a few things including below but nothing works so far. Template is: {$page->$template->name} FYI I'm building a small 'helper' section in a footer which is only visible to admins and it will display page ID, template name and a link to edit the page. Everything working apart from displaying the template name.
-
More GoDaddy weirdness. Clicking many of the links within ProcessWire admin results in a 500 error. For example, Modules > Refresh does this as does the Upgrades link. The only way I can get the site to work again is to reimport a backed up database. I'm going to move this site asap but thought I'd add it to the list of reasons not to use this service.
-
Thanks @BitPoet Good to know. I think some DNS settings (CNAME and alias) were confusing things. I worked around it.
-
I have a single Processwire install with two domains pointing to it. There's in-progress.com which is the "proper domain" and won't be live for a few months mini-project.com which needs to go live immediately but just point to a sub-page Is there a way with .htaccess to know when the site is being accessed through mini-project.com, keep that address is the browser bar and redirect to mini-project.com/project-home/ To give a little context, a part of the in-progress needs to be accessible immediately and we've registered that temporary mini-project.com and pointed it at the same site. The key here is to only do that redirect when mini-project.com is the source request. Otherwise I guess I'd use Jumplinks etc
-
Good approach. Same here on the authentication etc. I just verified a single domain - one of my own and send in all responses to clients as "webforms@edenstudios.com". They're pretty ok with that as they recognise them immediately.
-
Snap here on the PostMarkApp part. It may have been you who pointed me to them. Do you verify all your individual domains via SPF and DKIM verified authentication? P
-
I have about 50 pages which are just containers for their child pages. What's the most efficient way to exclude these parent pages from Searches? I'm using Ryan's code here I guess I have a few options but is number 2 here the best way or is there anything I haven't considered which would be better? 1. Mark as 'Hidden: Exclude from lists and searches" Isn't an option because it hides from lists which I use. 2. Tell the selector to ignore a particular template(s) Sounds like a good approach 3. Create my own checkbox called "Search Ignore" and add it into a selector Could work but it seems like a ton of work to manually edit all the pages I want to ignore Cheers
-
BTW in above statement I should clarify that you should try building a blog yourself as opposed to building a Module.
-
I wouldn't start by installing a Module such as Blog etc. I believe for you, a better approach would be to gradually build your own from scratch. You'll learn a lot more that way. Start with a few individual pages based on a template called "blog-post" and add a few basic fields. Just title, summary and body would be fine. Once you can make and view them then try to create a blog overview or homepage displaying the title and summary of each and a link to each full post. Lets say that template is called blog-posts (plural) You'll get a real kick out of just being able to do that and you're just echoing simple tags and getting to know "foreach" statements. Then try to add a date field to each blog post and add that to both templates. Later you can try adding a main image, maybe even an author and then move onto tags and categories. I think you'll get much more enjoyment out of building your own and a better understanding of the fundamentals.
-
Can you drop your own sample into a CodePen or similar? Anytime I've had margin or padding issues with UI kit it's because I was missing a uk-grid or had my own CSS interfering with the flow.
-
PW 3.0.77 – AdminThemeUikit looking like PW
Peter Knight replied to ryan's topic in News & Announcements
Reinstalling did the trick. -
PW 3.0.77 – AdminThemeUikit looking like PW
Peter Knight replied to ryan's topic in News & Announcements
I had a botched upgrade today and looking for some help. I was running the previous UIKit theme and then tried to install the new version. Fatal error: Class 'ProcessWire\AdminThemeFramework' not found in /var/www/vhosts/domain.com/httpdocs/site/modules/AdminThemeUikit/AdminThemeUikit.module on line 18 The odd thing is I seem to have all the files in place I need. I'm going to try restore the database to see if that helps and reinstall my wire and index files etc -
@abdus That Might be a hybrid theme or a version of the RenoTheme. Either way - love his implementation. I was trying to figure out those little arrows on the drop down menus. Looks like Ryan has it in hand etc.
-
If you or anyone else wants to make this happen, let me know. Possibly wait until I know Ryan's plans. I don't want to duplicate work or have several almost identical themes. ? I can supply raw css. Just need someone who knows Git, Less and has time to collaborate etc.