osTicket email attachments missing in ticket

Incoming email to osTicket, but attached files from the email message are missing in the ticket.

Make sure attachements are enabled for tickets in osTicket.

  1. Login as osTicket administrator
  2. If you are not on the administrative control panel, switch to it by clicking Administrative control panel (top right menu)
  3. Settings -> Tickets
  4. Scroll down to the attached files section and click on the Config button
  5. Make sure the Allow attached material is ticked and optionally select the file types to accept. Also check the allowed file size so it is sufficient.
  6. Click Save
Share

Posted by on September 16th, 2016 No Comments

Import visit card file contacts (VCF) to Windows 7, 8 and 10 Contacts

In Windows 7. 8 or 10 Contacts there is only a possibility to import contacts in CSV format. If you have your contacts in  VCF files you need to use Windows Live mail program in order to import them.

First of all, if you have your contacts in many different VCF files it can be convenient to combine them into one single file. That way you can import one file instead of thousands. This post describes how to combine them.

  1. Download Windows Live mail here.
  2. Install Windows Live mail on your computer.
  3. Open Windows Live mail and configure your mail account.
  4. Click on Contacts and when asked, log in to your Windows Live account (i.e. the same Microsoft account used to log in to your computer running Windows 7, 8 or 10)
  5. Click Import, select Visit card (.vcf)
  6. Select your VCF file and import it.

 

Share

Posted by on August 23rd, 2016 No Comments

osTicket ‘Access denied’ after upgrade to 1.9.14

After uploading/copying the files from the upload directory to a osTicket installation in order to upgrade it to osTicket 1.9.14, I got the error message ‘Access denied’ when trying to login as administrator to finalize the upgrade. Deleting the osTicket session cookie did not help either.

It turned out that the problem was that all files in the distribution ZIP-file had file permission ‘000’ causing the trouble. A ls -l looked like this:

---------- 1 webNNN clientX 5162 jun 11 18:22 login.php
---------- 1 webNNN clientX 980 jun 11 18:22 logo.php
---------- 1 webNNN clientX 714 jun 11 18:22 logout.php
---------- 1 webNNN clientX 1584 jun 11 18:22 main.inc.php
---------- 1 webNNN clientX 930 jun 11 18:22 offline.php
---------- 1 webNNN clientX 2830 jun 11 18:22 open.php

A simple fix was needed. Make sure you are in the upload folder of the unpacked distribution zip when you do this:

chmod 644 `find . -type f -print`

Share

Posted by on June 20th, 2016 No Comments

What is eating my disc and fontworker is eating my CPU (in OSX)?

A Mac suddenly displayed the message “Your startup disk is almost full” to the user. However, there should be plenty of space left on the disk. Something was eating up the disk rapidly.

Some investigation using Activity Monitor showed that a process called fontworker was also eating a large chunk of the CPU as well. In the Terminal I entered the command:

cd /
sudo du -sm *

to find out what folder was using most space (the command requires admin privileges so it will prompt you for the administrator password). I then entered:

cd the-folder-name
sudo du -sm *

to find out what was using most space in the largest folder (replaced by “the-folder-name” in the example above). I repead the steps until I found a large file containing the fonts database occupying about 85 GB which is way more than normal.

It turned out the fonts cache had become corrupt.

To rebuild the font cache was easy. By simply restarting the computer into Safe mode and then reboot it back into normal mode, the font cache was cleared and rebuilt, solving both the disc and CPU problem.

Problem with the fonts sometimes occurs after OSX reinstall which in this particular case had been performed about a week ago.

Share

Posted by on June 12th, 2016 No Comments

How to add search by CTRL-F in Joomla codemirror editor

When working with template files like css in Joomla the codemirror editor is used. However, a great annoyance is that it is not possible to use the browser search (CTRL-F) to find code. When your css becomes large this can be really annoying.

There is a search addon available for codemirror however. This is how you add it to your codemirror editor in Joomla:

Download these files:

https://codemirror.net/addon/search/search.js
https://codemirror.net/addon/search/searchcursor.js

Upload the files into your Joomla and place them in the <Joomla root>/media/editors/codemirror/lib directory.

Edit the file <Joomla root>/plugins/editors/codemirror/layouts/editors/codemirror/init.php

Find the two lines (around line 19-20) looking like this:

JHtml::_('script', $basePath . 'lib/codemirror' . $extJS);
JHtml::_('script', $basePath . 'lib/addons' . $extJS);

After them, add the following lines:

JHtml::_('script', $basePath . 'lib/search.js');
JHtml::_('script', $basePath . 'lib/searchcursor.js');

Save the file and enjoy searching in codemirror using the commands described in the search addons page (like CTRL-F etc)!

Note: A future possible system update will however overwrite the changes made in init.php.

 

Solution by Stefan Helander, HelTech Communication AB.

Share

Posted by on May 19th, 2016 No Comments

Find all files and directories modified at a specific date in Linux

To find all files modified on, for example, January 21 2013:

find . -newermt 2013-01-21 ! -newermt 2013-01-22

Share

Posted by on April 30th, 2016 No Comments

Find out what real code a php eval(gzinflate(base64_decode contains

When you are dealing with a hacked or otherwise compromised website where someone has installed a backdoor or other kinds of malicious code you will often find php files with code packed into non-readable format using php eval, like eval(gzinflate(base64_decode.

To find out what the code does, copy the entire eval code (including “eval(“) into this site: http://ddecode.com/phpdecoder/

You will in the end get a human readable version of the code. Usually nasty stuff.

Share

Posted by on April 30th, 2016 No Comments

How to read a Mac disk or memory stick in a Windows computer

USB memory sticks or external disks that has been formatted on a Mac might not be readable if you connect it to a Windows computer. The reason is that the Mac has formatted it using a file system unknown by Windows.

To read the disk you can use the free tool hfsexplorer.

hfsexlorer

hfsexlorer

Share

Posted by on April 15th, 2016 No Comments

How to combine multiple .vcf files into one

If you have your contacts exported into .vcf files, they can easily be imported into for example iCloud, Google or your email program. However, if you have a couple of hundreds or thousands of contacts, and equally amount of .vcf files it will be very inefficient to import each contact one by one.

A solution is to combine all contacts into one single .vcf file. By importing the combined .vcf file all your contacts are imported at once.

To combine all .vcf files into a single one can easily be done using a Windows command prompt (cmd).

cd directory-path-where-your-vcf-files-are-located
copy *.vcf allcontacts.vcf

Now import the file allcontacts.vcf into iCloud or similar.

Share

Posted by on April 15th, 2016 No Comments

Magento2 System Upgrade fails via Setup Wizard – Error in Update!

When trying to upgrade Magento from 2.0.2 to 2.0.4 I got a windows saying Update in progress and the last line from the system log says “./composer.json has been updated” then nothing more happens for quite a long time. Finally an error screen displays “Error in Update!”.

To restart the update process while trying to figure out the error i had to manually delete the files var/.maintenance.flag and var/.update_in_progress.flag.

Magento System Upgrade error

Magento System Upgrade error

To make Magento run in Apache we had set php.ini for the web user to memory_limit=1024M and according to instructions, the cron jobs should be called with the -c pointing to the php.ini used by the web server, in our case /etc/php5/fpm/php.ini.

No error message revealed why the update failed but I found out that the php.ini we used for cron (/etc/php5/fpm/php.ini) had a memory_limit=128M. By editing this file and increasing it to 1024M the update worked.

Share

Posted by on April 12th, 2016 No Comments