Items filtered by date: December 2014

Saturday, 21 January 2017 17:13

Moving a website with Roksproket installed

I installed Roksproket on my test server and when I had finished I exported the database. I then tried to install the database on my clients live web server and it failed. This is my investigation.

Cause

  • Roksproket database on my test server was installed as ENGINE=Aria
  • On new versions of cPanel and Xampp MariaDB is now the default database engine and Roksproket must just of used the default engine because it does not specify which one to use. This is a common thing.
  • The Client's server was not using an upto date cPanel install that supports MariaDB

Solution

solution is to import into xampp and then export. this seems to cure it. just keep an eye out for ut8mb4 issues

Notes

The application could not be instigate was basically just database issues, in my case xampp (more like Windows) had changed the prefix from uppercase to lowercase.

Published in Printers

This is the code/file locations for using Joomlashine Tempalte Styling within JCE Editor.

Dont forget the commas.

Uses $template instead of the explicit template name

templates/$template/css/template.css,
templates/$template/css/template_pro.css,
templates/$template/css/colors/blue.css,
templates/$template/css/styles/business.css, (or custom.css for those google fonts/ custom font setting)
templates/$template/css/lancastrian.css

Template name explicitly used.

templates/jsn_epic_pro/css/template.css,
templates/jsn_epic_pro/css/template_pro.css,
templates/jsn_epic_pro/css/colors/blue.css,
templates/jsn_epic_pro/css/styles/business.css,  (or custom.css for those google fonts/ custom font setting)
templates/jsn_epic_pro/css/lancastrian.css

This is the default editor file for JCE. This is just incase there are any conflicts you will know where to look.

components/com_jce/editor/tiny_mce/themes/advanced/skins/default/content.css

 

Published in Joomlashine
Saturday, 21 January 2017 17:05

How to make a Joomla Demo Site

The key features required

  • automatic admin login
  • restrict all of the menus
  • automatic mysql refresh
Published in Joomla

I had this odd issue from a client who has an office with 3 or 4 HP Inkjets all the same model. She started having an issue where one printer will intermittently print pages completely blurred.

The client did the following to try and resolve the issue.

  • Tried a known good printer on the PC with the dodgy printouts. The new printer now suffered from intermittently blurred printing.
  • The suspect printer was tried on another computer and there waws no issue.

My Contribution

This completely points to the driver, however her IT Technician refutes this and said she should buy another printer. The points below are my argument that it is not the printer and give possible solutions.

As discussed I believe it to be the PC at fault and not the printer because:

  • The issue only ever occurs on the one PC and this happens with different printers on that same PC
  • The faulty printing does not happen all the time but randomly meaning it cannot be the printer as a printer with such a fault will do it all the time
  • The “dodgy printer” works fine on other members of staff PC with no issue.

Also It is not compatible cartridges that is causing the issue because:

  • Josie does not use them
  • The fault, if caused by a dodgy cartridge would happen all the time

What is like causing the fault is the driver because:

  • Without seeing the printing error it sounds like the print image is not being correctly converted into a bitmap or not being uncompressed at the printer if using a proprietary format. The settings in the printer driver are irrelevant because it works sometimes and then not others and there is not a setting for blurred image printing
  • Stretching it here, that it could be the USB cable not properly handling a USB 2.0 signal and as such the images is not uncompressed at the printer properly because of bandwidth (longshot)
  • Sometimes AV can interfere but with only one PC having the issue I am not convinced about it being the cause here..

How to fix this

  • Uninstall the printer drivers and re-install the printer (with a reboot in between)
  • Uninstall all of the HP printer driver files using the HP printer removal tool (with a reboot in between)
  • Try a new USB cable
  • Also make sure all windows updates are applied.

Solution

I am not sure what the exact fix was because I did not perform it. However the client said he swapped the USB cable and this fixed it. I suspect there was more to this fix or it was the fact that the printer was re-installed

Published in Printers
Saturday, 21 January 2017 16:49

Using IMAP on iPhones

Using IMAP on iPhones is notoriously difficult because each version of iOS has a different way of handling a standard IMAP mailbox. The differences are subtle but enough to cause end users issues. In this article I hope to try and put some of that right.

  1. when deleting an email the user gets an error message that it could not be moved to trash
  2. not emptying trash
  3. when trash is emptied on iphone trash, the emails are not marked for deleteion (i.e. purge) and are not actually deleted.
  4. the iphone might be utilising a local trash store and not the one on the server

