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.

Theme problem during upgrade

I made heavy changes to my 4.6.5 site that used phptemplate bluemarine but forgot to backup the original theme I had uploaded. Since update requires the user to be logged in as uid1 using the *default* bluemarine theme, I had to download and upload 4.6 bluemarine again before logging in as uid1 and running the update script. For good measure, I also ran an sql query to delete the bluemarine related records from the system table.

og 4.7 access probs

Have upgraded a 4.6 site with organic groups to 4.7. Now can't access any group posts by anonymous, user or admin ("No posts in this group"). I figure its something to do with the node-access table but can't resolve it. Strangely, the grant_view column contains values that are group nids when surely the values should be binary, 0 or 1, same as grant_update and grant_delete? Tried shifting those values to the gid column, no joy. I have spent hours on it and any clues as to what to try next would be appreciated. No other modules installed that use node_access.

Help importing data from old to new site.

After a failed upgrade from 4.6.5 to 4.7.1, I decided to start a new 4.7 site.

Can I just copy the users table (200+ user accounts), taxonomy term data table (about 300+ terms) and node table (about 150 nodes) over to the 4.7 install to drastically cut short my time for rebuilding the site in 4.7? Is this advisable at all?

I also had about 10 different flexinode content types. Any suggestions on how to handle this?

I know only a little sql, so I would appreciate examples of any queries I may need to run. Thanks in advance.

4.7.0 to 4.7.1 themes break?

I was wondering if anyone else has had some problems with their theme breaking when upgrading to version 4.7.1 from 4.7.0?
In particular, it doesn't seem to recognize this block within my styles.css :

.links {
text-align: right;
border-top: 1px dashed #154ead;
border-bottom: 5px;
padding-top: 5px;
padding-right: 15px;
}

Any suggestions?

Obscure fix for update.php with cookies disabled using trans_sid/PHPSESSID

If anyone else out there is running a cookie-less 4.7 site (which requires porting trans_sid code from the 4.6 drupal_goto() function) and is having problems running the update script the answer is that cookies need to be enabled (in php) for the update to work (i.e. the PHPSESSID url string is not working properly with the refresh code).

You need to change the following in settings.php before hitting update.php
From:

Non Critical Error after upgrade

Hey,

I recently upgraded from 4.6.5 to 4.7.0, and most of the upgrade went smoothly. I have upgraded all the modules, and run the update script.

When I load the front page (it doesn't seem to affect other pages), I get the following PHP error logged:

Unknown column 't.grant_list' in 'field list' query: SELECT t.tid, d.vid, BIT_OR(t.grant_list) AS grant_list FROM term_access t INNER JOIN term_data d ON t.tid=d.tid WHERE t.rid in ('1') AND grant_list = 1 group by t.tid, d.vid in /home2/frisecom/public_html/includes/database.mysql.inc on line 120.

It doesn't seem to do anything to prevent the site from functioning.

Line 120 seems to refer to some helper code (installed as part of the upgrade):

/**
* Helper function for db_query().
*/
function _db_query($query, $debug = 0) {
global $active_db, $queries;

if (variable_get('dev_query', 0)) {
list($usec, $sec) = explode(' ', microtime());
$timer = (float)$usec + (float)$sec;
}

$result = mysql_query($query, $active_db);

if (variable_get('dev_query', 0)) {
$bt = debug_backtrace();
$query = $bt[2]['function'] . "\n" . $query;
list($usec, $sec) = explode(' ', microtime());
$stop = (float)$usec + (float)$sec;
$diff = $stop - $timer;
$queries[] = array($query, $diff);
}

if ($debug) {
print '

query: '. $query .'
error:'. mysql_error($active_db) .'

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal