While upgrading from 6.x-1.10 I got this error message:

Drupal database update
warning: array_pop() [function.array-pop]: The argument should be an array in /home/hanslodder/domains/requirements-management.nl/public_html/update.php on line 314.

The update process was aborted prematurely while running update # in .module. All errors have been logged. You may need to check the watchdog database table manually.

Detail info:

Details
Type php
Date Friday, 1 January, 2010 - 11:27
User webmaster
Location http://requirements-management.nl/update.php?op=results
Referrer http://requirements-management.nl/update.php?op=start&id=87
Message array_pop() [function.array-pop]: The argument should be an array in /home/hanslodder/domains/requirements-management.nl/public_html/update.php on line 314.
Severity error
Hostname 77.160.165.14
Operations

Kind regards,

Hans Lodder

PS: Happy New Year, and keep up the good work!

Comments

avpaderno’s picture

Updating from version 6.x-1.10 causes only the update #6167 to be executed; that function doesn't call array_pop(), and it returns an array.

/**
 * Implements hook_update_N().
 */
function nodewords_update_6167() {
  $ret = array();

  $ret[] = update_sql('DELETE FROM {nodewords} WHERE type = 0');
  variable_set('nodewords_update_6166', TRUE);

  return $ret;
}

I would think the error message is not caused by Nodewords.

Hans Lodder’s picture

The message exits, and thus has some origin. Is there anything I can do to help you find out where this message comes from, without destroying my data?

Regards, hans

avpaderno’s picture

The code executed in the update from version 6.x-1.10 is the one I reported. I don't see anything wrong in it.

About the origin, it could be any modules, considering that update.php updates also the disabled modules.

Hans Lodder’s picture

Hi!

If thee is no way of determining what causes this issue, we can close. Just some extra in fo:

Previous updated modules:

- nodeword (database update; no errors; 2 times)
- search404 No errors)
- drupal (no errors)

Regards, hans

Other modules:
Drupal 6.15
Includes: Aggregator, Block, Comment, Contact, Database logging, Filter, Garland, Help, Menu, Node, PHP filter, Path, Ping, Search, Statistics, System, Taxonomy, Throttle, Trigger, Update status, User
Modules
Up to dateok
Advanced help 6.x-1.2
Includes: Advanced help, Advanced help example
Up to dateok
Calais 6.x-3.4
Includes: Calais, Calais API, Calais Tag Modifier
Up to dateok
Devel 6.x-1.18
Includes: Devel
Up to dateok
DHTML Menu 6.x-2.2
Also available: 6.x-4.x-dev (2009-Nov-07)

* Download
* Release notes

Also available: 6.x-3.5 (2009-Jun-05)

* Download
* Release notes

Includes: DHTML Menus
Up to dateok
Global Redirect 6.x-1.2
Includes: Global Redirect
Up to dateok
Google Analytics 6.x-2.2
Includes: Google Analytics
Up to dateok
Nodewords 6.x-1.11
Includes: Nodewords, Nodewords - basic meta tags, Nodewords - extra meta tags, Nodewords - site verification meta tags
Up to dateok
Page Title 6.x-2.3
Includes: Page Title
Up to dateok
Path redirect 6.x-1.0-beta6
Includes: Path redirect
Up to dateok
Pathauto 6.x-1.2
Also available: 6.x-2.x-dev (2009-Dec-06)

* Download
* Release notes

Includes: Pathauto
Up to dateok
Poormanscron 6.x-1.1
Also available: 6.x-2.1 (2009-Dec-24)

* Download
* Release notes

Includes: Poormanscron
Up to dateok
Resource Description Framework (RDF) 6.x-1.0-alpha7
Includes: RDF
Up to dateok
Scheduler 6.x-1.6
Includes: Scheduler
Up to dateok
Search 404 6.x-1.8
Includes: Search 404
Up to dateok
Service links 6.x-1.0
Also available: 6.x-2.x-dev (2009-Nov-14)

* Download
* Release notes

Includes: Service links
Up to dateok
Site Documentation 6.x-1.2
Includes: Site Documentation
Up to dateok
SPARQL 6.x-1.0-alpha1
Includes: SPARQL API
Up to dateok
Token 6.x-1.12
Includes: Token, Token actions
Up to dateok
Views 6.x-2.8
Also available: 6.x-3.0-alpha1 (2009-Nov-11)

* Download
* Release notes

Includes: Views, Views UI
Up to dateok
XML sitemap 6.x-1.1
Also available: 6.x-2.0-unstable5 (2009-Oct-08)

* Download
* Release notes

Includes: XML sitemap, XML sitemap engines, XML sitemap node, XML sitemap taxonomy, XML sitemap user

Status report

Here you can find a short overview of your site's parameters as well as any problems detected with your installation. It may be useful to copy and paste this information into support requests filed on drupal.org's support forums and project issue queues.
Drupal 6.15
Access to update.php Protected
Calais RDF Parser ARC2 2009-12-07 is installed
Configuration file Protected
Cron maintenance tasks Last run 11 min 44 sec ago
You can run cron manually.
Database updates Up to date
Drupal core update status Up to date
File system Writable (public download method)
Module and theme update status Up to date
MySQL database 5.1.37
PHP 5.2.10
PHP memory limit 128M
PHP register globals Disabled
RDF library ARC2 2009-12-07
Unicode library PHP Mbstring Extension
Update notifications Enabled
Web server Apache/2

avpaderno’s picture

The only call that involves an array in the update function is done in the same way Drupal core code does it.

  $ret[] = update_sql("UPDATE {permission} SET perm = '$fixed_perm' WHERE rid = $role->rid");

The other Nodewords modules don't execute any update functions. I would think that the only code ran during updates is the one contained in update functions, or it is the core code that handles the updates.

avpaderno’s picture

Category: bug » support
Status: Active » Fixed

I am changing the category of this report as there isn't any evidence of issues in the module code, and I am marking it as fixed because it has been already replied.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.