Today we encountered a problem on one of our servers. Phpmyadmin did not want to launch and our customers had difficulties logging in to our application.
After some research, I found that the problem lies in the /var/log folder.
Just get rid of all unneeded .gz / .bz2 files and the issue should be resolved.
Also, we have put on our to do list : check why on earth we are creating that many log files
We are installing and completing a D6 site for one of our customers, but we had to keep a certain custom page online while we were doing so. The simplest way was to put the site in “maintenance” but then without the default Drupal page, which is not very pretty to be honest.
So, we stumlbed upon a post by Kutakizukari on the Drupal forum and it worked perfectly (http://groups.drupal.org/node/16237).
This is what he describes:
- Copy the default maintenance page from the Drupal directory: modules/system/maintenance-page.tpl.php to your theme’s directory.
- make a second copy of that file for the Site off-line page rename it to maintenance-page-offline.tpl.php
- Theme them the way you want them.
- Open the settings file: sites/default/settings.php
- Delete the # symbol from these lines.
- # $conf = array(
- # ‘theme_default’ => ‘ your_theme_name’
- # ‘maintenance_theme’ => ‘your_theme_name’
- # );
We have been working on some Magento e-shops and it needs to be said, its a nice enough system.
However, it is not a CMS. This means that when you create pages, you dont have all the freedom you would enjoy when using Drupal or WordPress for example.
You can create pages and they will appear in the main menu. But then you start looking at the sort order of those menu items.
Guess what, nothing to be found in the admin interface to control it. So you go ” NOOOOOOOOOOoooooooooo….”……
No panic! Stay calm… with some minor db data changes and a little coding we can get it all to work.
First of all, let’s ask the obvious question “Why on earth is it not a standard admin function to be able to manipulate the page order?”
No idea, but it is foreseen in the database.
In the table
cms_page
you will find a collumn called
sort_order
. You can use this collumn to decide on the order.
Go refresh your page… Nothing changed, right? Hehe, well you need to do one more thing.
Open this file :
magento/app/design/frontend/default/maried/template/catalog/navigation
Find this line (should be line number 60):
$cms_pages->getSelect()->where('is_active = 1');
And add the sortorder so the line becomes :
$cms_pages->getSelect()->where('is_active = 1')->order('sort_order');
Now go and refresh your page… TADA!!!