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.

Database errors on node browsing after update from 4.6.2 to 4.7.2

I upgraded using the update.php script and it went fine. However, when I browse the site as any user, I get errors whenever I access any one of the nodes.


    * warning: array_keys() [function.array-keys]: The first argument should be an array in /usr/local/www/suikoden/modules/user.module on line 349.
    * warning: implode() [function.implode]: Bad arguments. in /usr/local/www/suikoden/modules/user.module on line 349.
    * user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /usr/local/www/suikoden/includes/database.mysql.inc on line 120.

The offending line on user.module:349 is:


// To reduce the number of SQL queries, we cache the user's permissions
// in a static variable.
if (!isset($perm[$account->uid])) {

// This line right here breaks.
$result = db_query("SELECT DISTINCT(p.perm) FROM {role} r INNER JOIN {permission} p ON p.rid = r.rid WHERE r.rid IN (%s)", implode(',', array_keys($account->roles)));

// It seems that $account->roles is not an array, or something like that.

$perm[$account->uid] = '';
while ($row = db_fetch_object($result)) {
$perm[$account->uid] .= "$row->perm, ";

Failing Upgrade: Nodes are there, but only titles... and the utf8 stuff not working.

Hi there!

With all this fuzz about the security update, and since this is the first time that I have to made a patch/reinstall/whatever Drupal on a live working site, I´ve decided to create a backup of all files, and the database.

Then I created a brand new DrupalSite on a demo domain.
Deleted all tables of the database, and then added them manually using the sql file that I´ve previously created via PHPMyAdmin "Export" feature.

update.php finds nothing to do from 4.6.5 to 4.7.2

I'm trying to follow the upgrade sequence from 4.6.5. Note that I've got mysql 3.23.58 due to Red Hat.

All goes well until I go to run update.php. It prints one warning about adding a column to watchdog, and reports running exactly one script. Afterwards, 4.7.2 is hopelessly broken. No surprise, there.

Is mysql 3 still supported for 4.7.x? Is there some other possible explanation for this?

Link to Home Page from Menu in 4.7

Seems like I must be missing something simple here.

In 4.6 I had my menu set up with a link to the home page (which is not /node but is set to a custom node using the admin settings). This was simple. I wanted it to link to the root domain, so I simply put in the path "/" and this gave me

<a href="/">HOME</a>

With 4.7 it gives me

<a href="http:///">HOME</a>

I can do this using the full domain, so I get

<a href="http://example.com/">HOME</a>

Acidfree "paging" Problems

I upgraded Drupal last week to the latest 4.7.x (and modules), and all seemed to be well. However, a user noticed a problem with the "paging" in the acidfree module.

As an example, go to this page:
http://palmettopaddlers.org/node/1148

Then look at the links to the other pages from there. They currently appear as:
http://palmettopaddlers.org/node/1134?page=page%3D0%2C12

Scipts in Footer

Hello

I just upgraded to 4.7.1, and now 4.7.2 from 4.6.5

In my previous installation I placed the following script (comments & changed bracketing added for full script to show) in my footer, and it worked perfectly. In 4.7.x, the code is shown rather than run. Has something changed, or should i recode in some way?

Many Thanks

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal