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.

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:

Admin Page Gone

Hey All,

Just upgraded my site from 4.6 to 4.7 and everything went pretty smooth. Database converted successfully and when I finally figured out that I needed to move my style sheet and some other old stuff from my bak dir to the new site the rest of it fell into place.

I thought it was smooth sailing from there on out but then I noticed in the settings page of the admin node that there was an error as follows:

Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_input setting. Please refer to the PHP mbstring documentation for more information.

Not having access to the php.ini I wrote a not to the support group that hosts my site (supremeservers) and they responded promptly by telling me I could create a php.ini in the root of my site and add any options I wanted in there. So I added the following line to php.ini and uploaded the file:

mbstring.http_input = off

After clearning my cache and reloading the page the error message went away and again I thought all was good. But, still thinking I needed to make sure everything was working correctly I went through all the settings under admin and sure enough they all were fine. But then I clicked on the admin node itself - the root node that says 'administer'. Thats when I got the blank page.

Viewing source on the blank page gives me nothing - its empty. The url in the bar looks like its pointing to the right place to me: http://magnusontech.net/?q=admin but all I get is a blank page.

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal