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

Unknown problem in 4.6.5?

Hi,

I have got the following error two mornings in row now:

Fatal error: Call to undefined function: node_load() in /var/www/grimsta/modules/block.module on line 483

Might it be an exploit? Anyone that have seen this before? I am running Drupal 4.6.5.

The quickest way to cure it is to reload the database.

[BM: title changed to remove mention of security. Looks like a bug...]

Some JavaScript to post a node form AJAX

function ajax_submit(goto_url) {
  $('update-indicator').style.display = 'block';
  if (tinyMCE) {
    tinyMCE.triggerSave();
  }
  var params = new Array();
  for (i = 0; i < document.forms[1].elements.length; i++) {
    with (document.forms[1].elements[i]) {
      if (tagName == 'TEXTAREA' || tagName == 'INPUT') {
        params[name] = value;
      }
    }
  }
  params['op'] = 'Submit';
  remove = function (string, xmlhttp, goto_url) {
    if (xmlhttp.status != 200 && typeof xmlhttp.status != 'undefined') {

How about this for an install wizard? An Automated Website tour guide!

I've been doing something a bit special last night.
I couldn't find a demo/screengrab thing that I liked enough, so I thought about doing it the hard way.
... Then I decided to go even harder than that.

I built an entire wizard walkthrough scripting thing to guide you through the first stage of the relationships module.

If you're Firefox or IE6+ (I honestly dunno about the rest today) Then visiting My Animated Tutorial should be a blast.

TinyMCE 4.7.0

It seems the files are missing in the tgz files

Hook on settings update

Hi all,

I'm a newbie Drupal module developer - is there a hook (or any other method) of being notified when the settings page has been saved (ie after save on hook_settings)? I need to do a bit of work on the settings that have been saved, but can't figure out how.

Thanks,

Matt

mysql_real_escape_string() warning

Hi,

I've coded a module which should read informations out of the database... everything works fine if i am logged in with the administrator account, but when a anonymous user wants to access the page the following warning is shown:

warning: mysql_real_escape_string() expects parameter 1 to be string, unknown given in ****\includes\database.mysql.inc on line 239.

I don't know why, because I didn't called this function :(

thanks for help :)

Pages

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