-
Posts
65 -
Joined
-
Last visited
About ttttim
- Birthday 09/07/1989
Profile Information
-
Gender
Male
-
Location
Utrecht, Netherlands
Recent Profile Visitors
3,719 profile views
ttttim's Achievements
Full Member (4/6)
20
Reputation
-
ttttim started following Page autocomplete returns 403 error , Dynamic Options , WireMailBrevo and 2 others
-
I have a strange issue where a Dynamic Options field returns empty when called from a page parser within the AppApi in ProcessWire. When I do the same call using Tracy Debugger, it works perfectly. I'm simply using $page->field_name to output a single value. I've tried some debugging and found that in the AppApi context, the ___formatValue method returns an empty $value. However, I don't fully understand the underlying structure of how field data is retrieved in ProcessWire. Has anyone encountered this issue or can explain why this might be happening? Any help on understanding or resolving this would be appreciated.
-
Thank you @netcarver you're work on the WireMailPostmark Module was a great starting point.
-
Just launched my first public Module ? This module allows ProcessWire to send transactional emails via Brevo. Download the latest version: https://github.com/ttttim0709/WireMailBrevo Installation Copy the WireMailBrevo directory into your site/modules/ directory. In the ProcessWire admin, go to Modules > Refresh. Click "Install" next to the WireMailBrevo module. Usage Example usage: $email = $mail->new(); $email->to = 'recipient@somedomain.com'; $email->subject = 'Test #1'; $email->body = 'An example email'; $email->send(); Use of Versions: Check the Brevo dev section for more information about Message versions $email->versions([ [ 'to' => [ [ 'email' => 'bob@example.com', 'name' => 'Bob Anderson' ], [ 'email' => 'anne@example.com', 'name' => 'Anne Smith' ], ], 'subject' => 'This is my version subject line', ], [ 'to' => [ [ 'email' => 'jim@example.com', 'name' => 'Jim Stevens' ] ], 'htmlContent' => "<!DOCTYPE html><html><body><h1>Modified header!</h1><p>This is still a paragraph</p></body></html>", ], ]); Configuration After installing the module, you can configure it by going to the module settings page. You need to provide the following configuration options: Brevo API Key: Obtain this key from your Brevo account settings. Sender Email Address: The email address to be used as the sender. Sender Name: The name associated with the sender's email address.
-
Error while cloning a page with images in repeater item
ttttim replied to ttttim's topic in Getting Started
@admin this post would fit better in the general support is there a way to move it? -
I'm having some problems on a website of mine when using the clone option. The page has a Repeatermatrix field with a few options like image/text/etc. The problem seems to be copying the image as I'm seeing 2 errors in the logs: Image-Sizer: Original image does not exist to create size variation and Exceptions: DirectoryIterator::__construct(/site/assets/files/10187/): Could not open directory: File or folder does not exist The page is copied, the repeater items are copied, but only up to the first image item. The image field inside the repeater contains an empty image. And the repeater items after that image are ignored. When testing locally I have no problems at all. I've changed the image files to see if there was an error with a specific file, but that doesn't resolve anything. Does anyone have any idea where to look next? PW version 3.0.229 / PHP 8.2.13
-
I've been encountering frequent Error in hnsmtp::send : cannot connect to smtp-server! errors indicating a failure to connect to the SMTP server. I'm using Brevo, formerly known as SendinBlue, and this issue only started a few months ago. The errors seem to occur randomly, with varying frequency, ranging from ten times a day to once a week. I've reached out to Brevo for assistance, but they haven't identified any issues so far. Additionally, I recently conducted an external SMTP test on dnschecker.org, and it consistently succeeded each time (though this might be coincidental). The problem persists regardless of whether I test the connection locally or in a live environment. I'm wondering if there's a way to debug the SMTP connection to gather more information about the problem.
-
The weird part is that i have so far 3 website's that are facing these problems. And not just on my computer but clients had the same problems. The steps i already took: Use: $config->sessionFingerprint = false; Use: Session Handler Database Clear: cookies and cache Disable: all module Other website's with the same PW version are not having any trouble. The hard part is that i can't find any errors in the logs. The logs are not recording the loggin out. Debug isn't giving any error i'm simply just logged out. The Randomness drives me a bit crazy. Anyone has any leads to vinding the issue?
-
@ryan Browsing private does seem to fix the issue, but deleting all cache and cookies for normal browsing does not. Setting the sessionFingerprint to false doesn't work. The problem only seem to kick in ben loading data with Ajax so loading pages, repeaters and modals.
-
I've recently updated my MacBook but now safari keeps logging out the CMS. And most of the times after trying to log back in i get an error This request was aborted because it appears to be forged. The session log is not reporting the logout so I suspect it has something to do with safari not reading the session files? Anybody got a workaround?
-
How to add mini-image to the selectable options?
ttttim replied to Clarity's topic in General Support
You can do this with a little bit of extra CSS. This example is what i use for a radio select .Inputfield_select_option input + .pw-no-select { position: relative; padding-top: 70px; margin-bottom: 20px; width: 100%; display: inline-block; text-align: center; color: #333; font-size: 14px; cursor: pointer; } .Inputfield_select_option input + .pw-no-select::before { content: ""; position: absolute; width: 100%; height: 50px; top: 0; left: 0; display: inline-block; background-size: contain; background-position: center; background-repeat: no-repeat; border: #d9e1ea 1px solid; border-radius: 3px; margin-bottom: 5px; } .Inputfield_select_option input:checked + .pw-no-select::before { border: #2a2a2b 2px solid; } #Inputfield_select_option_1 + .pw-no-select::before { background-image: url(images/option1.png); } #Inputfield_select_option_2 + .pw-no-select::before { background-image: url(images/option2.png); } #Inputfield_select_option_3 + .pw-no-select::before { background-image: url(images/option3.png); } To add a custom CSS the link below shows one way of doing so. -
I have an application running which every night imports/update data from an API. Below is a sort of summary about the code: $data = callApi($urL); //returns all the course id's for ($i=0; $i<count($data); $i++) { $id = $data[$i]->id; //for every id do an extra api call to get detailed information. $course_data = callApi($url, $id); //get course page or create a new page //update fields if data has changed } The API doesn't return a timestamp for changes so i can't check if there has been updates since the last import. Meaning i have to make an API call for every course to get the detailed information and have to loop through every field to see if something has changed. The code works fine but the problem is that i often get a 504 Gateway Time-out because the script is taking to long... Is there a way to run the code in the background or is my only option to increase the max_execution_time?
-
When using the autocomplete field i get a JS 403 error You do not have permission to access this document. Anyone else got this error? UPDATE When checking the hosting i get the following warnings : COMODO WAF: URL Encoding Abuse Attack Attempt / Invalid URL Encoding: Non-hexadecimal digits used at REQUEST_URI SOLVED! The problem was caused by using %= as search operator when switching to *= it worked again.
-
RockMigrations1 - Easy migrations from dev/staging to live server
ttttim replied to bernhard's topic in Modules/Plugins
? thanks -
RockMigrations1 - Easy migrations from dev/staging to live server
ttttim replied to bernhard's topic in Modules/Plugins
Kind of How would it work for field settings?