Recently our shopping cart (Ubercart under Drupal) stopped finalizing transactions. The orders got up to the review step, but then, instead of completing the order,
Read moreDrupal 7 feed import incomplete or too slow
In our setup SAP exports a daily price and stock file for our website. The file is uploaded in a script via FTP to the
Read moreSetting up a cron job in
Linux command line
Cron is used to schedule tasks to run at specific intervals (minutes, hours, days, months…). Use SSH to access your server’s command line. Type:
1 |
crontab -l |
Running the Drupal cron job and flushing cache from the Linux cron
Working with Drupal 7 our default initial setup was running Drupal’s cron using the build-in cron mechanism (poorman’s cron). There are several downsides to this,
Read moreAdding a rel=”alternate” link in Drupal 7
When your site is not responsive, but serves a mobile version instead of the desktop one, it is recommended to add a rel=”alternate” link to the
Read moreMoving to HTTPS with Cloudflare
Cloudflare offers many benefits: There’s the CDN which makes your site faster to reach in different locations. There’s the caching system which makes it even
Read moreMoving Drupal website to HTTPS – securing your site for visitors while improving SEO
Technical: Buy and install a SSL certificate Backup database and files Try to change all absolute references to relative, or change all hard-coded “http://www.yoursite.com…” into
Read moreGet Drupal to show you missing string for translation
I had a hard coded string that I wanted to translated so I wrapped it with <?php print t(‘MyString’); ?> Next I wanted to add translations
Read moreDrupal – linking elements in a view to their content (node)
When creating a view there is an option for the title to link to the content: check box with “Link this field to the original
Read moreRun one time PHP code on Drupal
Many times while searching for solutions for my Drupal problems I see snippets of code that do various things. How do I run them? There
Read moreDealing with a WordPress code injection attack to all js files ‘_0xaae8’
During the last week we were attacked twice. The symptom – our site redirects to advertisements. The tricky part is that after the first redirection
Read moreRefreshing the database on a development environment
If you have a live site which is constantly updated and a local environment once in a while an update to the local database is
Read moreDrupal – dealing with Undefined index: Error Messages notices
The above notice appears when trying to assign or pull data / values from undefined arrays cells. This can be checked before trying the assignment.
Read moreTaking an existing live Drupal site and creating a local development environment
Copy all files with FTP. Export the database. Install DAMP and choose the directory, import database. Delete the new sites.php and new site symlink DAMP
Read more