-
Posts
926 -
Joined
-
Last visited
-
Days Won
1
Everything posted by PWaddict
-
No, I'm getting just 1 email. I've only changed the 203 and 211 lines and everything seems to properly work. Thanks for the help.
-
@strandoo The above error text issue is caused by the 245 changed line.
-
@strandoo I changed the 211 line and now it works but if I try to submit the form without checking the reCAPTCHA I'm getting the error "InputfieldRecaptcha" instead of the "Failed reCAPTCHA input test" as it should be due to the following hook: $wire->addHookBefore('SimpleContactForm::processValidation', function(HookEvent $event) { $form = $event->arguments(0); $recaptcha = $form->get('recaptcha'); // add error if not pass the reCaptcha test if (!$this->input->post->{'g-recaptcha-response'}) { // attach an error to the field $recaptcha->error(__('Failed reCAPTCHA input test')); // it will be displayed along the field } });
-
@strandoo I replaced $form->getErrors() with $form->getErrorInputfields() on lines 203 and 245 but now I'm always getting SPAM error when I'm trying to fill a form (even without filling the honeypot field) and on the logs I'm getting this: [FAILURE] Number of fields does not match. IP: 127.0.0.1
-
Currently I can't try it cause it requires at least PHP 8. I'm still using PHP 7.4 as I don't want to update yet without testing all modules to make sure everything works properly. @strandoo so far we are the only ones that mentioned this issue and I notice that we both use your reCAPTCHA solution. Have you tested the form without the reCAPTCHA?
-
Yes, only one failed and then 1 second later success! I didn't thought about the PW updates. On January, I've upgraded the one site I'm using this module from 3.0.165 to 3.0.210 but the frequent spam started on April if I remember correctly. No idea what is causing this issue. Don't forget that this is an abandoned module ?
-
[SOLVED] Page Auto Complete doesn't get users for superuser
PWaddict replied to PWaddict's topic in General Support
Problem solved thanks to @matjazp Since I'm using the page referenced field on the user template I had to change the following 2 fields since the user template doesn't have a title field. Fields to query for autocomplete Label field -
Lately, I'm getting lot of SPAM. I checked the log and even it detects the SPAM as FAILURE like "Honeypot field was filled" or "Number of fields does not match" then 1 second later there is a SUCCESS. Here is a log of "Honeypot field was filled": 23 hours ago 2023-06-13 07:38:44 [SUCCESS] Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5042.0 Safari/537.36, 37.212.202.92, myemail@mysite.com 23 hours ago 2023-06-13 07:38:43 [FAILURE] Honeypot field was filled. IP: 37.212.202.92 Here is a log of "Number of fields does not match": 13 minutes ago 2023-06-14 06:24:52 [SUCCESS] Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36, 176.124.220.43, myemail@mysite.com 13 minutes ago 2023-06-14 06:24:51 [FAILURE] Number of fields does not match. IP: 176.124.220.43 I'm also using reCAPTCHA but it seems that spammers have found a way to pass all these...
-
@Java I'm using the 1.07 version and the module is working properly. Which version you have installed?
-
New video: How to add RockMigrations to an existing Project
PWaddict replied to bernhard's topic in RockMigrations
Nice work @bernhard, I'm gonna try RockMigrations soon. -
Free tier email service for (very) occasional emails
PWaddict replied to joe_g's topic in General Support
Yes I know about the aliases but I don't prefer that method because: If your recipient uses Outlook or another mail service, they might see something like, "From yourname@gmail.com on behalf of othername@otherdomain.com." Your recipients might also see your original @gmail.com address if you: Set up an out of office reply Create a filter with automated response Have a full mailbox, and your recipient gets notified Info taken from the Google. -
Hook issue after upgrading to 3.0.210 from 3.0.165
PWaddict replied to PWaddict's topic in General Support
I removed the hook as I don't need it anymore but I'm curious why this doesn't work on 3.0.210. -
Free tier email service for (very) occasional emails
PWaddict replied to joe_g's topic in General Support
You can use your free Gmail account with the free module WireMailSmtp by @horst First make sure you have enabled 2-Step Verification on your Google account. Then create an App password (you gonna need it for WireMailSmtp). Check the screenshot below: Next on WireMailSmtp settings make sure to add the following: Local Hostname: yourdomain.com SMTP Hostname: smtp.gmail.com SMTP Port: 587 SMTP User: youremail@gmail.com SMTP Password: the app password you created on Google account (NOT your Google password) Use START-TLS: Checked Select a crypto method for TLS: STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT Sender Email Address: youremail@gmail.com Sender Name: Your Name I tested the above few months ago and worked fine with a free Gmail account, then I bought Google Workspace so I can use my custom domain instead of @gmail.com. -
Hi @bernhard installed Less module and then AdminStyleRock but when I submit the "Primary Color" field I'm getting the following fatal error: Fatal Error: Uncaught Error: Call to a member function forceRecompile() on null in C:\laragon\www\mysite\site\modules\AdminStyleRock\AdminStyleRock.module.php:168 #0 C:\laragon\www\mysite\site\modules\AdminStyleRock\AdminStyleRock.module.php(123): AdminStyleRock->iframe(Object(InputfieldWrapper)) #1 C:\laragon\www\mysite\wire\core\Modules.php(4112): AdminStyleRock->getModuleConfigInputfields(Object(InputfieldWrapper)) #2 C:\laragon\www\mysite\wire\core\Wire.php(419): Modules->___getModuleConfigInputfields('AdminStyleRock', Object(InputfieldForm)) #3 C:\laragon\www\mysite\wire\core\WireHooks.php(952): Wire->_callMethod('___getModuleCon...', Array) #4 C:\laragon\www\mysite\wire\core\Wire.php(484): WireHooks->runHooks(Object(Modules), 'getModuleConfig...', Array) #5 C:\laragon\www\mysite\wire\modules\Process\ProcessModule\ProcessModule.module(1680): Wire->__call('getModuleConfig.. (line 168 of C:\laragon\www\mysite\site\modules\AdminStyleRock\AdminStyleRock.module.php)
-
@kixe saving the home page causes this: PHP Notice: Trying to get property 'childNameFormat' of non-object in C:\laragon\www\mysite\site\assets\cache\FileCompiler\site\modules\ProcessSetupPageName\ProcessSetupPageName.module on line 404
- 100 replies
-
- template
- autogenerate
-
(and 2 more)
Tagged with:
-
Hello and happy new year! Today, I decided to upgrade a site to 3.0.210 from 3.0.165 and so far I noticed one issue. The following hook doesn't work properly (worked fine on 3.0.165). It changes the text but it won't let the non-superuser to delete the page. Pressing the button redirects the page https://mysite.test/admin/page/edit/?id=11293 to https://mysite.test/admin/page/edit/?id=11293&s=1&c=1 /** * Rename "Move to Trash" text on Delete tab's button * */ $wire->addHookBefore('InputfieldButton::render', function(HookEvent $event) { if ($event->object->id != "submit_delete") return; if ($this->wire('user')->isSuperuser() == false) $event->object->value = "Hello World"; });
-
Thank you for the hint. Here is what I did and it seems it does the job. $wire->addHookBefore('WireMail::send', function(HookEvent $event) { $WireMail = $event->object; if(!$WireMail->bodyHTML && $WireMail->body) { $forcehtml = nl2br($WireMail->body); // nl2br — Inserts HTML line breaks before all newlines in a string $WireMail->bodyHTML($forcehtml); } });
-
Hi, is it possible to force ProcessWire to send all outgoing emails with HTML instead of Plain Text? Password Reset error email for example is sent as plain text.
-
Thanks and sorry for not responding sooner but on the last months I've been busy with other stuff. By the time I will I finish those you will probably already have the website, demos etc. ready. Btw, will you brink back the padloper.pw or the new Padloper "website" will be on processwireshop.pw?
-
Thanks for the reply. You know better how to price your own product but I'm not talking about that. As I'm a Padloper 1 owner it would be really helpful if I knew what Padloper 2 has to offer me that Padloper 1 don't, in order to help me decide if it's worth investing on it since there is no upgrade option with an "attractive discount" as you originally planned (btw, that would probably be an instant upgrade ?) Since we agree to disagree, I will wait for the new Padloper website to check all features, demo videos etc...
-
Hey guys, Has anyone built a multi vendor marketplace with ProcessWire? Did you used Padloper and Login Register Pro too? On the e-commerce section of the ProcessWire sites showcase I didn't find any marketplace there. If you know any multi vendor marketplace powered by ProcessWire please share a link via pm. I would really like to see it in action. Thanks.
-
Congrats on releasing Padloper 2 ? Can you show us a feature comparison list between Padloper 1 & 2? I'm Padloper 1 (dev) owner and I would like to know if it's really worth paying x6 the price of the first version. Thanks in advance.
-
@sms77io Is it possible to send sms via PW API?
-
Yes, I'm 100% sure. ProcessWire has 2 properties for cache-busting, URL & HTTPURL. Taken from https://processwire.com/api/ref/pageimage/: HTTPURL string Same as the cache-busting uppercase “URL” property, but includes scheme and hostname. URL string Same as $url property but with browser cache busting query string appended. Taken from https://processwire.com/blog/posts/pw-3.0.98-procache-buster/: ProcessWire's file and image fields (represented by Pagefile and Pageimage objects) already have an uppercase URL property which always returns a cache-busting version of the file's URL. This is the case whether you've got ProCache installed or not. But in ProcessWire master 3.0.96 or newer, ProCache Buster updates that URL property to use ProCache's enhanced buster, rather than the one built-in to the core.