Notes

  • Different versions of office and iphone IOS might have different default ways of handling imap email deletion, ie some purge but do not delete. Outlook 2010 when mail is deleted sends it to trash, when deleted from trash actaully deletes it in the IMAP mailbox.
  • iPhones have the option to delete/prune emails from the Deleted messages folder after a set period, it was mentioned somewhere that this could be set to never.
    http://www.fixedbyvonnie.com/2015/02/cant-delete-emails-ios-8-iphone/
  • The purge thing is a stupid thing, an item can be marked for deleteion and as such gets a strike through appearances (not all platforms), these files by definition in the IMAP protocol are not deleted until the deleted emails are purged. However different OS and software handles this differently and can appear not to use the purge feature because they delete the email and then purge it immediately, or that there is a setting to hide emails flagged for deleteion.
  • purging does not usually happen until you navigate to another folder (unless the software is set different or possibly when a sync is done)

Sent to a client

The issues you have been having are related to how different version of outlook and aplle iOS handle IMAP protocol (your email), every setup is slightly different.

Here are some links to help with your iPhones not deleting emails and general information:

Published in Email

When you use Avast Antivirus it installs an invisible proxy SSL Certificate Authority that allows it to scan SSL/TLS traffic with its antivirus engine. The downside to this is that all certificates appear to be signed by avast! Web/Mail Shield Root and can make things confusing at first glance when a SSL certificate is out of date.

When using Outlook you can also see this error:

Outlook Internet Security Warning

Now if you examine the certificate:

This certificate has expired or is not yet valid

Certificate General TabCertificate Details TabCertificate Certification Path Tab

I had this issue with an SSL certificate that I thought was correct at the remote server and that Avast Antivirus had then flagged as out of date. As it happens the certificate at the other end was out of date and Avast mints new certificates on the fly so there is no cache to worry about. The instructions below are what helped me come to that conclusion.

Things I tried:

  • re-installing the mail component does not fix this (including a reboot)
  • i cannot find the certificate for bfhosting.co.uk in my ssl store
  • it is avast issuing a certificate from its system on the fly
  • when you click install it is never installed permanetly (only if it is expired?)
  • is the pm certificate still faulty
  • adding the account and re-adding it in outlook did not work
  • disable the SSL scanning and then recheck the ssl certificate is correct
  • you can also check the certificate details in outlook if it is faulty. you will get the warning message on load up

OpenSSL Commands

If using on windows you will need to get the binary file openssl.exe

openssl s_client -connect host:port -showcerts

or

openssl s_client -connect quantumwarp.com:995 -showcerts
Published in SSL
Saturday, 21 January 2017 15:43

My Wordpress Notes

These are collection of my WordPress notes.

WordPress Platform

Security

  • Block xmlrc.php with htaccess (WordFence will do this for you)
    <Files xmlrpc.php>
      ErrorDocument 403 default 
      order deny,allow
      deny from all
    </Files>
  • Disable all of the search features with a plugin.

Debugging

Performance

Plugins

  • Divi has it's own page at QW.
  • Total Cache  - Control iframe embedding
    • If the 'self' flag is not set, Divi will not work on quantumwarp.com because it uses iframes.
    • I manually set the Header set Content-Security-Policy in the .htaccess file but it kept getting changed (As below) whenever i load this plugin in the admin area, it alters the .htaccess to match it's current configuration. As youo can see the 'self' statement gets removed which can cause issues.
      Header set Content-Security-Policy "frame-ancestors 'self' *.quantumwarp.com"
      
      -->
      
      Header set Content-Security-Policy "frame-ancestors *.quantumwarp.com"
    • The solution is to add this extra statement in Total Cache's configuration but it is hard to find.
      • Performance --> Browser Cache --> Security Headers --> frame-ancestors: 'self' *.quantumwarp.com
  • Wordfence blocking iframes
    • WF Firewall Blocking Header iframe | WordPress.org
      • As for your issue, it sounds like Learning Mode will be your friend here. From the Wordfence Dashboard click on Manage WAF. Then you will see Basic Firewall Options --> Web Application Firewall Status. Change the option to Learning Mode. Now perform the actions that were causing issues, such as visiting the page(s) containing the iframe code. This will help Wordfence learn that these actions are normal and it will allow them in the future. After you have finished performing the actions, switch the WAF from Learning Mode back to Enabled and Protecting. Now test to see if your iframe works correctly.
    • Firewall Learning Mode - Wordfence - "Learning Mode" allows the firewall to be adjusted to your site. is an amazing resource for learning more about the WAF and learning mode.
    • Disabling WordFence will fix this issue, but is not ideal and should only be briefly done to verify WordFence is the issue.
    • Blocking xmlrc.php
      • with htaccess - This is done on the server level.
      • If you use WordFence this will be done at the php level but allows more control rather than a blanket ban.
  • WordFence
    • To make your site as secure as possible, the Wordfence Web Application Firewall is designed to run via a PHP setting called auto_prepend_file, which ensures it runs before any potentially vulnerable code runs. This PHP function add the define file on the beginning of every file that is requested by a browser.
    • Check the WordFence logs and see what URL it is blocking, then you can add an exception.

Articles / Things

