![](http://processwire-forums.s3.us-west-2.amazonaws.com/set_resources_6/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
alan
Members-
Posts
854 -
Joined
-
Last visited
-
Days Won
1
Everything posted by alan
-
With no dislike to PW, I am nonetheless looking for a database-less, static site solution for a website, and after quite a lot of research I have decided to try Publii https://getpublii.com/ Hopefully it will be a good experience and I will remember to comment on my experience here, in case anyone else is interested.
-
Hi @Pete, sorry to resurrect this in 2023, but I can't login at https://directory.processwire.com/login/, I am getting a red pop-up saying There was an error processing your details. Please try again. I tried in incognito and in a different browser with no historic session info. I am attempting to login in order to change my bio in the Developer Directory (I assume this is the right spot to do that). Thanks very much for any help : ) Cheers, Alan
-
Solved. I had an old system of my own that I'd updated and I think at some point I just installed any module with the word "Hanna" in the title on the unscientific assumption it would add to the Hanna goodness of the site. I think the problem was simply that I was using this older module with a new PW and a new main Hanna. And I second what @gmclelland said to @teppo -- thanks indeed for all you do with Processwire! That module served me well back in the day and I just removed it on this new v3 PW site and all is working AOK now. Thanks for all the clues I spotted in other posts that helped me solve this! Cheers, Alan
-
Hi forum, Long time since I posted, sorry it's a question not an answer o_O I had an old site, I upgraded everything and I have one stubborn issue that seems to be Hanna specific. I removed all of the Hanna modules (helper modules and main) and all is good. I added the modules back, all is good. I add one Hanna item from the admin, with the name OK (so it does nothing at all) and when I go to edit any page the admin UI returns The process returned no content. The fuller error is below. I am stuck : ( Sorry to have hit a wall and having to ask here, I just hope it's obvious and this post when solved will help someone else perhaps. Thanks very much for any ideas, cheers, Alan ProcessPageEdit: Method TextformatterHannaCode::extractDefaultCodeAttrs does not exist or is not... ProcessPageEdit: Method TextformatterHannaCode::extractDefaultCodeAttrs does not exist or is not callable in this context DEBUG MODE BACKTRACE ($config->debug == true): #0 abc/wire/core/Wire.php(420): ProcessWire\Wire->___callUnknown('extractDefaultC...', Array) #1 abc/wire/core/WireHooks.php(951): ProcessWire\Wire->_callMethod('___callUnknown', Array) #2 abc/wire/core/Wire.php(485): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TextformatterHannaCode), 'callUnknown', Array) #3 abc/wire/core/Wire.php(488): ProcessWire\Wire->__call('callUnknown', Array) #4 abc/site/assets/cache/FileCompiler/site/modules/HannaCodeHelper/HannaCodeHelper.module(123): ProcessWire\Wire->__call('extractDefaultC...', Array) #5 abc/site/assets/cache/FileCompiler/site/modules/HannaCodeHelper/HannaCodeHelper.module(93): HannaCodeHelper->getJSON() #6 abc/wire/core/WireHooks.php(1059): HannaCodeHelper->inject(Object(ProcessWire\HookEvent)) #7 abc/wire/core/Wire.php(485): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageEdit), 'execute', Array) #8 abc/wire/core/ProcessController.php(337): ProcessWire\Wire->__call('execute', Array) #9 abc/wire/core/Wire.php(414): ProcessWire\ProcessController->___execute() #10 abc/wire/core/WireHooks.php(951): ProcessWire\Wire->_callMethod('___execute', Array) #11 abc/wire/core/Wire.php(485): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessController), 'execute', Array) #12 abc/wire/core/admin.php(160): ProcessWire\Wire->__call('execute', Array) #13 abc/wire/modules/AdminTheme/AdminThemeDefault/controller.php(13): require('/home/alanfluff...') #14 abc/site/assets/cache/FileCompiler/site/templates/admin.php(15): require('/home/alanfluff...') #15 abc/wire/core/TemplateFile.php(327): require('/home/alanfluff...') #16 abc/wire/core/Wire.php(414): ProcessWire\TemplateFile->___render() #17 abc/wire/core/WireHooks.php(951): ProcessWire\Wire->_callMethod('___render', Array) #18 abc/wire/core/Wire.php(485): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #19 abc/wire/modules/PageRender.module(575): ProcessWire\Wire->__call('render', Array) #20 abc/wire/core/Wire.php(417): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #21 abc/wire/core/WireHooks.php(951): ProcessWire\Wire->_callMethod('___renderPage', Array) #22 abc/wire/core/Wire.php(485): ProcessWire\WireHooks->runHooks(Object(ProcessWire\PageRender), 'renderPage', Array) #23 abc/wire/core/WireHooks.php(1059): ProcessWire\Wire->__call('renderPage', Array) #24 abc/wire/core/Wire.php(485): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Page), 'render', Array) #25 abc/wire/modules/Process/ProcessPageView.module(184): ProcessWire\Wire->__call('render', Array) #26 abc/wire/modules/Process/ProcessPageView.module(114): ProcessWire\ProcessPageView->renderPage(Object(ProcessWire\Page), Object(ProcessWire\PagesRequest)) #27 abc/wire/core/Wire.php(417): ProcessWire\ProcessPageView->___execute(true) #28 abc/wire/core/WireHooks.php(951): ProcessWire\Wire->_callMethod('___execute', Array) #29 abc/wire/core/Wire.php(485): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageView), 'execute', Array) #30 abc/index.php(55): ProcessWire\Wire->__call('execute', Array) #31 {main} ProcessWire PagesSetupModulesAccessHanna Code1 PagesHome The process returned no content.
-
Has anyone installed Processwire on Amazon EC2?
alan replied to modifiedcontent's topic in General Support
Sorry for the silence @teppo and @netcarver, life changes here have pulled me, for a while, away from PW dev :/ Not bad changes, but just taking my time so I cannot PW. I pay $30 CDN per month to host around 10 sites on AWS. AWS HW is "On Demand Linux t2.micro" w/ 64GB SSD added. Hope all is good w/ you guys here in PW-land : ) -
THANK you @dadish — this; SPA + PW as an API + GraphQL for PW, for me is a milestone exciting proposition. I hope I make it the biggest thing to happen to my PW world since I read the word "ProcessWire" on the bottom generous Marty Walker's web site and first visited processwire.com. First steps for me are reading up on PWAs and finally trying to finish a Wes Bos course on ES6, then I'm off to add in PW as an API & GraphQL. Exciting!
-
Wow o_O @dadish I am humbled by your excellent work here. I stumbled on this thread researching PWAs and then was transfixed for the full 37 minutes of your excellent video intro. Thank you very much indeed for all of this, I am yet again thankful for the ProcessWire community's generous and excellent work. I've had Vue.js noted down as "something I want to use", along with using ProcessWire as/via an API, and most recently, PWAs. I am hoping, if I've not misunderstood, now I may be able to use all these together for a project. Brilliant! \o/
-
Has anyone installed Processwire on Amazon EC2?
alan replied to modifiedcontent's topic in General Support
Over six months into the project and I have, touch wood, had a great experience moving from traditional hosting to Amazon EC2 for hosting around 10 sites. I still plan to write this up, but just wanted to share one little tip I found, probably something any DBA would instantly know but that I had to learn the hard way. I modified a script to export all databases and set it via cron to run at midnight. This worked AOK for 6 months, then I found service `httpd` was down one morning. The reason was simply that the day before I had added one more database to my EC2 and that had tipped the backup process over the brink as far as server load went. Each db was backed up, one after the other, and cumulatively this added to too much intense load. The solution I used was simply to add a 5min pause in the loop in the backup script, between databases. Fixed. Hope this helps someone ? -
@justb3a Thank you very much for this, 100% fixed the problem, cheers!
-
NO! Chat sometimes results in a solution, even if one doesn't know about a thing Thanks for trying and Happy Christmas in Austria \o/
-
Yes, can do that, thanks again @bernhard but it feels like this is something the SCF module does already, e.g. it supports setting a success message in a set of JSON options, and indeed it then shows the message. So all looks 100% ok, unless I nav to some other page, then go back. Maybe a bug in the module (doubt it, more likely a bug in me )
-
Thanks @bernhard by coincidence I am on that exact page now I've tried some of this before but not this exact page. It looks like I can 100% solve it by redirecting to a new page (the module allows me to do this), but if I do then the module's nice support for a `Success` message is lost, so no error but also no message. Gonna keep experimenting to see if I can get the best of both worlds.
-
still unable to fix my form resubmission warning, just in case anyone has a clever thought to spare that might give me a clue to what I am missing.
-
@Thomasaurus Always worth checking the anti-spam settings to make sure it's not one of those tripping over. The only other thing I've had that I think was similar was when I had two tabs open, signed in as admin - got weird stuff happening nothing to do with SCF specifically but it affected session info - closed one tab, instant fix. Good luck, I am using this Module more now I am getting familiar with it, it's super useful.
-
I have two forms, each on different pages, each with `submitName` values that are unique, in case that helps, and I am finding after a succsessful form submission, if I navigate to a new page, then let the page load then go back in history, to the page where the form was sent from, my browser is complaining `Confirm Form Resubmission`. I can't see anything in the docs on how to clear POST data on a succsessful submission, assuming it's that. Any pointers/help would be much appreciated Thanks in advance ?
-
Hi @Donald, I recently used this Module and may have some tips, but I don't know it as well as others: I was able to send as many tests as I liked, as long as I had settings: Minimum time: 1 Maximum time: 300 (i.e. large) Restrict submissions: 300 (i.e. large) Exclude IP: 127.0.0.1 Sorry if you have tried exactly this and it doesn't help. In the GUI Admin, click Setup > Logs > simplecontactform-log This is a bit more involved, but essentially read the docs where it tells you how to use an 'options' array, populated with settings. One of the settings in naming the form and naming the fields that form is able to use. Then elsewhere in your template or another template, you do the same but the contents of the 'options' array is different, naming different fields from those available listed in the Module (where you add them). Essentially the Module GUI allows you to insert any fields that will be used across one or more forms and it's the calling of the forms in your code that determines which fields are rendered and used. I think I have got this correct and I hope it's helpful, very sorry if not. Good luck!
-
Thanks @Robin S, I'll check that out ?
-
Sorry if this is not too relevant to this thread, but, in case anyone is here trying to solve why they get `?it=` added to the URL and anchor redirects don't work properly, for my install that always failed I finally found a workaround.
-
Dunno if the problem I have had is exactly the same, but, FWIW, I have a site with ProCache and regardless of whether I delete and rebuild the cache, if I add a redirect in `.htaccess` to a page with an anchor tag, then the site actually ends up at a page with `?it=` and the redirect only gets as far as the page, the scroll to the anchor is ignored. For me the fix was to use this syntax: Redirect 301 /my-short-cut http://example.com/the/long/page/to/go-to/?it=qik/my-short-cut#theAnchorIwant The rule I *would* have used until now was Redirect 301 /my-short-cut http://example.com/the/long/page/to/go-to/#theAnchorIwant but that fails as described. Now I just amend to insert the `/?it=qik/` followed by the text to the right of `301` i.e. `my-short-cut` followed by a `/` and finally the `#anchor`. This was a hard error I could NOT get rid of and I just had to accept not being able to do this. SO glad I found a workaround, hope this helps others ? PS: I don't think this is to do with ProCache, I think it's maybe to do with my hoster(?) - I'm not sure, but this one's been *such* a pain I really don't care, just glad to have got past it
-
THANK you @BitPoet for the answer and @Neo for posting this Q — totally saved me from a frustrating end to a day of coding. I suppose standard practice for uploading a site is to not transfer the contents of the /assets/cache/ folder? If so, I'll bet this is documented and I missed it…
-
@adrian thank you very much for the tips and that link, off to go and bookmark—brilliant!
-
o_O s t u n n e d to see what I have been missing by not using Tracy. THANK you again @adrian for the post and for Tracy!
-
@adrian not at all! I love being reminded of Tracy. Off to go look it up again. I am embarrassed to say I looked briefly when you released Tracy and I think I saw some dependancy of mine that meant a slight question and I never went further. I am very impressed to see that you can do per your screenshot, clearly I am a total newb' in some respects, when it comes to debugging, I will turn on, er, `debug` and that's about as far as I get, then it's adding `echo` here and there to see stuff. tl;dr I am eXCITEd to go look at your module! Thanks! ?