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

Warnings given while saving a custom $node object

While trying to create a module that will import certain data as a type of node that I created using CCK, I am getting these warnings after the $node object saves. However, form_get_errors() returns nothing. Is this a bug in the core node code?

# warning: Attempt to assign property of non-object in /usr/share/drupal-5.1/modules/node/node.module on line 549.
# warning: Attempt to assign property of non-object in /usr/share/drupal-5.1/modules/node/node.module on line 554.
# warning: Attempt to assign property of non-object in /usr/share/drupal-5.1/modules/node/node.module on line 556.
# warning: Attempt to assign property of non-object in /usr/share/drupal-5.1/modules/node/node.module on line 557.
# warning: Attempt to assign property of non-object in /usr/share/drupal-5.1/modules/node/node.module on line 575.
# warning: Attempt to assign property of non-object in /usr/share/drupal-5.1/modules/node/node.module on line 578.

The following is the function that I wrote to test out saving my new $node object:

<?php
const DEFAULT_NODE_IMPORT_TITLE = "imported by doc_import";
const DEFAULT_NODE_TYPE = "policy";
const DEFAULT_NODE_FORMAT = 3;
// Default to a published status:
const DEFAULT_NODE_STATUS = 1;
// We don't care if it's promoted, so default to no:
const DEFAULT_NODE_PROMOTE = 0;
// Sticky by default

Amazon S3 file manager

Hi all,

I need a file manager module based on Amazon S3, with this features:

- ability to upload file about 100Mb
- ability to manage files (add, delete, move, create folders...)
- ability to link file from a node body or attach it like images (like attach image module)
- ability to restrict access by user role.

Someone has started a project like this?

Thanks and... sorry for my bad english!

Error on CVS Add Contents

I am using TortoiseCVS and following "Quickstart guide for adding to Drupal CVS using a windows client" on http://drupal.org/node/112902 but when I follow step #7 "CVS Add Contents" then the following error msg appear:
---------------------------------------------------------------------------------------
cvs add: `blogger.info' added independently by second party
cvs add: `blogger.module' added independently by second party
cvs add: `CHANGELOG.TXT' added independently by second party

Add Dynamic link to Primary Menu

I'm creating a module and need to insert a dynamic menu item into the Primary Menu depending on the context. In this case I need a new link to appear in the Primary Menu if the user is viewing an "office" page. The actual link will be different for each office. How do I "hook" into the menu tree to make a change like this on the fly?

PayPal API module

I was recently wanting to sell products and receive payment via PayPal. After hacking Quickfile and LM PayPal for a while, I realised that neither would really suit my requirements. Instead I tried to write a PayPal API module that works out of the box, but also allows other modules to plug in to it.

Views Confusion

Sorry about the silly question... but I have gone kind of confused in the difference between Views/Themes and Views/Blocks.... can somebody please clear me the difference or point to the resources...

Newbie to Drupa and Views so really confused

Pages

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