Download & Extend

Does not render HTML files through Drupal on D5

Project:wgHTML
Version:5.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active

Issue Summary

Hi,

is this module still under development? If so: under D5, HTML files are not rendered through Drupal, neither with "implementation = node" nor "implementation = module". The HTML file are located in a folder inside Drupal's root directory (e.g. /html); this directory contains a .htaccess file according to the README. if gowing to http://mysite.tld/html, static files are delivered - no Drupal, no nodes, etc.

Example:
* /var/www/dev/ - Drupal's root directory
* /var/www/dev/html - directory for static html files

Content of /var/www/dev/sites/all/modules/wghtml/wghtml/config.php:

<?php // $Id: config.php,v 1.1.4.3 2007/02/25 02:46:59 djnz Exp $

global $wghtml_config;

$wghtml_config = array(

// IMPLEMENTATION ------------------------------------------
// 'implementation' => 'module_drupal46',
'implementation' => 'node_drupal46',
'node_drupal46'  => array (
  'format'       => 4, // Id of input format to use for rendering node
  ),

// USER ID FOR NEW PAGE RECORDS ----------------------------
'userid' => 1,

// REFRESH INTERVAL
'staletime' => 60*60*24*300, // refresh every 300 days

// REBASE URLs
'rebase_urls' => FALSE,

);

Content of /var/www/dev/html/.htaccess:

RewriteEngine On
RewriteCond %{REQUEST_URI} \.php$|\.html?$|\.txt$|\.doc$|\.me$ [NC]
RewriteRule ^(.*)$ /wghtml/show [L]

When going directly to the ?q=wghtml URL, the following errors are listed:

warning: Invalid argument supplied for foreach() in /var/www/dev/modules/node/node.module on line 561.
warning: implode() [function.implode]: Bad arguments. in /var/www/dev/modules/node/node.module on line 565.
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 n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /var/www/dev/includes/database.mysql.inc on line 172.
[...]

Acesses to http://mysite.tld/html are not logged in watchdog, also. As far as I can see this module seems to do nothing at all under D5.

Thanks & greetings, -asb

nobody click here