CiviCRM Export Problem Fixed

Recently a client contacted us that exporting Contact data in CiviCRM was failing with this error: Error: Cannot unset offsets in CRM_Export_BAO_ExportProcessor->setAdditionalFieldsForPostalExport() (line 169 of /home/username/www/www/sites/all/modules/civicrm/CRM/Export/BAO/ExportProcessor.php” This appeared to be the same issue that was reported here: Error “Cannot unset string offsets” exporting using custom field mapping and so we upgraded their site and that indeed fixed the problem. We are always here to help.

Continue Reading

CiviCRM Cron Job Error Fixed

Recently a client contacted us with this message: We updated CiviCRM on the 5th Dec to 5.19.4 but the cron jobs stopped when we did this. The error message from the Control Panel is Warning: Unsupported declare ‘strict_types’ in /home/username/www/www/sites/all/modules/civicrm/vendor/league/csv/src/functions.php on line 12 Parse error: syntax error, unexpected ‘:’, expecting ‘{‘ in /home/username/www/www/sites/all/modules/civicrm/vendor/league/csv/src/functions.php on line 33 We fixed this by updating the PHP version of their cron job to 7.2.

Continue Reading

MediaWiki Error Fixed

A client at CiviHosting who runs MediaWiki recently ran into errors with VisualEditor. We then discovered this error in their error log: [23-Dec-2019 04:13:48 Europe/Sofia] PHP Warning: fopen(/tmp/mw-UIDGenerator-UUID-128): failed to open stream: Permission denied in /home/username/www/www/includes/utils/UIDGenerator.php on line 445 out of the blue. We fixed this issue by manually defining this variable: $wgTmpDirectory = ‘/home/username/private’; We are always here to help.

Continue Reading

CiviHosting Featured on HostingAdvice

The team at HostingAdvice has featured CiviHosting in a new article called CiviHosting: Reliable Shared and Virtual Server Solutions Backed by Stellar Customer Support from a Family-Like Team. One quote from the Contributing Editor Christine Preusler that we liked is: CiviHosting delivers shared and VPS hosting solutions built to keep sites secure and running quickly. With a focus on delivering peace of mind through exemplary customer support, CiviHosting aims to further its reputation as a trusted and experienced host. See the full article for more details.

Continue Reading

Pro-Active Protection from CiviHosting

This week our pro-active monitoring systems (automated and human) found two issues on client sites. We alerted them and are helping them to fix the issues. The first was one was using a vulnerable version of the IgniteUp WordPress plugin. The second was a client with Drupal 8 had a vulnerable version of PHPUnit. This vulnerability is number CVE-2017-9841 in the National Vulnerability Database. We are always on the lookout to take care of our clients and their sites, and security is a priority.

Continue Reading

How to Install Semantic MediaWiki

On CiviHosting, it’s very easy. First step is to install MediaWiki. See our page How to Install MediaWiki for details on that. Second step is to run these commands from the command line: mkdir -p ./extensions/SemanticMediaWiki chmod ugo+rw ./extensions/SemanticMediaWiki composer require mediawiki/semantic-media-wiki “3.0.0” –update-no-dev composer require mediawiki/semantic-result-formats “3.0.0” composer update –no-dev Third step is to add enableSemantics( ‘example.org’ ); to your LocalSettings.php and change that “example.org” to your URL. Then just run this: php71.cli maintenance/update.php to finish. That’s it. 🙂

Continue Reading

Referata Alternative

We have been asked more frequently recently about migrating wiki owners from Referata to our servers. Referata runs Semantic MediaWiki, but as of this writing in October 2019, they are using MediaWiki version 1.25.5 which was released March 4, 2016, meaning it’s very old and has known security issues. Our servers run the latest stable version of MediaWiki and all installs are private installs, not farms, so you can upgrade your wiki software whenever you want, or you can ask us to do that for you. Don’t settle for ancient wiki software — we can migrate your site for you to a modern install.

Continue Reading

MediaWiki on Shared Hosting

MediaWiki works fine on shared hosting, but there is (at least) on catch. When uploading files, MediaWiki, by default, saves a lock file in the /tmp folder without randomizing the file name. This will cause a conflict with multiple installations on the same server. As a solution, we you must add the following line to the LocalSettings.php file: $wgTmpDirectory = ‘/home/UserName/private/tmp’; where UserName is the Linux username of your account (on CiviHosting servers, this is the main Control Panel login as well). Then the upload wizard works fine.

Continue Reading

MediaWiki and ImageMagick

All of our servers have ImageMagick installed, as well as the GD image library for PHP. However if you set $wgUseImageMagick = true; on our servers, MediaWiki will try to adjust the server settings before it uses ImageMagick and then image operations, such as thumbnail creation, will fail, because our servers do not allow that (for good reasons). Thus we recommend you leave that set to false and then MediaWiki will use the GD library which will be as effective as ImageMagick in almost all situations.

Continue Reading