This forum is for questions about upgrading an existing Drupal site. Don't forget to read the UPGRADE.txt file that comes with every Drupal download.

Correct way to upgrade to new versions of contrib modules ?

The immediate context is my need to upgrade pathauto which was diagnosed as having an XSS vulnerability.

Now, should I just overwrite the old module in my 4.7 install with the new one? Should I then run update.php and choose pathauto from the list of modules and do something? It's the latter part that is not clear from the handbook pages on upgrading.

Node validation not working

I've just updated my site to 4.7. Everything seems to be working except I can't seem to change a fields value in the node_validation function of my custom modules.

In 4.6 under mymodule_validation I could change a value. If I wrote $node->color = 'red' red would be saved, or if there was an error, 'red' would be in the field when the form refreshes.

It doesn't work in 4.7. I can set errors, but when I change the value it has no effect.

Somebody please help

Thanks,
Sam

What is wrong

I tried to restore an old 4.6.x site from backups.

mysql blah-blah-blah <backup.sql
tar -xjf fs_backup.tar.bz2

All files and tables are at their initial places.

But after this I get this instead of an initial page:

{head} {styles}
{_BLOCK_.header.logo}
{secondary_links}
{primary_links}
{_BLOCK_.header.blocks} {_BLOCK_.footer.blocks}
{_BLOCK_.header.title}
{submitted} {_BLOCK_.node.taxonomy}
{content}
{_BLOCK_.node.links}

Double encoded content after upgrade

Dear friends,

I've done an upgrade:
1. MySQL 4.0->5.0
2. PHP 4.3 -> 5.1
3. Drupal 4.6.8 -> 4.7.3

The problem looks simple: all content in russian is not readable anymore!

Moved Drupal install from a mysql 4.1 to 4.0 using 4.0 compatibility but am getting errors when logging in

This is not really an "upgrade problem", but it is the best fit as far as I can tell.

I moved a site I developed on a site using mysql 4.1 to a server using mysql 4.0. I used the 4.0 compatibility flag as suggested here (and in other places) when exporting.

The site looks fine and navigates fine, however, when I go to log in, I get the following errors:

Warning: Duplicate entry '0' for key 1 query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', 'Duplicate entry '0' for key 1\nquery: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'user', 'Session opened for <em>Webmaster</em>.', 0, '', 'http://wisdomword.com/user', 'http://wisdomword.com/user', '64.4.106.234', 1157693073) in /home/wisdom/public_html/includes/database.mysql.inc on line 120.', 2, '', 'http://wisdomword.com/user', 'http://wisdomword.com/user', '64.4.106.234', 1157693073) in /home/wisdom/public_html/includes/database.mysql.inc on line 120

Warning: Duplicate entry '0' for key 1 query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', 'session_regenerate_id(): Cannot send session cookie - headers already sent by (output started at /home/wisdom/public_html/includes/database.mysql.inc:120) in /home/wisdom/public_html/modules/user.module on line 943.', 2, '', 'http://wisdomword.com/user', 'http://wisdomword.com/user', '64.4.106.234', 1157693073) in /home/wisdom/public_html/includes/database.mysql.inc on line 120

PHP5 and MySQL actualization destroyed my site.

My hosting provider updated PHP (from 4 to 5) and MySQL and my site was nearly killed. All national chars became strange signs, the headers of the site disappeared and I get the following error everywere:

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal