Tech Home The Bacon

Cowboy IT | Technologist

Author: Jacob (page 2 of 4)

Mac OS X Sock Proxy Enabled After Every Reboot

Problem:

Operating System: Mac OS X 10.14.4

The end user was experiencing internet connectivity outages randomly with Mail and Safari apps. Using the terminal I was able to ping google.com while other apps like Safari wouldn’t load any websites.

I noticed in the network settings that a Sock Proxy was enabled with localhost withport 8080. I knew this had to be the reason for the internet connectivity problem so I removed the setting and immediately was able to surf the internet again and receive email on the Mail app.

Continue reading

Magento 2.2 Install On CentOS 7

Objective


Install Magento 2.2 on CentOS 7. The stack will require PHP 7.1, MariaDB 10.2, and Apache 2.4. To see the full system requirements to run Magento 2.2 click here.

  1. Install Apache 2.4
  2. Configure Apache
  3. Install PHP 7.1
  4. Configure PHP
  5. Install MariaDB 10.2
  6. Configure MariaDB
  7. Create Magento File System User
  8. Download & Extract Magento Files
  9. SELinux
  10. Set File Permissions
Continue reading

Give User Permission To Just One S3 Bucket

Objective:

Give an IAM user programmatic access for certain S3 buckets. Note: If you go this route the user will not be able to list all buckets on this AWS account.

This is a great solution if you are a MSP providing backup solutions to S3 compliant storage and you don’t want IAM users from seeing or accessing other customers buckets.

Continue reading

Roundup: Solutions for WordPress 5.0 Upgrade Causing 500 Server Errors

After updating my WordPress blog to 5.0 everything looked like it was working, until I went to add a new post, then I got the internal server error. My issue turned out to be a plugin that was not compatible with the new Gutenberg editor.

In this roundup, I’m going to list the solutions people are trying from easy to hard. Starting with permalinks.

Continue reading

Magento 2.2 SQL Rollback Failed

Problem:

I took a SQL backup of my Magento 2.2 dev site before I did some testing. The testing didn’t go as planned so I tried the rollback feature from inside the Magento admin panel. The rollback process started, but then the page just went blank. 

When I did a refresh the page said I was in maintenance mode. I decided to SSH into the AWS instance and see what was going on. The server seemed okay, but it was stuck in maintenance mode. I disable maintenance mode and decided to run the rollback from the terminal

Continue reading

Magento 2 and AWS SES – Password Resets Not Sending

Problem: 

I’ve setup the SMTP extension from Mageplaza and successfully sent and email with AWS SES. I tried resetting a user’s password, but the end user never receives the password reset email. 

Solution: 

The password reset emails use the Customer Support email address. If this is not configured SES will not deliver it. 

Go to Stores –> Configuration –> General –> Store Email Addresses and configure your customer support sender email address that is authorized to send through SES. 

Python 3 & Wget – Download Images from CSV.

Objective

I wanted to download a list of files from an S3 bucket using python 3. I used a standard CSV in UTF-8 format. Here is an example CSV. It’s one column with just the filenames. 

I could have built out the full url in the CSV, but I decided to just do it in the code.  Below is the full python script. 

import csv
import wget
#open import file
with open("c:\\csv\\files-to-download.csv", newline='', encoding='utf-8') as f:
#Assign the import file to the DictReader "reader"    
    reader = csv.DictReader(f)
    #Now loop through all rows and build out variables    
    for row in reader:
        filename = row['name']
        print('Beginning file download with wget module')
        url = 'http://www.example.com/images/'
        wget.download(url + filename, 'c:\\csv\\images\\' + filename) 

Continue reading

Cursor Spins While Trying To Print in Microsoft Word

Problem:

Enduser called complaining their mouse cursor was acting erratically when trying to print. The cursor was spinning and page size selection was flashing like it was being pressed multiple times. After a reboot, the problem remained. We did end up getting the document to print, but the spinning cursor would remain after printing.  

Solution: 

Removing the network printer and adding it back fixed the issue. I did not change the drivers. This was a Ricoh C306Z. 

Magento 2 CE Product Import Succesful, But No Products Imported.

Problem: 

I had all the necessary fields in my Magento product upload file, and the import would show no problems with the data check test. When I reviewed the import history page it said my import had 0 created, 0 updated, and 0 deleted. Nothing happened. 

magento 2 CE import history page

Solution:

The CSV needed to be saved as UTC-8
In excel click File –> Save As –> Choose CSV UTF-8 (Comma delimited) (*.csv)  

Magento 2 CE – Not Saving Product Attributes Values

Problem: 

You add a product attribute to your store, but when you try to save a value in that field, it just keeps coming up blank after the page reloads. 

Solution: 

You can’t just simply flush the Magento cache, you need to flush the cache storage first then you will be able to see your newly save product attribute. 

System –> Tools –> Cache Management 


« Older posts Newer posts »

© 2019 Tech Home The Bacon

Theme by Anders NorenUp ↑