hello.

when my cron went off i got this error


Fatal error: Call to undefined function gzencode() in /usr/local/www/mywebsite.com/modules/xmlsitemap/xmlsitemap.module on line 421

i read that zlib support need to be configured on php, and mine has been. my system stats:

FreeBSD7 Apache/2.2.6 (FreeBSD) mod_ssl/2.2.6 OpenSSL/0.9.8e DAV/2 PHP/5.2.6 with Suhosin-Patch mySQL 5.1.22

any help would be greatly appreciated.

ephman

Comments

apaderno’s picture

Category: bug » support
apaderno’s picture

Category: support » bug

If you get that message error, then it means your PHP installation is not built in with zlib support. If that would be the case, then PHP would not give you such an error.

I am setting this as a bug report, as the module should first check if the function gzencode() is defined.

apaderno’s picture

Assigned: Unassigned » apaderno
apaderno’s picture

Component: xmlsitemap » Documentation
Status: Active » Fixed

The module is now documented to require the zlib extension installed, and configured.

Status: Fixed » Closed (fixed)

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

afagioli’s picture

at today, we still have same issue with latest 5x xml sitemap module

thanks god I've blogged this issue years ago ...
http://www.fagioli.biz/?q=drupal-5-xml-sitemap-create-empy-site-map

apaderno’s picture

The project requires the zlib extension installed, and configured; if that extension is not installed, the project code will not work.
To avoid the error, there is just a thing to do.