Hello!
I have Drupal 5.2 and PostgreSQL 8.2.1.
After installing Archive, I have those errors:
warning: Missing argument 2 for archive_help() in
/var/www/html/drupal-5.2/modules/archive/archive.module
on line 7.
warning: Missing argument 2 for archive_help() in
/var/www/html/drupal-5.2/modules/archive/archive.module
on line 7.
I was looking in archive_help. It has this header:
function archive_help($path, $arg)
I replaced with this:
function archive_help($path, $arg='')
After replace, I have no errors, no warnings, but Archive not appear anywhere.
The path admin/settings/archive goes in the same page like admin/settings.
and the page: site/archive or site/?q=archive say that the page was not found.
I don't know why Archive not appear anywhere and if the function archive_help is the problem. I don't know from where to begin.
Thanks.
Miriam
Comments
Comment #1
Susurrus commentedWhat pages were you having the archive_help errors on? From the documentation of hook_help(), it was my understanding that a default $arg argument wasn't necessary.
My module was written to support MySQL, so I'm not sure if it'll work in a PostgreSQL environment. I would imagine that the settings and /archive page would still show up anyways though. Which PHP version are you running?
Comment #2
miriam_crete commentedI have PHP Version 4.3.9.
The archive_help errors appear on all pages if I don't put the default value for the argument $arg.
Thank you very much.
Comment #3
Susurrus commentedWell, the issue is that you downloaded the 6.x version when you're running Drupal 5.2. The 6.x version is for Drupal 6.
Comment #4
Susurrus commentedComment #5
miriam_crete commentedAfter installing version 5.x-1.6 the module Archive appear in settings.
Thank you very much.
But I have those errors:
The problem is that in Postgres correct is:
I tried to remove
from archive.inc but the warnings still appear. Where should I modify?
Comment #6
Susurrus commentedI'm not supporting PostreSQL for this module as I have never used it. You'll have to read up on PostgreSQL syntax to determine what the queries should look like. If you do manage to get this module working with PostgreSQL, I'd be happy to add it to the module if you provide a patch.
Comment #7
jmpacquet commentedYou only have to change double quotes into single quotes to make the archive db query compatible with postgresql. It should not harm MySQL version since both quotes are allowed. Here is the patch which works on my Drupal 5.7(+Archive 1.9)/PostgreSQL 8.3/Slackware 12.0 system:
Oups, I forgot this one:
Thanks for this nice little module that I only discovered recently.
--
jmp