I have been unable to login to Magento 1.4.0.1 for a few days and after testing every solution suggested in blogs and forums I decided to clear the cache. Turns out this was the solution for me:
rm var/cache/* -rf
I have been unable to login to Magento 1.4.0.1 for a few days and after testing every solution suggested in blogs and forums I decided to clear the cache. Turns out this was the solution for me:
rm var/cache/* -rf
I was just upgrading a spam filter from Debian etch to lenny. After the upgrade, MailScanner seemed to be running but wasn’t processing the queue.
When running MailScanner in debug mode I noticed these errors:
Variable "$FIELD_NAME" is not imported at /usr/share/MailScanner/MailScanner/Message.pm line 6064. Variable "$FIELD_NAME" is not imported at /usr/share/MailScanner/MailScanner/Message.pm line 6067. Global symbol "$FIELD_NAME" requires explicit package name at /usr/share/MailScanner/MailScanner/Message.pm line 6064. Global symbol "$FIELD_NAME" requires explicit package name at /usr/share/MailScanner/MailScanner/Message.pm line 6067. Compilation failed in require at /usr/sbin/MailScanner line 79.
To fix it, open the Message.pm file and this code to line #7852 (pico /usr/share/MailScanner/MailScanner/Message.pm):
our $FIELD_NAME = '[^\x00-\x1f\x7f-\xff :]+:';
so that lines 7852 – 7854 should be like this:
package Mail::Header; our $FIELD_NAME = '[^\x00-\x1f\x7f-\xff :]+:'; sub extract
Restart MailScanner and everything should be fine now.
After installing the hobbit-plugins package, all my lenny servers were marked red on the hobbit server and the error message was: “Last apt update: 175.7 day(s) ago”.
The reason is that the hobbit-client relies on the file: /var/lib/apt/lists/lock but apt isn’t updating that anymore.
To fix this I created a cron job to update apt-get every night and update the /var/lib/apt/lists/lock file (crontab -e)
0 4 * * * /usr/bin/apt-get update 1>/dev/null && touch /var/lib/apt/lists/lock
If your log files aren’t automatically rotated by the logrotate program there are probably some errors in the config files located in /etc/logrotate.d.
To find out where the error is, run this command:
logrotate -d -f /etc/logrotate.conf
You will see some debug messages on the console and hopefully a error that will lead you to the faulty lines in the config. In my case there were duplicate entries for /var/log/mail.log shown in the debug like this:
error: rsyslog:13 duplicate log entry for /var/log/mail.log
Use these scripts to collect bandwidth data for each container. You can view the data on a graph and total usage by months.
The scripts are originally received from Hutzoft but modified to work with the Proxmox directory structure.
1. Install rrdtool and PHP support
apt-get install rrdtool php5
I was having problems showing the Buddypress avatars in Cometchat after upgrading to version 3.0 of WordPress. Instead of showing the Buddypress avatars, Cometchat was showing a Gravatar.
Looks like the problem is that WordPress 3.0 has a different directory structure and Cometchat can’t locate the files anymore. Continue reading
Re-map database user to a login in SQL server after restoring or attaching database
When restoring or attaching a database to a new or different Microsoft SQL server the logins and mappings to the database users are lost. If you create the logins again you’re not able to map the users because they already exist in the database:
User, group, or role '{login}' already exists in the current database.