A collection of solutions for problems I found while using WordPress. I might move these to their own articles.

...

 

 

Published in Wordpress
Saturday, 21 January 2017 15:15

Manually Upgrade WHMCS

In WHMCS 7 you can use automatic update but in version 6 you till have to do this manually, including v6.x to  v7.x , which is shown below:

  • Backup
  • Rename live folder with pre-fix old-
  • Extract the new package on the desktop
  • Rename the admin directory on the PC version
  • Copy the configuration.php from the live version to the desktop version
  • Upload the desktop version to the /hosting/ folder on the live site
  • Login and run/trigger the upgrade
  • Delete the install directory
  • Check the CRONs are setup properly
  • Configure the update feature (Utilities/Update WHMCS/Configure Update Settings)
  • Select an update channel and set a temporary directory for the update (/tmp)
Published in WHMCS
Saturday, 21 January 2017 14:51

Ecommerce Product Page SEO (Magento Based)

This article uses a Magento product page as an example to try and make the perfect product page but a lot of the information can be translated to a product page of any e-commerce platform.

General

When writing a product page

  • The closer words are to the beginning, the more valuable they are
  • The first 7 words are the most valuable
  • We must have some keywords in mind to focus on
  • The copy must be clearly and naturally written
  • Spaces count as 1 character
  • google recommends less 75 links on a page, ecommerces have a lot. Guideline only. excessive links deplete your page rank
  • set the max category depth to 1 for the main menu to reduce links, because we will have on the left an internal nav box (layered navigtion)
  • do not use manufacturer imported data for product descriptions as this will be seen as duplicate content

Keywords

When writing a product page we have to consider the product. Keywords help/show google what the page is about and whether it is a real page and not spam content created by a computer, Google can now tell. Most dodgy techniques no longer work.

We have to write article naturally but there are still methods we can consider when writing content that help SEO. There is no harm in helping google to see your product though and through the correct placement of keywords we can do that

The following should be used at minimum for its keywords

  • Product Title
  • SKU
  • Brand

Locations for Keywords

SEOmoz identified the following keyword factors as having most influence on Google's ranking algorithm (the method by which the search engine orders results), for example:Keyword Use in title tag

  • Keyword use in body text
  • Relationship of body text content to keywords (topic analysis)
  • Keyword use in H1 Tag
  • Keyword use in domain name
  • Keyword use in page URL
  • Keyword use in H2, H3, H(x) Tags
  • Keyword use in ALT Tags and Image Titles
  • Keyword use in Bold/Strong tags
  • Keyword use in Meta tag description.

Magento Product Page SEO

I will now go over the different sections of the magento product page. I will try to explain what the different bits are and then at the end of each section I will just bullet point what the aims for that section should be. There are some rules that might not be able to be implemented so do not worry if you cannot do everything.

To get an idea of what you should be doing, watch this video:
On Page Optimisation with Magento 1.4 - YouTube
It uses a Firefox plugin called SearchStatus

Name / Page Title

