I just upgraded from beta1 to beta2, I m getting this message when I run update.php

An error occurred. http://www.iipta.com/ipr/update.php?id=33&op=do
Fatal error: Cannot pass parameter 2 by reference in /home/content/w/e/b/webgyor/html/IIPTA/ipr/sites/all/modules/xmlsitemap/xmlsitemap.module on line 339

surprisingly logs are not showing anything.

CommentFileSizeAuthor
xmlsitemap-issue.jpg41.14 KBkirtimansharma

Comments

pwaterz’s picture

What version of php are you running?

Anonymous’s picture

Priority: Normal » Major

I have the same problem when running the update.php to beta-2 (Apache/2.2.15 (Unix) PHP/5.2.17) - Furthermore all acces to administration menu gives same problem

Drupal er run on 6.20 and all modules are up to date

Please help :-)

Thomas

Furter Info
Error in update.php

An error occurred. http://www.site.xx/drupal/update.php?id=11&op=do
Fatal error: Cannot pass parameter 2 by reference in /home/virtual/site.xx/public_html/drupal/sites/all/modules/xmlsitemap/xmlsitemap.module on line 339

The update process was aborted prematurely while running update #6203 in xmlsitemap.module. All errors have been logged. You may need to check the watchdog database table manually.
(nothing to be seen in watchdog regarding error)

sterndata’s picture

Here's the error:

PHP Fatal error: Class 'XMLWriter' not found in /var/www/drupal/drupal/sites/all/modules/xmlsitemap/xmlsitemap.xmlsitemap.inc on line 12

kirtimansharma’s picture

php is 5.x

jppo’s picture

Hello,

I get the same kind of error :

Call to undefined function xmlsitemap_link_type_rename() in ... drupal/modules/xmlsitemap/xmlsitemap_menu/xmlsitemap_menu.install on line 48
and then :

recoverable fatal error: Argument 1 passed to xmlsitemap_sitemap_load_multiple() must be an array, boolean given, called in www/drupal/modules/xmlsitemap/xmlsitemap.install on line 656 and defined in www/drupal/modules/xmlsitemap/xmlsitemap.module on line 124.
recoverable fatal error: Argument 1 passed to xmlsitemap_sitemap_load_multiple() must be an array, boolean given, called in /www/drupal/modules/xmlsitemap/xmlsitemap.install on line 703 and defined in /www/drupal/modules/xmlsitemap/xmlsitemap.module on line 124.
The update process was aborted prematurely while running update #6201 in xmlsitemap_menu.module. All errors have been logged. You may need to check the watchdog database table manually.

Some parts have been done :

The following queries were executed
xmlsitemap module
Update #6203
ALTER TABLE {xmlsitemap_sitemap} ADD `max_filesize` INT unsigned NOT NULL DEFAULT 0
Update #6204
ALTER TABLE {xmlsitemap_sitemap} DROP KEY context_hash
ALTER TABLE {xmlsitemap_sitemap} DROP smid
ALTER TABLE {xmlsitemap_sitemap} CHANGE `context_hash` `smid` VARCHAR(64) NOT NULL
ALTER TABLE {xmlsitemap_sitemap} ADD PRIMARY KEY (smid)
xmlsitemap_engines module
Update #6202
The following search engines have deprecated their XML sitemap ping services and have been disabled: Ask.com, Moreover, Yahoo.com.

How to "repair" the watchdog database ?

The xmlsitemap module can't be called from the administration menu, the action gives a blank page.

I am using Drupal on a Debian system (lenny) with :
php5 5.2.6.dfsg.1-1
apache2 2.2.9-10+lenny
mysql-server-5 5.0.51a-24

The system is on a "cloud" machine running under XEN.

Some problems running system, so I have to re-install from the daily backup (files and database) as some tables were in an intermediate (and not usable) state.

Regards

JPPO

dave reid’s picture

@sterndata Check your admin/reports/status page - the module requires the XMLWriter class to be included in your PHP installation.

sterndata’s picture

Thanks. I'm using the Amazon linux implementation of PHP and phpinfo() reports this in the configure section: --disable-xmlwriter

I'll install php-xml and try again. (And that fixed it.)

kirtimansharma’s picture

oops. module is giving a lot of fatal errors. Cron is not able to run - shows a fatal error, update is not able to run - Fatal Error shows and I don't if its only me but I m experiencing a slow production site render.
I guess I ll uninstall the module till a solution is devised, I m sure the module maintainers are working very hard on it.

dave reid’s picture

@sterndata: That is unfortunate that it's disabled by default. Always check admin/reports/status.

@kirtimansharma: Without knowing what the errors are, I cannot work very hard on it.

Anonymous’s picture

@Dave Reid: What kind of info do you need - Just looked at my php and xml-writer is enabled. I'm quite new at debugging Drupal / php, so please instruct what info you need.

On my php I have the following consering Xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.26

xmlreader
XMLReader enabled

xmlwriter
XMLWriter enabled

Cron does not run as it should - Keeps on running for a hour and then drupal shoot it down
The error is Fatal error: Cannot pass parameter 2 by reference in /home/virtual/site.xx/public_html/drupal/sites/all/modules/xmlsitemap/xmlsitemap.module on line 339

Just say what you need :-)

desiman’s picture

I had the same issue and was resolved by installing php-xml

yum -y install php-xml

and restarting Apache.

Anonymous’s picture

subscribing

both xmlreader and -writer should be installed in my case, still throws the error.

the_g_bomb’s picture

Similar issues, am awaiting my managed server to enable xmlreader and xmlwriter.

Drush is updating the module even when it is disabled, so I have had to uninstall for the time being. Will try again when I have confirmation that the PHP classes are enabled.