An error that says “Call to undefined function Intervention\Image\finfo_buffer()”. This error can occur if the PHP fileinfo extension is not installed or enabled on your system. The fileinfo extension is used by the Intervention/Image package to determine the type of image files that you’re trying to manipulate. Without this extension, you won’t be able to …
Category: Coding Notes
Current Password Is Not Secure On Shopify
I recently received a new error message on Shopify but wasn’t sure if it was real or not but after contacting their live support it seems that it is indeed real. Your account couldn’t be accessed because the current password is not secure. You will receive an email to update your password. Shopify has added …
Cmd File For Different PHP Versions on Windows
I’ve been working with some clients who ran Laravel under older PHP versions than I have installed so I needed a quicker way to access the correct versions in command prompt. 1. Make sure you download the PHP versions you need or use wampserver. I needed 2 different versions PHP 7.3 and PHP 7.4 2. …
ERR_EMPTY_RESPONSE in WordPress and Visual Composer
The Problem While trying to troubleshoot a client’s website I kept seeing this message when trying to access the Page Menu / Edit a page. This page isn’t working ____ didn’t send any data. ERR_EMPTY_RESPONSE Turns out the issue was triggered by the Visual Composer plugin. The Fix In apache/.htaccess I increased the SubstituteMaxLineLength level …
Append Tags to Shopify Products Using PHP
I’m using the code below to update hundreds of product tags in Shopify, you might be able to find an app in Shopify but this way seems quicker for me. This code was tested on API version 2020-01. PHP 7.2 + Required This code uses your terminal/command prompt to execute the php script and requires …
Sending Leads From Contact 7 Form to BigPurpleDot Using WordPress
BigPurpleDot is a powerful real estate management software for lenders & realtors. You can use their API to send leads from WordPress Contact 7 Form to their CRM platform. The Code Edit the variables below ($formId, $apiUser & $apiSecret) and place the code in your current themes functions.php. $formId – is your Contact Form Id. …
Cursor-Based Pagination Under Shopify’s Latest API
Example PHP code for cursor-based pagination using the phpclassic/php-shopify package.
Delete Duplicate Photo Albums in XCode Objective-C
I accidentally created too many photo albums with the same name, I needed a solution to delete it all without manually deleting it. There’s probably an easier way to do this if you know it let me know. NSString *albumName = @”SOME ALBUM”; __block PHAssetCollection *albumCollection = [[PHAssetCollection alloc] init]; PHFetchOptions *albumOptions = [[PHFetchOptions alloc] …
Shopify Abandon Email – Check If User Used Existing Discount Code
Solution for detecting if a user has already used a certain coupon code in shopify’s abandon email template.
Send Email Attachments With MailJet
I didn’t use the mailjet wrapper, instead I used curl to call the request. Here’s an example code to send a pdf attachment file with mailjet. I believe its similar to the code in their documentation. function sendMailjetAttachment($email = ”, $name = ”, $subject = ”, $message = ”, $file = ”) { $mailjetApiKey = …