Fatal error: Uncaught Error: Call to a member function setBodyAttachment() on null in /home/vestuv/web/vestuviniaiziedai.lt/public_html/app/code/Dipolis/Callmeform/Mail/Template/TransportBuilder.php:11 Stack trace: #0 /home/vestuv/web/vestuviniaiziedai.lt/public_html/app/code/Dipolis/Callmeform/Controller/Index/Post.php(77): Getting error while trying to send custom email with attachment In Magento 2.3.3 Sent mail code $fileDirectoryPath = $this->directoryList->getPath(MagentoFrameworkAppFilesystemDirectoryList::VAR_DIR).'/tmp'; $filePath = $fileDirectoryPath . '/' . $_FILES['attachment']['name']; move_uploaded_file($_FILES['attachment']['tmp_name'], $filePath); try { if($_FILES['attachment']['name']){ $fileName […]
Blog
I want to implement a proxy which has two (A and B) servers in the middle. traffic goes from my computer to server B and then to server A and then gets the data. I found that with this configuration in ~/.ssh/config: HOST B HostName B user debian DynamicForward 0.0.0.0:1081 […]
After years of working on Ubuntu Unity, I switched to MacOS about a year ago. However, the lack of window management keyboard shortcuts is seriously hampering my workflow. I am looking for a window management solution that has keyboard shortcuts that have the following features: Snap windows to left or […]
I’m trying to fix something that’s simple but yet can’t seem to put my finger on it. I have this very simple batch file that when you drop a folder on it it converts a bunch of files to another format. I’m trying to add a progress indicator to the […]
I have a server that multiple users access. On that server a CIFS drive is mounted through fstab. Mounting the CIFS drive requires sending the password in plaintext. This is not something I can change. Multiple users require sudo access, unfortunately this also cannot change. Of course, root owns /etc/fstab, […]
I have a windows on 500GB SSD and other data on 1TB HDD. The HDD is very loud (It annoys me only because it’s on the right side and the assimetry gets is very noticable). I have found an option for that in windows but even if I set it […]
In this article, we’re going to create an iOS-inspired toggle switch using React components. By the end, we’ll have built a simple demo React App that uses our custom toggle switch component. We could use third-party libraries for this, but building from scratch allows us to better understand how our […]
TypeScript allows us to decorate specification-compliant ECMAScript with type information that we can analyze and output as plain JavaScript using a dedicated compiler. In large-scale projects, this sort of static analysis can catch potential bugs ahead of resorting to lengthy debugging sessions, let alone deploying to production. However, reference types […]
Part one of a series covering the use of command line tools like PHP CS Fixer & PHP CodeSniffer to aid in migrating a legacy PHP application from v 5.6 to 7.3.