This will be the products name and by proxy the main keyword for the page. This is slightly different to a normal page where this can be put in artificially. Because you are using this on an ecommerce site the products name is usually enough

  • This sets the Page Title
  • Use Product name
  • Changing the product name will change the products URL (i.e. http://www.pmtuning.co.uk/bundle-pm59 )
  • Product/Title/URL is very important
  • Title cannot be the SKU code, this is really bad
  • Order of the words in the title can be important
  • Title Length should not be excessive (recommend 60 – 64 characters). This is not always possible with product titles because they are what they are

Product Description

The descriptions should be written to be easily read by humans and if they are google will like them. But there are a few things we can do to help google rankings

Short Product Description

Short description is specific to this design package. This description will display at the top of the product page, and in category listings in List view. Magento User Guide, this is used in the local site search and sometimes can be picked up by google (probably if the meta description is not filled in)

  • Should be 1 or 2 paragraph(s) or so selling the item
  • why does someone want to buy this? (Benefit Statement)
  • what areas is main features i.e. comes in many colour
  • ie this exhaust will increase your bikes performance in the mid-range
  • ie This will make you bike stand out in the crowd
  • don’t use <h1> – <h6> tags in the short description

Long Product Description

The product‘s description. It will display in the main section of the product page. This section is where you would put in a full description of the product in detail. Magento User Guide

  • 300+ words , the product description needs to be at least this long for google ideally. If the product is something like a clip this is not possibly.
  • Paragraphs – try add use paragraphs
  • Bullet points / Lists – try and use bullet points
  • Use H1 – H2 tags (h1 is already used for the product title) – these are heading levels
  • Try to use keywords throughout the description. Ie. Use the product name once or twice (no more).

URL Key

This is the last part of the URL

the first one is using the sku code for the title, this needs to be the actual name of the product so google know what the page is about.

So delete the SKU code out of the URL key and paste the items title in. Magento should then create a correct ‘URL Key’ upon saving.

Meta Information

Meta Description

Meta description is most likely to be used by google for its snippets in the search results. You can have a max of 255 characters including spaces but SEO recommends 140 – 160 so the results look nice on a google search result.

  • 156 characters max
  • This should be a full description of the product; you will rehash some of the point’s mentions in the short description. This is because when moving to prestashop you will not see the short description on the product page. the short description is used in OS for search results and probably google
  • Use of bullet points, bolding and italics are useful. Does not keyword stuff?
  • don’t forget branding, start the paragraph with your main key word (perhaps in this case the product name)

Meta Keywords

Although keywords are not used for search results by the search engines they can be used heavily for search results from the sites own search and sometimes for categorising and filtering products. Normally you would not use these as they would give your competition your keyword research however in the context of ecommerce and the extra functionality you should use them

Meta keywords is a list of keywords for this page or product:

  • Max 20 keywords
  • Keywords can be phrases as well not just single words ie ‘Racing Crank’
  • Keywords/keyphrases should be separated with a comma
    ie. ‘Racing Crank, Scooters, Mopeds
  • The keywords at the beginning are the most important (assuming they are used)

Images

The images have labels that google reads. Images cannot be read by google so we need to add simple labels

Examples are when you have more than one colour of a product; put the colour at the end

  • PM59 Muffler – Blue
  • PM59 Muffler – Red
  • PM Muffler – Green

These are bad examples

  • Blue Muffler
  • Blue Muffler – PM59
  • Muffler

Summary

  • Name – make sure is a decent name and not a SKU
  • Short Product Description – this is a short bit of text selling the product, why is it good for the customer (benefit statement)
  • Long Product Description – This is where we give a full read out of the product using nice formatting and paragraphs
  • URL Key – make sure this is the product title and not the SKU
  • Meta Description – short description for google (maybe can be the same as short description)
  • Meta Keywords – 20 max that relate to the product
  • Images – they need some basic labelling

Check List

Aspects of a product that need checking

General Tab

  • Name
  • Description
  • Short Description
  • URL Key
  • Volumetric Data (not for SEO)

Meta Information Tab

  • Meta Title
  • Meta Keywords (not used)
  • Meta Description

Images Tab

  • Label (for all images)

 

Published in SEO

The reason for this is that WYSIWYG editors on Joomla by default look for template.css and some will only look for this. When editors can use this file they can apply the default template styling into the WYSIWYG editor window making things look the same as they will display for the end user.

Currently Gantry does not have a template.css and as such WYSIWYG editors have no styling.

Not all WYSIWYG editors have an option to use custom CSS files and indeed other extensions (which I cant think of at the minute) could have the same issue.

For completeness I will outline both ways I can get JCE editor to have the gantry styling in the editor itself just in-case someone mentions that you can use custom CSS files as this feature request is for more than JCE editor.

Option 1 - template.css

This is the template.css emulation method I would like to see.

create the file /g5_helium/css/template.css and add the following into it:

@import "../custom/css-compiled/helium_13.css";
@import "../../../media/gantry5/engines/nucleus/css-compiled/joomla.css";
@import "../custom/css-compiled/helium-joomla_13.css";
@import "../custom/css-compiled/custom_13.css";

This effectively loads the gantry styling into the template.css which the WYSIWYG editor can use without affecting any gantry code

Option 2 - in JCE Editor

In the JCE editor component you can specify the custom css files with the following lines. This method might be a little bit quicker than using the template.css method.

templates/$template/custom/css-compiled/helium_13.css,
../../../media/gantry5/engines/nucleus/css-compiled/joomla.css;
templates/$template/custom/css-compiled/helium-joomla_13.css,
templates/$template/custom/css-compiled/custom_13.css

This also works, $template is changed for the active template name

templates/g5_helium/custom/css-compiled/helium_13.css,
../../../media/gantry5/engines/nucleus/css-compiled/joomla.css;
templates/g5_helium/custom/css-compiled/helium-joomla_13.css,
templates/g5_helium/custom/css-compiled/custom_13.css

Other Notes

This is a full collection of the Gantry Template files loaded in the frontend of Joomla.

@import "../../../media/gantry5/engines/nucleus/css-compiled/nucleus.css";
@import "../custom/css-compiled/helium_13.css";
@import "../../../media/gantry5/assets/css/bootstrap-gantry.css";
@import "../../../media/gantry5/engines/nucleus/css-compiled/joomla.css";
@import "../custom/css-compiled/helium-joomla_13.css";
@import "../custom/css-compiled/custom_13.css";

these are not needed for the WYSIWYG

  • nucleus.css - this is to do with g-content and layout and a css reset sheet
  • bootstrap-gantry.css - modified gantry code but as bootstrap is not running in the browser it is not needed
Published in Gantry
Page 19 of 95