This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

"warning: array_merge_recursive()" error when going through "Creating new node type" tutorial

I got the following error

warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in [myFileSystem]/modules/node/node.module

when going through the tutorial on "creating new node types" at http://drupal.org/node/71957, and i left a comment on the page showing my solution.

could somebody please tell me if what i did was correct?

How are modules made available via certain paths?

I have a custom module which is in production. I got it to work by putting a case statement in the page.tpl.php file. Now I want to change that. Other modules are available via URLS.

Like, for example, the the indexpage module. I see in the module the following functions:

indexpage_page

indexpage_page_list

Are these the ONLY things that make www.example.com/indexpage actually work?

Allow Bloggers to Control their own Comments?

Hi,

I oversee a site that has about 200 active authenticated users able to blog, post stories and so on.

It's a massive site with blogging only being part of it (only about 10% of our users do so), but a couple of bloggers have recently asked for features that I wouldn't know how to install without them affecting the whole site:

1) Allow anonymous comments (our site doesn't for other nodes)
2) Allow Blog owners to edit comments on their own blogs

Are these things possible?

ecommerce module seperate pricing?

Hi,

Is there any module or hack anyone knows of that would be able to implement different pricing for different 'customer groups'? I do not want to use CiviCRM or OG. I have been looking and I am certainly not afraid to dive in and code my way around it but I am new to the module so it might be available allready in one form or another?

So basically before I reinvent the wheel I'd like to know what would be a smart approach.

Thank you!

Error , blank page when click submit

I am coding on Drupal 5.1. below is my code. When i submit button, resul is one blank page, no error line, execute all database process, but cannot return to orter page. I am try my best but it not worked. Please help me. thank for all.

file 1 : code file zap.info

; $Id: zap.info,v 1.3 2006/11/21 20:55:34 dries Exp $
name = Zap config
description = Zap configuration.
package = Core - Telecom
version = VERSION

; Information added by drupal.org packaging script on 2007-01-30
version = "5.1"
project = "drupal"

file 2 : Code file zap.install

<?php
// $Id: zap.install,v 1.6 2007/01/02 05:30:29 drumm Exp $

/**
* Implementation of hook_install().
*/
function zap_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("
CREATE TABLE {vm_zap} (
FromChannel tinyint(2) NOT NULL,
ToChannel tinyint(2) NOT NULL,
Type varchar(3) NOT NULL
)
");

db_query("
CREATE PROCEDURE edit_zapchannels(FromChannel tinyint(2),ToChannel tinyint(2),Type varchar(3))
begin
Insert into {vm_zap}(FromChannel,ToChannel,Type) values(FromChannel,ToChannel,Type);
END
");
break;
case 'pgsql':
db_query("
CREATE TABLE {vm_zap} (
FromChannel tinyint(2) NOT NULL,
ToChannel tinyint(2) NOT NULL,
Type varchar(3) NOT NULL
)

Views Module Block + Taxonomy Breadcrumb = error?

There is something strange with my breadcrumbs. When I create block with Views module and enable it Breadcrumbs generates not from the current page, but from the last node showed in Views block. May be this because Taxonomy Breadcrumb and Views module conflict?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions